public interface Body extends Localizable
Modifier and Type | Method and Description |
---|---|
double |
getMass()
Get body mass.
|
double |
getWeight()
Get body weight.
|
void |
invertAxisY(boolean state)
True to invert Y axis.
|
void |
resetGravity()
Reset gravity force (usually when hit the ground).
|
void |
setGravityMax(double max)
Set the maximum gravity value.
|
void |
setMass(double mass)
Set body mass.
|
void |
updateGravity(double extrp,
int desiredFps,
Force... forces)
Update gravity calculation.
|
getLocationOldX, getLocationOldY, getLocationX, getLocationY, moveLocation, moveLocation, setLocation, setLocationOffset, setLocationX, setLocationY, setSize, teleport, teleportX, teleportY
getHeight, getLocationIntX, getLocationIntY, getLocationOffsetX, getLocationOffsetY, getWidth
void updateGravity(double extrp, int desiredFps, Force... forces)
extrp
- The extrapolation value.desiredFps
- The desired fps (usually 60)forces
- The list of forces.void resetGravity()
void invertAxisY(boolean state)
state
- The state.void setGravityMax(double max)
max
- The maximum gravity value.void setMass(double mass)
mass
- The body mass.double getMass()
double getWeight()