Chipmunk Pro API Reference  6.1.3
 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) - 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.
 
(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 vertex and offset from the center of gravity.
 
(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.
 
- 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.
 
- 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.
 
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: