Opaque collision shape struct. More...
#include <cpShape.h>
Public Attributes | |
| cpBody * | body |
| The rigid body this collision shape is attached to. | |
| cpBB | bb |
| The current bounding box of the shape. | |
| cpBool | sensor |
| Sensor flag. More... | |
| cpFloat | e |
| Coefficient of restitution. (elasticity) | |
| cpFloat | u |
| Coefficient of friction. | |
| cpVect | surface_v |
| Surface velocity used when solving for friction. | |
| cpDataPointer | data |
| User definable data pointer. More... | |
| cpCollisionType | collision_type |
| Collision type of this shape used when picking collision handlers. | |
| cpGroup | group |
| Group of this shape. Shapes in the same group don't collide. | |
Opaque collision shape struct.
| cpDataPointer cpShape::data |
User definable data pointer.
Generally this points to your the game object class so you can access it when given a cpShape reference in a callback.
| cpBool cpShape::sensor |
Sensor flag.
Sensor shapes call collision callbacks but don't produce collisions.
1.8.3.1