Chipmunk2D Pro API Reference
6.1.5
Main Page
Related Pages
Modules
Classes
Files
File List
All
Classes
Functions
Variables
Typedefs
Properties
Groups
Pages
Objective-Chipmunk
ChipmunkShape.h
1
@class
ChipmunkNearestPointQueryInfo
;
2
@class
ChipmunkSegmentQueryInfo
;
3
4
6
@interface
ChipmunkShape
: NSObject <
ChipmunkBaseObject
> {
7
@public
8
id
data
;
9
}
10
13
+(
ChipmunkShape
*)shapeFromCPShape:(
cpShape
*)shape;
14
16
@property
(nonatomic, readonly)
cpShape
*shape;
17
19
@property
(nonatomic, retain)
ChipmunkBody
*body;
20
22
@property
(nonatomic, readonly)
cpBB
bb;
23
25
@property
(nonatomic, assign) BOOL sensor;
26
28
@property
(nonatomic, assign)
cpFloat
elasticity;
29
31
@property
(nonatomic, assign)
cpFloat
friction;
32
37
@property
(nonatomic, assign)
cpVect
surfaceVel;
38
43
@property
(nonatomic, assign)
cpCollisionType
collisionType;
44
49
@property
(nonatomic, assign)
cpGroup
group;
50
52
@property
(nonatomic, assign)
cpLayers
layers;
53
55
@property
(nonatomic, readonly)
ChipmunkSpace
*space;
56
61
@property
(nonatomic, assign)
id
data;
62
64
- (
cpBB
)cacheBB;
65
68
- (bool)pointQuery:(
cpVect
)point __attribute__((__deprecated__));
69
70
- (
ChipmunkNearestPointQueryInfo
*)nearestPointQuery:(
cpVect
)point;
71
- (
ChipmunkSegmentQueryInfo
*)segmentQueryFrom:(
cpVect
)start to:(
cpVect
)end;
72
73
@end
74
75
76
@interface
ChipmunkNearestPointQueryInfo
: NSObject {
77
@private
78
cpNearestPointQueryInfo
_info;
79
}
80
81
- (id)initWithInfo:(
cpNearestPointQueryInfo
*)info;
82
84
@property
(nonatomic, readonly)
cpNearestPointQueryInfo
*info;
85
87
@property
(nonatomic, readonly)
ChipmunkShape
*shape;
88
91
@property
(nonatomic, readonly)
cpFloat
dist;
92
94
@property
(nonatomic, readonly)
cpVect
point;
95
96
@end
97
98
100
@interface
ChipmunkSegmentQueryInfo
: NSObject {
101
@private
102
cpSegmentQueryInfo
_info;
103
cpVect
_start, _end;
104
}
105
106
- (id)initWithInfo:(
cpSegmentQueryInfo
*)info start:(
cpVect
)start end:(
cpVect
)end;
107
109
@property
(nonatomic, readonly)
cpSegmentQueryInfo
*info;
110
112
@property
(nonatomic, readonly)
ChipmunkShape
*shape;
113
115
@property
(nonatomic, readonly)
cpFloat
t;
116
118
@property
(nonatomic, readonly)
cpVect
normal;
119
121
@property
(nonatomic, readonly)
cpVect
point;
122
124
@property
(nonatomic, readonly)
cpFloat
dist;
125
127
@property
(nonatomic, readonly)
cpVect
start;
128
130
@property
(nonatomic, readonly)
cpVect
end;
131
132
@end
133
134
136
@interface
ChipmunkShapeQueryInfo
: NSObject {
137
@private
138
ChipmunkShape
*_shape;
139
cpContactPointSet
_contactPoints;
140
}
141
142
- (id)initWithShape:(
ChipmunkShape
*)shape andPoints:(
cpContactPointSet
*)set;
143
144
@property
(nonatomic, readonly)
ChipmunkShape
*shape;
145
@property
(nonatomic, readonly)
cpContactPointSet
*contactPoints;
146
147
@end
148
149
151
@interface
ChipmunkCircleShape
:
ChipmunkShape
{
152
@private
153
cpCircleShape _shape;
154
}
155
157
+ (id)circleWithBody:(
ChipmunkBody
*)body radius:(
cpFloat
)radius offset:(
cpVect
)offset;
158
160
- (id)initWithBody:(
ChipmunkBody
*)body radius:(
cpFloat
)radius offset:(
cpVect
)offset;
161
163
@property
(nonatomic, readonly)
cpFloat
radius;
164
166
@property
(nonatomic, readonly)
cpVect
offset;
167
168
@end
169
170
172
@interface
ChipmunkSegmentShape
:
ChipmunkShape
{
173
@private
174
cpSegmentShape _shape;
175
}
176
178
+ (id)segmentWithBody:(
ChipmunkBody
*)body from:(
cpVect
)a to:(
cpVect
)b radius:(
cpFloat
)radius;
179
181
- (id)initWithBody:(
ChipmunkBody
*)body from:(
cpVect
)a to:(
cpVect
)b radius:(
cpFloat
)radius;
182
184
@property
(nonatomic, readonly)
cpVect
a;
185
187
@property
(nonatomic, readonly)
cpVect
b;
188
190
@property
(nonatomic, readonly)
cpVect
normal;
191
193
@property
(nonatomic, readonly)
cpFloat
radius;
194
195
@end
196
197
199
@interface
ChipmunkPolyShape
:
ChipmunkShape
{
200
@private
201
cpPolyShape _shape;
202
}
203
205
+ (id)polyWithBody:(
ChipmunkBody
*)body count:(
int
)count verts:(
cpVect
*)verts offset:(
cpVect
)offset;
206
208
+ (id)boxWithBody:(
ChipmunkBody
*)body width:(
cpFloat
)width height:(
cpFloat
)height;
209
211
+ (id)boxWithBody:(
ChipmunkBody
*)body bb:(
cpBB
)bb;
212
214
- (id)initWithBody:(
ChipmunkBody
*)body count:(
int
)count verts:(
cpVect
*)verts offset:(
cpVect
)offset;
215
217
- (id)initBoxWithBody:(
ChipmunkBody
*)body width:(
cpFloat
)width height:(
cpFloat
)height;
218
220
- (id)initBoxWithBody:(
ChipmunkBody
*)body bb:(
cpBB
)bb;
221
223
@property
(nonatomic, readonly)
int
count;
224
226
- (
cpVect
)getVertex:(
int
)index;
227
228
@end
229
231
@interface
ChipmunkStaticCircleShape
:
ChipmunkCircleShape
232
@end
233
234
236
@interface
ChipmunkStaticSegmentShape
:
ChipmunkSegmentShape
237
@end
238
240
@interface
ChipmunkStaticPolyShape
:
ChipmunkPolyShape
241
@end
Generated on Mon Jun 10 2013 14:53:43 for Chipmunk2D Pro API Reference by
1.8.3.1