C# Class Box2DX.Dynamics.FixtureDef

A fixture definition is used to create a fixture. This class defines an abstract fixture definition. You can reuse fixture definitions safely.
Datei anzeigen Open project: KrugerHeavyIndustries/box2d-unity 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
FixtureDef ( ) : System

The constructor sets the default fixture definition values.

Method Details

FixtureDef() public method

The constructor sets the default fixture definition values.
public FixtureDef ( ) : System
return System

Property Details

Density public_oe property

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

Filter public_oe property

Contact filtering data.
public FilterData Filter
return FilterData

Friction public_oe property

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

IsSensor public_oe property

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

Restitution public_oe property

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

Type public_oe property

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

UserData public_oe property

Use this to store application specific fixture data.
public object UserData
return object