b2FixtureDef Struct Reference

#include <b2Fixture.h>

List of all members.

Public Member Functions

 b2FixtureDef ()
 The constructor sets the default fixture definition values.
virtual ~b2FixtureDef ()

Public Attributes

const b2Shapeshape
void * userData
 Use this to store application specific fixture data.
float32 friction
 The friction coefficient, usually in the range [0,1].
float32 restitution
 The restitution (elasticity) usually in the range [0,1].
float32 density
 The density, usually in kg/m^2.
bool isSensor
b2Filter filter
 Contact filtering data.

Detailed Description

A fixture definition is used to create a fixture. This class defines an abstract fixture definition. You can reuse fixture definitions safely.


Constructor & Destructor Documentation

b2FixtureDef::b2FixtureDef (  )  [inline]

The constructor sets the default fixture definition values.

virtual b2FixtureDef::~b2FixtureDef (  )  [inline, virtual]

Member Data Documentation

The density, usually in kg/m^2.

Contact filtering data.

The friction coefficient, usually in the range [0,1].

A sensor shape collects contact information but never generates a collision response.

The restitution (elasticity) usually in the range [0,1].

The shape, this must be set. The shape will be cloned, so you can create the shape on the stack.

Use this to store application specific fixture data.


The documentation for this struct was generated from the following file:
Generated on Sat Apr 3 18:18:09 2010 for Box2D by  doxygen 1.6.3