C# Class Box2D.Dynamics.FixtureDef

A fixture definition is used to create a fixture. This class defines an abstract fixture definition. You can reuse fixture definitions safely.
Show file Open project: gerich-home/box2dnet Class Usage Examples

Public Properties

Property Type Description
Density float
Filter Filter
Friction float
IsSensor bool
Restitution float
Shape Box2D.Collision.Shapes.Shape
UserData object

Public Methods

Method Description
FixtureDef ( ) : Box2D.Collision.Shapes

Method Details

FixtureDef() public method

public FixtureDef ( ) : Box2D.Collision.Shapes
return Box2D.Collision.Shapes

Property Details

Density public property

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

Filter public property

Contact filtering data
public Filter,Box2D.Dynamics Filter
return Filter

Friction public property

The 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 restitution (elasticity) usually in the range [0,1].
public float Restitution
return float

Shape public property

The shape, this must be set. The shape will be cloned, so you can create the shape on the stack.
public Shape,Box2D.Collision.Shapes Shape
return Box2D.Collision.Shapes.Shape

UserData public property

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