A convex polygon shape. More...
#import <ChipmunkShape.h>
Inherits ChipmunkShape.
Inherited by ChipmunkStaticPolyShape.
Public Member Functions | |
(id) | - initWithBody:count:verts:offset: |
Initialize a polygon shape from the given vertex and offset from the center of gravity. | |
(id) | - initBoxWithBody:width:height: |
Initialize a box shape centered on the center of gravity. | |
(cpVect) | - getVertex: |
Access the vertexes of this polygon. | |
Static Public Member Functions | |
(id) | + polyWithBody:count:verts:offset: |
Create an autoreleased polygon shape from the given vertex and offset from the center of gravity. | |
(id) | + boxWithBody:width:height: |
Create an autoreleased box shape centered on the center of gravity. | |
Properties | |
int | count |
The number of vertexes in this polygon. |
A convex polygon shape.