Chipmunk2D Pro API Reference  7.0.1
 All Classes Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
Instance Methods | Class Methods | Properties | List of all members
ChipmunkCircleShape Class Reference

A perfect circle shape. More...

#import <ChipmunkShape.h>

Inherits ChipmunkShape.

Instance Methods

(id) - initWithBody:radius:offset:
 Initialize a circle shape with the given radius and offset from the center of gravity.
 
- Instance Methods inherited from ChipmunkShape
(cpBB- cacheBB
 Update and cache the axis-aligned bounding box for this shape.
 

Class Methods

(id) + circleWithBody:radius:offset:
 Create an autoreleased circle shape with the given radius and offset from the center of gravity.
 
- Class Methods inherited from ChipmunkShape
(ChipmunkShape *) + shapeFromCPShape:
 Get the ChipmunkShape object associciated with a cpShape pointer. More...
 

Properties

cpFloat radius
 The radius of the circle.
 
cpVect offset
 The offset from the center of gravity.
 
- 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 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.
 
ChipmunkSpacespace
 Get the space the body is added to.
 
id userData
 An object that this shape is associated with. More...
 

Detailed Description

A perfect circle shape.


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