#include <b2Fixture.h>
Public Member Functions | |
b2FixtureDef () | |
The constructor sets the default fixture definition values. More... | |
Public Attributes | |
float32 | density |
The density, usually in kg/m^2. More... | |
b2Filter | filter |
Contact filtering data. More... | |
float32 | friction |
The friction coefficient, usually in the range [0,1]. More... | |
bool | isSensor |
float32 | restitution |
The restitution (elasticity) usually in the range [0,1]. More... | |
const b2Shape * | shape |
void * | userData |
Use this to store application specific fixture data. More... | |
A fixture definition is used to create a fixture. This class defines an abstract fixture definition. You can reuse fixture definitions safely.
Definition at line 56 of file b2Fixture.h.
|
inline |
The constructor sets the default fixture definition values.
Definition at line 59 of file b2Fixture.h.
float32 b2FixtureDef::density |
The density, usually in kg/m^2.
Definition at line 83 of file b2Fixture.h.
b2Filter b2FixtureDef::filter |
Contact filtering data.
Definition at line 90 of file b2Fixture.h.
float32 b2FixtureDef::friction |
The friction coefficient, usually in the range [0,1].
Definition at line 77 of file b2Fixture.h.
bool b2FixtureDef::isSensor |
A sensor shape collects contact information but never generates a collision response.
Definition at line 87 of file b2Fixture.h.
float32 b2FixtureDef::restitution |
The restitution (elasticity) usually in the range [0,1].
Definition at line 80 of file b2Fixture.h.
The shape, this must be set. The shape will be cloned, so you can create the shape on the stack.
Definition at line 71 of file b2Fixture.h.
void* b2FixtureDef::userData |
Use this to store application specific fixture data.
Definition at line 74 of file b2Fixture.h.