b2ShapeDef Struct Reference
A shape definition is used to construct a shape. More...
Inheritance diagram for b2ShapeDef:
Public Member Functions | |
b2ShapeDef () | |
The constructor sets the default shape definition values. | |
Public Attributes | |
b2ShapeType | type |
Holds the shape type for down-casting. | |
void * | userData |
Use this to store application specify shape data. | |
float32 | friction |
The shape's friction coefficient, usually in the range [0,1]. | |
float32 | restitution |
The shape's restitution (elasticity) usually in the range [0,1]. | |
float32 | density |
The shape's density, usually in kg/m^2. | |
bool | isSensor |
A sensor shape collects contact information but never generates a collision response. | |
b2FilterData | filter |
Contact filtering data. |
Detailed Description
A shape definition is used to construct a shape.This class defines an abstract shape definition. You can reuse shape definitions safely.
Member Data Documentation
bool b2ShapeDef::isSensor |
A sensor shape collects contact information but never generates a collision response.
The documentation for this struct was generated from the following file:
- b2Shape.h
Generated on Sun Apr 13 15:21:27 2008 for Box2D by 1.5.4