A perfect circle shape. More...
#import <ChipmunkShape.h>
Inherits ChipmunkShape.
Inherited by ChipmunkStaticCircleShape.
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. | |
| (bool) | - pointQuery: |
| Check if a point in absolute coordinates lies within the shape. More... | |
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 | surfaceVel |
| The velocity of the shape's surface. More... | |
| cpCollisionType | collisionType |
| An object reference used as a collision type identifier. More... | |
| cpGroup | group |
| An object reference used as a collision group identifier. More... | |
| cpLayers | layers |
| A layer bitmask that defines which objects. | |
| ChipmunkSpace * | space |
| Get the space the body is added to. | |
| id | data |
| An object that this shape is associated with. More... | |
A perfect circle shape.
1.8.3.1