public class BodyDef
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
BodyDef.BodyType
The body type.
|
Modifier and Type | Field and Description |
---|---|
boolean |
active
Does this body start out active?
|
boolean |
allowSleep
Set this flag to false if this body should never fall asleep.
|
float |
angle
The world angle of the body in radians.
|
float |
angularDamping
Angular damping is use to reduce the angular velocity.
|
float |
angularVelocity
The angular velocity of the body.
|
boolean |
awake
Is this body initially awake or sleeping?
|
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.
|
boolean |
fixedRotation
Should this body be prevented from rotating? Useful for characters.
|
float |
gravityScale
Scale the gravity applied to this body.
|
float |
linearDamping
Linear damping is use to reduce the linear velocity.
|
Vector2 |
linearVelocity
The linear velocity of the body's origin in world co-ordinates.
|
Vector2 |
position
The world position of the body.
|
BodyDef.BodyType |
type
The body type: static, kinematic, or dynamic.
|
Constructor and Description |
---|
BodyDef() |
public BodyDef.BodyType type
public final Vector2 position
public float angle
public final Vector2 linearVelocity
public float angularVelocity
public float linearDamping
public float angularDamping
public boolean allowSleep
public boolean awake
public boolean fixedRotation
public boolean bullet
public boolean active
public float gravityScale