Class RigidBodyDef2D
Definition of a Rigid Body 2D.
Inherited Members
Namespace: Evergine.Common.Physics2D
Assembly: Evergine.Common.dll
Syntax
public class RigidBodyDef2D
Fields
Active
Does this body start out active?.
Declaration
public bool Active
Field Value
Type | Description |
---|---|
bool |
AllowSleep
Set this flag to false if this body should never fall asleep. Note that this increases CPU usage.
Declaration
public bool AllowSleep
Field Value
Type | Description |
---|---|
bool |
Angle
The world angle of the body in radians.
Declaration
public float Angle
Field Value
Type | Description |
---|---|
float |
AngularDamping
Angular damping is use to reduce the angular velocity.
Declaration
public float AngularDamping
Field Value
Type | Description |
---|---|
float |
AngularVelocity
The angular velocity of the body.
Declaration
public float AngularVelocity
Field Value
Type | Description |
---|---|
float |
Awake
Is this body initially awake or sleeping?.
Declaration
public bool Awake
Field Value
Type | Description |
---|---|
bool |
Bullet
Is this a fast moving body that should be prevented from tunneling through other moving bodies?.
Declaration
public bool Bullet
Field Value
Type | Description |
---|---|
bool |
FixedRotation
Should this body be prevented from rotating? Useful for characters.
Declaration
public bool FixedRotation
Field Value
Type | Description |
---|---|
bool |
GravityScale
Scale the gravity applied to this body.
Declaration
public float GravityScale
Field Value
Type | Description |
---|---|
float |
LinearDamping
Linear damping is use to reduce the linear velocity.
Declaration
public float LinearDamping
Field Value
Type | Description |
---|---|
float |
LinearVelocity
The linear velocity of the body's origin in world co-ordinates.
Declaration
public Vector2 LinearVelocity
Field Value
Type | Description |
---|---|
Vector2 |
Position
The world position of the body. Avoid creating bodies at the origin since this can lead to many overlapping shapes.
Declaration
public Vector2 Position
Field Value
Type | Description |
---|---|
Vector2 |
Type
The rigid body 2D type.
Declaration
public RigidBodyType2D Type
Field Value
Type | Description |
---|---|
RigidBodyType2D |
UserData
Use this to store application specific body data.
Declaration
public object UserData
Field Value
Type | Description |
---|---|
object |