Chipmunk  6.0.3
Chipmunk API Reference for Kobold2D developers
cpShape Struct Reference

Opaque collision shape struct. More...

#include <cpShape.h>

Collaboration diagram for cpShape:

Public Member Functions

 CP_PRIVATE (const cpShapeClass *klass)
 CP_PRIVATE (cpSpace *space)
 CP_PRIVATE (cpShape *next)
 CP_PRIVATE (cpShape *prev)
 CP_PRIVATE (cpHashValue hashid)

Data Fields

cpBodybody
 The rigid body this collision shape is attached to.
cpBB bb
 The current bounding box of the shape.
cpBool sensor
cpFloat e
 Coefficient of restitution. (elasticity)
cpFloat u
 Coefficient of friction.
cpVect surface_v
 Surface velocity used when solving for friction.
cpDataPointer data
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.
cpLayers layers

Detailed Description

Opaque collision shape struct.


Member Function Documentation

cpShape::CP_PRIVATE ( const cpShapeClass klass)
cpShape::CP_PRIVATE ( cpSpace space)
cpShape::CP_PRIVATE ( cpShape next)
cpShape::CP_PRIVATE ( cpShape prev)
cpShape::CP_PRIVATE ( cpHashValue  hashid)

Field Documentation

The current bounding box of the shape.

The rigid body this collision shape is attached to.

Collision type of this shape used when picking collision handlers.

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.

Coefficient of restitution. (elasticity)

Group of this shape. Shapes in the same group don't collide.

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

Surface velocity used when solving for friction.

Coefficient of friction.


The documentation for this struct was generated from the following file: