|
Chipmunk2D Pro API Reference
7.0.2
|
A convex polygon shape. More...
#import <ChipmunkShape.h>
Inherits ChipmunkShape.
Instance Methods | |
| (id) | - initWithBody:count:verts:transform:radius: |
| Initialize a polygon shape from the given vertexes after applying the transform and with the given rounding radius. | |
| (id) | - initBoxWithBody:width:height:radius: |
| Initialize a box shape centered on the center of gravity. | |
| (id) | - initBoxWithBody:bb:radius: |
| Initialize a box shape with the given bounding box in body local coordinates and rounding radius. | |
| (cpVect) | - getVertex: |
| Access the vertexes of this polygon. | |
Instance Methods inherited from ChipmunkShape | |
| (cpBB) | - cacheBB |
| Update and cache the axis-aligned bounding box for this shape. | |
Class Methods | |
| (id) | + polyWithBody:count:verts:transform:radius: |
| Create an autoreleased polygon shape from the given vertexes after applying the transform and with the given rounding radius. | |
| (id) | + boxWithBody:width:height:radius: |
| Create an autoreleased box shape centered on the center of gravity. | |
| (id) | + boxWithBody:bb:radius: |
| Create an autoreleased box shape with the given bounding box in body local coordinates and rounding radius. | |
Class Methods inherited from ChipmunkShape | |
| (ChipmunkShape *) | + shapeFromCPShape: |
| Get the ChipmunkShape object associciated with a cpShape pointer. More... | |
Properties | |
| int | count |
| The number of vertexes in this polygon. | |
| cpFloat | radius |
| Get the rounding radius of the polygon. | |
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 convex polygon shape.
1.8.3.1