Search Results for

    Show / Hide Table of Contents

    Class RigidBodyDef2D

    Definition of a Rigid Body 2D.

    Inheritance
    object
    RigidBodyDef2D
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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. 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.

    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?. Note that all bodies are prevented from tunneling through kinematic and static bodies. This setting is only considered on dynamic 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. 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.

    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

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX