|
Chipmunk2D Pro API Reference
7.0.3
|
A perfect circle shape. More...
#import <ChipmunkShape.h>
Inherits ChipmunkShape.
Instance Methods | |
| (id) | - initWithBody:radius:offset: |
| Initialize a circle shape with the given radius and offset from the center of gravity. | |
Instance Methods inherited from ChipmunkShape | |
| (cpBB) | - cacheBB |
| Update and cache the axis-aligned bounding box for this shape. | |
Class Methods | |
| (id) | + circleWithBody:radius:offset: |
| Create an autoreleased circle shape with the given radius and offset from the center of gravity. | |
Class Methods inherited from ChipmunkShape | |
| (ChipmunkShape *) | + shapeFromCPShape: |
| Get the ChipmunkShape object associciated with a cpShape pointer. More... | |
Properties | |
| cpFloat | radius |
| The radius of the circle. | |
| cpVect | offset |
| The offset from the center of gravity. | |
Properties inherited from ChipmunkShape | |
| cpShape * | shape |
| Returns a pointer to the underlying cpShape C struct. | |
| ChipmunkBody * | body |
| The ChipmunkBody that this shape is attached to. | |
| cpBB | bb |
| The axis-aligned bounding box for this shape. | |
| BOOL | sensor |
| Sensor shapes send collision callback messages, but don't create a collision response. | |
| cpFloat | elasticity |
| How bouncy this shape is. | |
| cpFloat | friction |
| How much friction this shape has. | |
| cpVect | surfaceVelocity |
| The velocity of the shape's surface. More... | |
| cpCollisionType | collisionType |
| An object reference used as a collision type identifier. More... | |
| cpShapeFilter | filter |
| The collision filtering parameters of this shape. | |
| ChipmunkSpace * | space |
| Get the space the body is added to. | |
| id | userData |
| An object that this shape is associated with. More... | |
A perfect circle shape.
1.8.3.1