Search Results for

    Show / Hide Table of Contents

    Class ColliderDef2D

    Definition of a 2D Collision Shape.

    Inheritance
    object
    ColliderDef2D
    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 ColliderDef2D

    Fields

    Density

    The density, usually in kg/m^2.

    Declaration
    public float Density
    Field Value
    Type Description
    float

    Friction

    The friction coefficient, usually in the range [0,1].

    Declaration
    public float Friction
    Field Value
    Type Description
    float

    IsSensor

    A sensor shape collects contact information but never generates a collision response.

    Declaration
    public bool IsSensor
    Field Value
    Type Description
    bool

    Restitution

    The restitution (elasticity) usually in the range [0,1].

    Declaration
    public float Restitution
    Field Value
    Type Description
    float

    Shape

    The Collider shape.

    Declaration
    public IColliderShape2D Shape
    Field Value
    Type Description
    IColliderShape2D

    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