Chipmunk2D Pro API Reference  6.2.1
 All Classes Functions Variables Typedefs Properties Groups Pages
Instance Methods | Class Methods | Properties | List of all members
ChipmunkPolyShape Class Reference

A convex polygon shape. More...

#import <ChipmunkShape.h>

Inherits ChipmunkShape.

Inherited by ChipmunkStaticPolyShape.

Instance Methods

(id) - initWithBody:count:verts:offset:
 Initialize a polygon shape from the given vertex and offset from the center of gravity.
 
(id) - initWithBody:count:verts:offset:radius:
 Initialize a polygon shape from the given vertex, offset from the center of gravity and rounding radius.
 
(id) - initBoxWithBody:width:height:
 Initialize a box shape centered on the center of gravity.
 
(id) - initBoxWithBody:bb:
 Initialize a box shape with the given bounding box in body local coordinates.
 
(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.
 
(bool) - pointQuery:
 Check if a point in absolute coordinates lies within the shape. More...
 

Class Methods

(id) + polyWithBody:count:verts:offset:
 Create an autoreleased polygon shape from the given vertexes and offset from the center of gravity.
 
(id) + polyWithBody:count:verts:offset:radius:
 Create an autoreleased polygon shape from the given vertexes, offset from the center of gravity and rounding radius.
 
(id) + boxWithBody:width:height:
 Create an autoreleased box shape centered on the center of gravity.
 
(id) + boxWithBody:bb:
 Create an autoreleased box shape with the given bounding box in body local coordinates.
 
(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
cpShapeshape
 Returns a pointer to the underlying cpShape C struct.
 
ChipmunkBodybody
 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.
 
ChipmunkSpacespace
 Get the space the body is added to.
 
id data
 An object that this shape is associated with. More...
 

Detailed Description

A convex polygon shape.


The documentation for this class was generated from the following file: