43 @property(nonatomic, assign)
cpFloat mass;
44 @property(nonatomic, assign)
cpFloat density;
45 @property(nonatomic, readonly)
cpFloat moment;
46 @property(nonatomic, readonly)
cpFloat area;
47 @property(nonatomic, readonly)
cpVect centerOfGravity;
50 @property(nonatomic, readonly)
cpBB bb;
53 @property(nonatomic, assign) BOOL
sensor;
110 @property(nonatomic, readonly)
cpVect point;
114 @property(nonatomic, readonly)
cpFloat distance;
118 @property(nonatomic, readonly)
cpVect gradient;
142 @property(nonatomic, readonly)
cpVect normal;
145 @property(nonatomic, readonly)
cpVect point;
151 @property(nonatomic, readonly)
cpVect start;
154 @property(nonatomic, readonly)
cpVect end;
187 @property(nonatomic, readonly)
cpVect offset;
202 - (void)setPrevNeighbor:(
cpVect)prev nextNeighbor:(
cpVect)next;
241 @property(nonatomic, readonly)
int count;
247 - (
cpVect)getVertex:(
int)index;
Fast collision filtering type that is used to determine if two objects collide before calling collisi...
Definition: cpShape.h:52
cpFloat radius
The radius of the circle.
Definition: ChipmunkShape.h:184
BOOL sensor
Sensor shapes send collision callback messages, but don't create a collision response.
Definition: ChipmunkShape.h:53
Definition: chipmunk_private.h:256
Rigid bodies are the basic unit of simulation in Chipmunk.
Definition: ChipmunkBody.h:29
A perfect circle shape.
Definition: ChipmunkShape.h:175
ChipmunkBody * body
The ChipmunkBody that this shape is attached to.
Definition: ChipmunkShape.h:40
ChipmunkSpace * space
Get the space the body is added to.
Definition: ChipmunkShape.h:79
uintptr_t cpCollisionType
Type used for cpSpace.collision_type.
Definition: chipmunk_types.h:223
cpBB bb
The axis-aligned bounding box for this shape.
Definition: ChipmunkShape.h:50
double cpFloat
Chipmunk's floating point type.
Definition: chipmunk_types.h:83
Chipmunk spaces are simulation containers.
Definition: ChipmunkSpace.h:32
Holds collision information from segment queries. You should never need to create one...
Definition: ChipmunkShape.h:160
cpShape * shape
Returns a pointer to the underlying cpShape C struct.
Definition: ChipmunkShape.h:37
cpCollisionType collisionType
An object reference used as a collision type identifier.
Definition: ChipmunkShape.h:71
A beveled (rounded) segment shape.
Definition: ChipmunkShape.h:193
cpFloat elasticity
How bouncy this shape is.
Definition: ChipmunkShape.h:56
Definition: chipmunk_types.h:271
int count
The number of vertexes in this polygon.
Definition: ChipmunkShape.h:241
cpFloat radius
Get the rounding radius of the polygon.
Definition: ChipmunkShape.h:244
Segment query info struct.
Definition: cpShape.h:40
Abstract base class for collsion shape types.
Definition: ChipmunkShape.h:27
cpFloat friction
How much friction this shape has.
Definition: ChipmunkShape.h:59
Definition: ChipmunkShape.h:96
cpFloat radius
The beveling radius of the segment shape.
Definition: ChipmunkShape.h:214
id userData
An object that this shape is associated with.
Definition: ChipmunkShape.h:85
cpBB cacheBB()
Update and cache the axis-aligned bounding box for this shape.
Point query info struct.
Definition: cpShape.h:27
Holds collision information from segment queries. You should never need to create one...
Definition: ChipmunkShape.h:124
A convex polygon shape.
Definition: ChipmunkShape.h:220
Chipmunk's axis-aligned 2D bounding box type. (left, bottom, right, top)
Definition: cpBB.h:33
cpVect surfaceVelocity
The velocity of the shape's surface.
Definition: ChipmunkShape.h:65
cpVect normal
The normal of the segment shape.
Definition: ChipmunkShape.h:211
cpShapeFilter filter
The collision filtering parameters of this shape.
Definition: ChipmunkShape.h:76