public enum BodyType
- Object
- Enum<BodyType>
- BodyType
ImplementsComparable<BodyType>
The kind of a
PhysicsBody.Enum constants
STATIC | Never moves, infinite mass – ground, walls, platforms. |
KINEMATIC | Moved by the application (via velocity) but not affected by forces or collisions – moving platforms, elevators. |
DYNAMIC | Fully simulated: moved by forces, gravity and collisions. |
Methods
public static BodyType[] values() | |
public static BodyType valueOf(String name) |
Inherited methods
Enum constant details
STATIC
STATICNever moves, infinite mass – ground, walls, platforms.
KINEMATIC
KINEMATICMoved by the application (via velocity) but not affected by forces or
collisions – moving platforms, elevators.
DYNAMIC
DYNAMICFully simulated: moved by forces, gravity and collisions.
Method details
values
public static BodyType[] values()valueOf
public static BodyType valueOf(String name)