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.
ファイルを表示 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_oe property

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

Filter public_oe property

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

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

Shape public_oe 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_oe property

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