public class PhysicsHandler extends BaseEntityUpdateHandler
IUpdateHandler.IUpdateHandlerMatcher| Modifier and Type | Field and Description |
|---|---|
protected float |
mAccelerationX |
protected float |
mAccelerationY |
protected float |
mAngularVelocity |
protected float |
mVelocityX |
protected float |
mVelocityY |
| Constructor and Description |
|---|
PhysicsHandler(IEntity pEntity) |
| Modifier and Type | Method and Description |
|---|---|
void |
accelerate(float pAccelerationX,
float pAccelerationY) |
float |
getAccelerationX() |
float |
getAccelerationY() |
float |
getAngularVelocity() |
float |
getVelocityX() |
float |
getVelocityY() |
boolean |
isEnabled() |
protected void |
onUpdate(float pSecondsElapsed,
IEntity pEntity) |
void |
reset() |
void |
setAcceleration(float pAcceleration) |
void |
setAcceleration(float pAccelerationX,
float pAccelerationY) |
void |
setAccelerationX(float pAccelerationX) |
void |
setAccelerationY(float pAccelerationY) |
void |
setAngularVelocity(float pAngularVelocity) |
void |
setEnabled(boolean pEnabled) |
void |
setVelocity(float pVelocity) |
void |
setVelocity(float pVelocityX,
float pVelocityY) |
void |
setVelocityX(float pVelocityX) |
void |
setVelocityY(float pVelocityY) |
getEntity, onUpdate, setEntityprotected float mAccelerationX
protected float mAccelerationY
protected float mVelocityX
protected float mVelocityY
protected float mAngularVelocity
public PhysicsHandler(IEntity pEntity)
public boolean isEnabled()
public void setEnabled(boolean pEnabled)
public float getVelocityX()
public float getVelocityY()
public void setVelocityX(float pVelocityX)
public void setVelocityY(float pVelocityY)
public void setVelocity(float pVelocity)
public void setVelocity(float pVelocityX,
float pVelocityY)
public float getAccelerationX()
public float getAccelerationY()
public void setAccelerationX(float pAccelerationX)
public void setAccelerationY(float pAccelerationY)
public void setAcceleration(float pAccelerationX,
float pAccelerationY)
public void setAcceleration(float pAcceleration)
public void accelerate(float pAccelerationX,
float pAccelerationY)
public float getAngularVelocity()
public void setAngularVelocity(float pAngularVelocity)
protected void onUpdate(float pSecondsElapsed,
IEntity pEntity)
onUpdate in class BaseEntityUpdateHandlerpublic void reset()
reset in interface IUpdateHandlerreset in class BaseEntityUpdateHandler