| Modifier and Type | Class and Description |
|---|---|
| public static enum | BodyDef.
The body type. |
| Modifier and Type | Field and Description |
|---|---|
| public boolean | active
Does this body start out active? |
| public boolean | allowSleep
Set this flag to false if this body should never fall asleep. |
| public float | angle
The world angle of the body in radians. |
| public float | angularDamping
Angular damping is use to reduce the angular velocity. |
| public float | angularVelocity
The angular velocity of the body. |
| public boolean | awake
Is this body initially awake or sleeping? |
| public boolean | bullet
Is this a fast moving body that should be prevented from tunneling through other moving bodies? |
| public boolean | fixedRotation
Should this body be prevented from rotating? |
| public float | gravityScale
Scale the gravity applied to this body. |
| public float | linearDamping
Linear damping is use to reduce the linear velocity. |
| public final Vector2 | linearVelocity
The linear velocity of the body's origin in world co-ordinates. |
| public final Vector2 | position
The world position of the body. |
| public BodyDef. | type
The body type: static, kinematic, or dynamic. |
| Access | Constructor and Description |
|---|---|
| public |
| active | back to summary |
|---|---|
| public boolean active Does this body start out active? | |
| allowSleep | back to summary |
|---|---|
| public boolean allowSleep Set this flag to false if this body should never fall asleep. Note that this increases CPU usage. | |
| angle | back to summary |
|---|---|
| public float angle The world angle of the body in radians. | |
| angularDamping | back to summary |
|---|---|
| public float angularDamping Angular damping is use to reduce the angular velocity. The damping parameter can be larger than 1.0f but the damping effect becomes sensitive to the time step when the damping parameter is large. | |
| angularVelocity | back to summary |
|---|---|
| public float angularVelocity The angular velocity of the body. | |
| awake | back to summary |
|---|---|
| public boolean awake Is this body initially awake or sleeping? | |
| bullet | back to summary |
|---|---|
| public boolean bullet Is this a fast moving body that should be prevented from tunneling through other moving bodies? Note that all bodies are prevented from tunneling through kinematic and static bodies. This setting is only considered on dynamic bodies. | |
| fixedRotation | back to summary |
|---|---|
| public boolean fixedRotation Should this body be prevented from rotating? Useful for characters. | |
| gravityScale | back to summary |
|---|---|
| public float gravityScale Scale the gravity applied to this body. | |
| linearDamping | back to summary |
|---|---|
| public float linearDamping Linear damping is use to reduce the linear velocity. The damping parameter can be larger than 1.0f but the damping effect becomes sensitive to the time step when the damping parameter is large. | |
| linearVelocity | back to summary |
|---|---|
| public final Vector2 linearVelocity The linear velocity of the body's origin in world co-ordinates. | |
| position | back to summary |
|---|---|
| public final Vector2 position The world position of the body. Avoid creating bodies at the origin since this can lead to many overlapping shapes. | |
| type | back to summary |
|---|---|
| public BodyDef. The body type: static, kinematic, or dynamic. Note if a dynamic body would have zero mass, the mass is set to one. | |
| BodyDef | back to summary |
|---|---|
| public BodyDef() | |
| Modifier and Type | Field and Description |
|---|---|
| public static final BodyDef. | |
| public static final BodyDef. | |
| public static final BodyDef. | |
| private int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public static BodyDef. | |
| public static BodyDef. |
| DynamicBody | back to summary |
|---|---|
| public static final BodyDef. | |
| KinematicBody | back to summary |
|---|---|
| public static final BodyDef. | |
| StaticBody | back to summary |
|---|---|
| public static final BodyDef. | |
| value | back to summary |
|---|---|
| private int value | |
| BodyType | back to summary |
|---|---|
| private BodyType(int value) | |
| getValue | back to summary |
|---|---|
| public int getValue() | |
| valueOf | back to summary |
|---|---|
| public static BodyDef. | |
| values | back to summary |
|---|---|
| public static BodyDef. | |