Public Attributes

cpShape Struct Reference
[cpShape]

Opaque collision shape struct. More...

#include <cpShape.h>

List of all members.

Public Attributes

cpBodybody
 The rigid body this collision shape is attached to.
cpBB bb
 The current bounding box of the shape.
cpBool sensor
 Sensor flag.
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.
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.

Detailed Description

Opaque collision shape struct.


Member Data Documentation

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.

Sensor flag.

Sensor shapes call collision callbacks but don't produce collisions.


The documentation for this struct was generated from the following file:
 All Classes Functions Variables Properties