com.annahid.libs.artenus.physics
PhysicalBody.Behavior
The Behavior specifies how a physical body is simulated. The default is DYNAMIC.
public static final enum PhysicalBody.Behavior extends Enum<PhysicalBody.Behavior>
Enum Constant Summary
| Enum Constant and Description |
|---|
DYNAMICDefines a dynamic body. |
KINEMATICDefines a kinematic body. |
STATICDefines a static body. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
public static PhysicalBody.Behavior | valueOf(String name) |
public static PhysicalBody.Behavior | values() |
Methods inherited from java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitEnum Constant Detail
| DYNAMIC |
|---|
public static final DYNAMIC Defines a dynamic body. Dynamic bodies are normally simulated. |
| KINEMATIC |
|---|
public static final KINEMATIC Defines a kinematic body. Kinematic bodies can be manually moved or
rotated. But they cannot be moved by collisions or external forces. |
| STATIC |
|---|
public static final STATIC Defines a static body. Static bodies do not move and are fixed at
their place. Collisions dot alter their positions. |