Class ColliderDef2D
Definition of a 2D Collision Shape.
Inherited Members
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 |