public enum BodyType

  1. Object
  2. Enum<BodyType>
  3. BodyType

ImplementsComparable<BodyType>

The kind of a PhysicsBody.

Enum constants

STATICNever moves, infinite mass – ground, walls, platforms.
KINEMATICMoved by the application (via velocity) but not affected by forces or collisions – moving platforms, elevators.
DYNAMICFully simulated: moved by forces, gravity and collisions.

Methods

public static BodyType[] values()
public static BodyType valueOf(String name)

Inherited methods

Enum constant details

STATIC

STATIC
Never moves, infinite mass – ground, walls, platforms.

KINEMATIC

KINEMATIC
Moved by the application (via velocity) but not affected by forces or collisions – moving platforms, elevators.

DYNAMIC

DYNAMIC
Fully simulated: moved by forces, gravity and collisions.

Method details

values

public static BodyType[] values()

valueOf

public static BodyType valueOf(String name)