A beveled (rounded) segment shape. More...
#import <ChipmunkShape.h>
Inherits ChipmunkShape.
Inherited by ChipmunkStaticSegmentShape.
Instance Methods | |
| (id) | - initWithBody:from:to:radius: |
| Initialize a segment shape with the given endpoints and radius. | |
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) | + segmentWithBody:from:to:radius: |
| Create an autoreleased segment shape with the given endpoints and radius. | |
Class Methods inherited from ChipmunkShape | |
| (ChipmunkShape *) | + shapeFromCPShape: |
| Get the ChipmunkShape object associciated with a cpShape pointer. More... | |
Properties | |
| cpVect | a |
| The start of the segment shape. | |
| cpVect | b |
| The end of the segment shape. | |
| cpVect | normal |
| The normal of the segment shape. | |
| cpFloat | radius |
| The beveling radius of the segment shape. | |
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 beveled (rounded) segment shape.
1.8.3.1