C# Class Box2DX.Collision.ShapeDef

Show file Open project: danielpcox/Crisis-at-Swiss-Station Class Usage Examples

Public Properties

Property Type Description
Density float
Filter FilterData
Friction float
IsSensor bool
Restitution float
Type ShapeType
UserData object

Public Methods

Method Description
ShapeDef ( ) : System

The constructor sets the default shape definition values.

Method Details

ShapeDef() public method

The constructor sets the default shape definition values.
public ShapeDef ( ) : System
return System

Property Details

Density public property

The shape's density, usually in kg/m^2.
public float Density
return float

Filter public property

Contact filtering data.
public FilterData Filter
return FilterData

Friction public property

The shape's friction coefficient, usually in the range [0,1].
public float Friction
return float

IsSensor public property

A sensor shape collects contact information but never generates a collision response.
public bool IsSensor
return bool

Restitution public property

The shape's restitution (elasticity) usually in the range [0,1].
public float Restitution
return float

Type public property

Holds the shape type for down-casting.
public ShapeType Type
return ShapeType

UserData public property

Use this to store application specify shape data.
public object UserData
return object