@vworlds/box2d3-wasm 0.0.0-stage → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +301 -2
- package/THIRD_PARTY_NOTICES.md +65 -0
- package/dist/compat/Box2D.compat.d.ts +1388 -0
- package/dist/compat/Box2D.compat.mjs +2886 -0
- package/dist/compat/Box2D.compat.wasm +0 -0
- package/dist/deluxe/Box2D.deluxe.d.ts +1388 -0
- package/dist/deluxe/Box2D.deluxe.mjs +2886 -0
- package/dist/deluxe/Box2D.deluxe.wasm +0 -0
- package/dist/entry.d.ts +4 -0
- package/dist/entry.mjs +32 -0
- package/dist/fastpath.d.ts +192 -0
- package/dist/fastpath.mjs +143 -0
- package/dist/fastpath_body.gen.d.ts +91 -0
- package/package.json +48 -4
|
@@ -0,0 +1,1388 @@
|
|
|
1
|
+
// TypeScript bindings for emscripten-generated code. Automatically generated at compile time.
|
|
2
|
+
declare namespace RuntimeExports {
|
|
3
|
+
let HEAPU8: any;
|
|
4
|
+
let HEAPU16: any;
|
|
5
|
+
let HEAPU32: any;
|
|
6
|
+
let HEAP32: any;
|
|
7
|
+
let HEAPF32: any;
|
|
8
|
+
let wasmMemory: any;
|
|
9
|
+
function stackSave(): any;
|
|
10
|
+
function stackRestore(val: any): any;
|
|
11
|
+
function stackAlloc(sz: any): any;
|
|
12
|
+
}
|
|
13
|
+
interface WasmModule {
|
|
14
|
+
_malloc(_0: number): number;
|
|
15
|
+
_b2x_GetLayout(): number;
|
|
16
|
+
_b2x_GetVersion(): number;
|
|
17
|
+
_b2x_SetProfileTimers(_0: number): void;
|
|
18
|
+
_b2x_GetProfileTimers(): number;
|
|
19
|
+
_b2x_World_Step(_0: number, _1: number, _2: number): void;
|
|
20
|
+
_b2x_World_GetMoveCount(_0: number): number;
|
|
21
|
+
_b2x_World_ExportMoves(_0: number, _1: number, _2: number, _3: number): number;
|
|
22
|
+
_b2x_World_StepAndExportMoves(_0: number, _1: number, _2: number, _3: number, _4: number, _5: number): number;
|
|
23
|
+
_b2x_World_GetMoveEventSpan(_0: number, _1: number): void;
|
|
24
|
+
_b2x_World_GetContactSpans(_0: number, _1: number): void;
|
|
25
|
+
_b2x_World_GetSensorSpans(_0: number, _1: number): void;
|
|
26
|
+
_b2x_Body_SetUserData(_0: number, _1: number, _2: number): void;
|
|
27
|
+
_b2x_Body_GetUserData(_0: number, _1: number): number;
|
|
28
|
+
_b2x_Shape_SetUserData(_0: number, _1: number, _2: number): void;
|
|
29
|
+
_b2x_Shape_GetUserData(_0: number, _1: number): number;
|
|
30
|
+
_b2x_Body_SetPosition(_0: number, _1: number, _2: number, _3: number): void;
|
|
31
|
+
_b2x_Body_SetAngle(_0: number, _1: number, _2: number): void;
|
|
32
|
+
_b2x_Body_GetPose(_0: number, _1: number, _2: number): void;
|
|
33
|
+
_b2x_Body_GetMotion(_0: number, _1: number, _2: number): void;
|
|
34
|
+
_b2x_Body_IsValid(_0: number, _1: number): number;
|
|
35
|
+
_b2x_Body_GetType(_0: number, _1: number): number;
|
|
36
|
+
_b2x_Body_SetType(_0: number, _1: number, _2: number): void;
|
|
37
|
+
_b2x_Body_GetPosition(_0: number, _1: number, _2: number): void;
|
|
38
|
+
_b2x_Body_GetRotation(_0: number, _1: number, _2: number): void;
|
|
39
|
+
_b2x_Body_GetTransform(_0: number, _1: number, _2: number): void;
|
|
40
|
+
_b2x_Body_SetTransform(_0: number, _1: number, _2: number, _3: number, _4: number, _5: number): void;
|
|
41
|
+
_b2x_Body_GetLocalPoint(_0: number, _1: number, _2: number, _3: number, _4: number): void;
|
|
42
|
+
_b2x_Body_GetWorldPoint(_0: number, _1: number, _2: number, _3: number, _4: number): void;
|
|
43
|
+
_b2x_Body_GetLocalVector(_0: number, _1: number, _2: number, _3: number, _4: number): void;
|
|
44
|
+
_b2x_Body_GetWorldVector(_0: number, _1: number, _2: number, _3: number, _4: number): void;
|
|
45
|
+
_b2x_Body_GetLinearVelocity(_0: number, _1: number, _2: number): void;
|
|
46
|
+
_b2x_Body_GetAngularVelocity(_0: number, _1: number): number;
|
|
47
|
+
_b2x_Body_SetLinearVelocity(_0: number, _1: number, _2: number, _3: number): void;
|
|
48
|
+
_b2x_Body_SetAngularVelocity(_0: number, _1: number, _2: number): void;
|
|
49
|
+
_b2x_Body_SetTargetTransform(_0: number, _1: number, _2: number, _3: number, _4: number, _5: number, _6: number): void;
|
|
50
|
+
_b2x_Body_GetLocalPointVelocity(_0: number, _1: number, _2: number, _3: number, _4: number): void;
|
|
51
|
+
_b2x_Body_GetWorldPointVelocity(_0: number, _1: number, _2: number, _3: number, _4: number): void;
|
|
52
|
+
_b2x_Body_ApplyForce(_0: number, _1: number, _2: number, _3: number, _4: number, _5: number, _6: number): void;
|
|
53
|
+
_b2x_Body_ApplyForceToCenter(_0: number, _1: number, _2: number, _3: number, _4: number): void;
|
|
54
|
+
_b2x_Body_ApplyTorque(_0: number, _1: number, _2: number, _3: number): void;
|
|
55
|
+
_b2x_Body_ApplyLinearImpulse(_0: number, _1: number, _2: number, _3: number, _4: number, _5: number, _6: number): void;
|
|
56
|
+
_b2x_Body_ApplyLinearImpulseToCenter(_0: number, _1: number, _2: number, _3: number, _4: number): void;
|
|
57
|
+
_b2x_Body_ApplyAngularImpulse(_0: number, _1: number, _2: number, _3: number): void;
|
|
58
|
+
_b2x_Body_GetMass(_0: number, _1: number): number;
|
|
59
|
+
_b2x_Body_GetRotationalInertia(_0: number, _1: number): number;
|
|
60
|
+
_b2x_Body_GetLocalCenterOfMass(_0: number, _1: number, _2: number): void;
|
|
61
|
+
_b2x_Body_GetWorldCenterOfMass(_0: number, _1: number, _2: number): void;
|
|
62
|
+
_b2x_Body_SetMassData(_0: number, _1: number, _2: number, _3: number, _4: number, _5: number): void;
|
|
63
|
+
_b2x_Body_GetMassData(_0: number, _1: number, _2: number): void;
|
|
64
|
+
_b2x_Body_ApplyMassFromShapes(_0: number, _1: number): void;
|
|
65
|
+
_b2x_Body_SetLinearDamping(_0: number, _1: number, _2: number): void;
|
|
66
|
+
_b2x_Body_GetLinearDamping(_0: number, _1: number): number;
|
|
67
|
+
_b2x_Body_SetAngularDamping(_0: number, _1: number, _2: number): void;
|
|
68
|
+
_b2x_Body_GetAngularDamping(_0: number, _1: number): number;
|
|
69
|
+
_b2x_Body_SetGravityScale(_0: number, _1: number, _2: number): void;
|
|
70
|
+
_b2x_Body_GetGravityScale(_0: number, _1: number): number;
|
|
71
|
+
_b2x_Body_IsAwake(_0: number, _1: number): number;
|
|
72
|
+
_b2x_Body_SetAwake(_0: number, _1: number, _2: number): void;
|
|
73
|
+
_b2x_Body_WakeTouching(_0: number, _1: number): void;
|
|
74
|
+
_b2x_Body_EnableSleep(_0: number, _1: number, _2: number): void;
|
|
75
|
+
_b2x_Body_IsSleepEnabled(_0: number, _1: number): number;
|
|
76
|
+
_b2x_Body_SetSleepThreshold(_0: number, _1: number, _2: number): void;
|
|
77
|
+
_b2x_Body_GetSleepThreshold(_0: number, _1: number): number;
|
|
78
|
+
_b2x_Body_IsEnabled(_0: number, _1: number): number;
|
|
79
|
+
_b2x_Body_Disable(_0: number, _1: number): void;
|
|
80
|
+
_b2x_Body_Enable(_0: number, _1: number): void;
|
|
81
|
+
_b2x_Body_SetMotionLocks(_0: number, _1: number, _2: number): void;
|
|
82
|
+
_b2x_Body_GetMotionLocks(_0: number, _1: number): number;
|
|
83
|
+
_b2x_Body_SetBullet(_0: number, _1: number, _2: number): void;
|
|
84
|
+
_b2x_Body_IsBullet(_0: number, _1: number): number;
|
|
85
|
+
_b2x_Body_EnableContactEvents(_0: number, _1: number, _2: number): void;
|
|
86
|
+
_b2x_Body_EnableHitEvents(_0: number, _1: number, _2: number): void;
|
|
87
|
+
_b2x_Body_GetWorld(_0: number, _1: number): number;
|
|
88
|
+
_b2x_Body_GetShapeCount(_0: number, _1: number): number;
|
|
89
|
+
_b2x_Body_GetShapes(_0: number, _1: number, _2: number, _3: number): number;
|
|
90
|
+
_b2x_Body_GetJointCount(_0: number, _1: number): number;
|
|
91
|
+
_b2x_Body_GetJoints(_0: number, _1: number, _2: number, _3: number): number;
|
|
92
|
+
_b2x_Body_GetContactCapacity(_0: number, _1: number): number;
|
|
93
|
+
_b2x_Body_ComputeAABB(_0: number, _1: number, _2: number): void;
|
|
94
|
+
_free(_0: number): void;
|
|
95
|
+
___set_stack_limits(_0: number, _1: number): void;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
type EmbindString = ArrayBuffer|Uint8Array|Uint8ClampedArray|Int8Array|string;
|
|
99
|
+
export interface ClassHandle {
|
|
100
|
+
isAliasOf(other: ClassHandle): boolean;
|
|
101
|
+
delete(): void;
|
|
102
|
+
deleteLater(): this;
|
|
103
|
+
isDeleted(): boolean;
|
|
104
|
+
// @ts-ignore - If targeting lower than ESNext, this symbol might not exist.
|
|
105
|
+
[Symbol.dispose](): void;
|
|
106
|
+
clone(): this;
|
|
107
|
+
}
|
|
108
|
+
export interface b2Vec2 extends ClassHandle {
|
|
109
|
+
x: number;
|
|
110
|
+
y: number;
|
|
111
|
+
Copy(_0: b2Vec2): b2Vec2;
|
|
112
|
+
Clone(): b2Vec2;
|
|
113
|
+
Add(_0: b2Vec2): b2Vec2;
|
|
114
|
+
Sub(_0: b2Vec2): b2Vec2;
|
|
115
|
+
Mul(_0: b2Vec2): b2Vec2;
|
|
116
|
+
Set(_0: number, _1: number): b2Vec2;
|
|
117
|
+
MulSV(_0: number): b2Vec2;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface b2CosSin extends ClassHandle {
|
|
121
|
+
cosine: number;
|
|
122
|
+
sine: number;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export interface b2Rot extends ClassHandle {
|
|
126
|
+
c: number;
|
|
127
|
+
s: number;
|
|
128
|
+
SetAngle(_0: number): void;
|
|
129
|
+
GetAngle(): number;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export interface b2Transform extends ClassHandle {
|
|
133
|
+
p: b2Vec2;
|
|
134
|
+
q: b2Rot;
|
|
135
|
+
ToBytes(): any;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export interface b2Mat22 extends ClassHandle {
|
|
139
|
+
cx: b2Vec2;
|
|
140
|
+
cy: b2Vec2;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export interface b2AABB extends ClassHandle {
|
|
144
|
+
lowerBound: b2Vec2;
|
|
145
|
+
upperBound: b2Vec2;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export interface b2Hull extends ClassHandle {
|
|
149
|
+
count: number;
|
|
150
|
+
getPoint(_0: number): b2Vec2;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export interface b2WorldDef extends ClassHandle {
|
|
154
|
+
gravity: b2Vec2;
|
|
155
|
+
enableSleep: boolean;
|
|
156
|
+
enableContinuous: boolean;
|
|
157
|
+
workerCount: number;
|
|
158
|
+
internalValue: number;
|
|
159
|
+
restitutionThreshold: number;
|
|
160
|
+
hitEventThreshold: number;
|
|
161
|
+
contactHertz: number;
|
|
162
|
+
contactDampingRatio: number;
|
|
163
|
+
maximumLinearSpeed: number;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export interface b2CastOutput extends ClassHandle {
|
|
167
|
+
normal: b2Vec2;
|
|
168
|
+
point: b2Vec2;
|
|
169
|
+
hit: boolean;
|
|
170
|
+
iterations: number;
|
|
171
|
+
fraction: number;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export interface b2RayCastInput extends ClassHandle {
|
|
175
|
+
origin: b2Vec2;
|
|
176
|
+
translation: b2Vec2;
|
|
177
|
+
maxFraction: number;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export interface b2ManifoldPoint extends ClassHandle {
|
|
181
|
+
point: b2Vec2;
|
|
182
|
+
anchorA: b2Vec2;
|
|
183
|
+
anchorB: b2Vec2;
|
|
184
|
+
persisted: boolean;
|
|
185
|
+
id: number;
|
|
186
|
+
separation: number;
|
|
187
|
+
normalImpulse: number;
|
|
188
|
+
tangentImpulse: number;
|
|
189
|
+
totalNormalImpulse: number;
|
|
190
|
+
normalVelocity: number;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export interface b2Manifold extends ClassHandle {
|
|
194
|
+
normal: b2Vec2;
|
|
195
|
+
pointCount: number;
|
|
196
|
+
GetPoint(_0: number): b2ManifoldPoint;
|
|
197
|
+
SetPoint(_0: number, _1: b2ManifoldPoint): void;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export interface b2Counters extends ClassHandle {
|
|
201
|
+
bodyCount: number;
|
|
202
|
+
shapeCount: number;
|
|
203
|
+
contactCount: number;
|
|
204
|
+
jointCount: number;
|
|
205
|
+
islandCount: number;
|
|
206
|
+
stackUsed: number;
|
|
207
|
+
staticTreeHeight: number;
|
|
208
|
+
treeHeight: number;
|
|
209
|
+
byteCount: number;
|
|
210
|
+
taskCount: number;
|
|
211
|
+
GetColorCount(_0: number): number;
|
|
212
|
+
SetColorCount(_0: number, _1: number): void;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export interface b2SensorEvents extends ClassHandle {
|
|
216
|
+
beginCount: number;
|
|
217
|
+
endCount: number;
|
|
218
|
+
GetBeginEvent(_0: number): b2SensorBeginTouchEvent;
|
|
219
|
+
GetEndEvent(_0: number): b2SensorEndTouchEvent;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export interface b2BodyEvents extends ClassHandle {
|
|
223
|
+
moveCount: number;
|
|
224
|
+
GetMoveEvent(_0: number): b2BodyMoveEvent;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export interface b2BodyMoveEvent extends ClassHandle {
|
|
228
|
+
transform: b2Transform;
|
|
229
|
+
fellAsleep: boolean;
|
|
230
|
+
bodyId: b2BodyId;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export interface b2ContactEvents extends ClassHandle {
|
|
234
|
+
beginCount: number;
|
|
235
|
+
endCount: number;
|
|
236
|
+
hitCount: number;
|
|
237
|
+
GetBeginEvent(_0: number): b2ContactBeginTouchEvent;
|
|
238
|
+
GetEndEvent(_0: number): b2ContactEndTouchEvent;
|
|
239
|
+
GetHitEvent(_0: number): b2ContactHitEvent;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export interface b2ContactBeginTouchEvent extends ClassHandle {
|
|
243
|
+
shapeIdA: b2ShapeId;
|
|
244
|
+
shapeIdB: b2ShapeId;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export interface b2ContactData extends ClassHandle {
|
|
248
|
+
manifold: b2Manifold;
|
|
249
|
+
shapeIdA: b2ShapeId;
|
|
250
|
+
shapeIdB: b2ShapeId;
|
|
251
|
+
contactId: b2ContactId;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export interface b2ContactHitEvent extends ClassHandle {
|
|
255
|
+
point: b2Vec2;
|
|
256
|
+
normal: b2Vec2;
|
|
257
|
+
shapeIdA: b2ShapeId;
|
|
258
|
+
shapeIdB: b2ShapeId;
|
|
259
|
+
approachSpeed: number;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export interface b2JointEvent extends ClassHandle {
|
|
263
|
+
jointId: b2JointId;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export interface b2JointEvents extends ClassHandle {
|
|
267
|
+
count: number;
|
|
268
|
+
GetJointEvent(_0: number): b2JointEvent;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export interface b2Profile extends ClassHandle {
|
|
272
|
+
step: number;
|
|
273
|
+
pairs: number;
|
|
274
|
+
collide: number;
|
|
275
|
+
solve: number;
|
|
276
|
+
prepareStages: number;
|
|
277
|
+
solveConstraints: number;
|
|
278
|
+
prepareConstraints: number;
|
|
279
|
+
integrateVelocities: number;
|
|
280
|
+
warmStart: number;
|
|
281
|
+
solveImpulses: number;
|
|
282
|
+
integratePositions: number;
|
|
283
|
+
relaxImpulses: number;
|
|
284
|
+
applyRestitution: number;
|
|
285
|
+
storeImpulses: number;
|
|
286
|
+
splitIslands: number;
|
|
287
|
+
transforms: number;
|
|
288
|
+
sensorHits: number;
|
|
289
|
+
jointEvents: number;
|
|
290
|
+
hitEvents: number;
|
|
291
|
+
refit: number;
|
|
292
|
+
bullets: number;
|
|
293
|
+
sleepIslands: number;
|
|
294
|
+
sensors: number;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export interface b2QueryFilter extends ClassHandle {
|
|
298
|
+
categoryBits: number;
|
|
299
|
+
maskBits: number;
|
|
300
|
+
setCategoryBits64(_0: EmbindString): void;
|
|
301
|
+
getCategoryBits64(): string;
|
|
302
|
+
setMaskBits64(_0: EmbindString): void;
|
|
303
|
+
getMaskBits64(): string;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
export interface b2ExplosionDef extends ClassHandle {
|
|
307
|
+
position: b2Vec2;
|
|
308
|
+
maskBits: number;
|
|
309
|
+
radius: number;
|
|
310
|
+
falloff: number;
|
|
311
|
+
impulsePerLength: number;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export interface b2RayResult extends ClassHandle {
|
|
315
|
+
point: b2Vec2;
|
|
316
|
+
normal: b2Vec2;
|
|
317
|
+
hit: boolean;
|
|
318
|
+
shapeId: b2ShapeId;
|
|
319
|
+
nodeVisits: number;
|
|
320
|
+
leafVisits: number;
|
|
321
|
+
fraction: number;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export interface b2Circle extends ClassHandle {
|
|
325
|
+
center: b2Vec2;
|
|
326
|
+
radius: number;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export interface b2Capsule extends ClassHandle {
|
|
330
|
+
center1: b2Vec2;
|
|
331
|
+
center2: b2Vec2;
|
|
332
|
+
radius: number;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
export interface b2Segment extends ClassHandle {
|
|
336
|
+
point1: b2Vec2;
|
|
337
|
+
point2: b2Vec2;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
export interface b2ShapeCastInput extends ClassHandle {
|
|
341
|
+
translation: b2Vec2;
|
|
342
|
+
proxy: b2ShapeProxy;
|
|
343
|
+
canEncroach: boolean;
|
|
344
|
+
maxFraction: number;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
export interface b2ShapeCastPairInput extends ClassHandle {
|
|
348
|
+
transformA: b2Transform;
|
|
349
|
+
transformB: b2Transform;
|
|
350
|
+
translationB: b2Vec2;
|
|
351
|
+
proxyA: b2ShapeProxy;
|
|
352
|
+
proxyB: b2ShapeProxy;
|
|
353
|
+
canEncroach: boolean;
|
|
354
|
+
maxFraction: number;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
export interface b2SimplexCache extends ClassHandle {
|
|
358
|
+
count: number;
|
|
359
|
+
GetIndexA(_0: number): number;
|
|
360
|
+
SetIndexA(_0: number, _1: number): void;
|
|
361
|
+
GetIndexB(_0: number): number;
|
|
362
|
+
SetIndexB(_0: number, _1: number): void;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
export interface b2SegmentDistanceResult extends ClassHandle {
|
|
366
|
+
closest1: b2Vec2;
|
|
367
|
+
closest2: b2Vec2;
|
|
368
|
+
fraction1: number;
|
|
369
|
+
fraction2: number;
|
|
370
|
+
distanceSquared: number;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
export interface b2Sweep extends ClassHandle {
|
|
374
|
+
localCenter: b2Vec2;
|
|
375
|
+
c1: b2Vec2;
|
|
376
|
+
c2: b2Vec2;
|
|
377
|
+
q1: b2Rot;
|
|
378
|
+
q2: b2Rot;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
export interface b2TOIInput extends ClassHandle {
|
|
382
|
+
sweepA: b2Sweep;
|
|
383
|
+
sweepB: b2Sweep;
|
|
384
|
+
proxyA: b2ShapeProxy;
|
|
385
|
+
proxyB: b2ShapeProxy;
|
|
386
|
+
maxFraction: number;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
export interface b2TOIStateValue<T extends number> {
|
|
390
|
+
value: T;
|
|
391
|
+
}
|
|
392
|
+
export type b2TOIState = b2TOIStateValue<0>|b2TOIStateValue<1>|b2TOIStateValue<2>|b2TOIStateValue<3>|b2TOIStateValue<4>;
|
|
393
|
+
|
|
394
|
+
export interface b2TOIOutput extends ClassHandle {
|
|
395
|
+
state: b2TOIState;
|
|
396
|
+
point: b2Vec2;
|
|
397
|
+
normal: b2Vec2;
|
|
398
|
+
fraction: number;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
export interface b2Filter extends ClassHandle {
|
|
402
|
+
groupIndex: number;
|
|
403
|
+
categoryBits: number;
|
|
404
|
+
maskBits: number;
|
|
405
|
+
setCategoryBits64(_0: EmbindString): void;
|
|
406
|
+
getCategoryBits64(): string;
|
|
407
|
+
setMaskBits64(_0: EmbindString): void;
|
|
408
|
+
getMaskBits64(): string;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
export interface b2ShapeDef extends ClassHandle {
|
|
412
|
+
filter: b2Filter;
|
|
413
|
+
material: b2SurfaceMaterial;
|
|
414
|
+
enableCustomFiltering: boolean;
|
|
415
|
+
isSensor: boolean;
|
|
416
|
+
enableSensorEvents: boolean;
|
|
417
|
+
enableContactEvents: boolean;
|
|
418
|
+
enableHitEvents: boolean;
|
|
419
|
+
enablePreSolveEvents: boolean;
|
|
420
|
+
invokeContactCreation: boolean;
|
|
421
|
+
updateBodyMass: boolean;
|
|
422
|
+
density: number;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
export interface b2ShapeProxy extends ClassHandle {
|
|
426
|
+
count: number;
|
|
427
|
+
radius: number;
|
|
428
|
+
getPoint(_0: number): b2Vec2;
|
|
429
|
+
setPoint(_0: number, _1: b2Vec2): void;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
export interface b2SurfaceMaterial extends ClassHandle {
|
|
433
|
+
customColor: number;
|
|
434
|
+
userMaterialId: bigint;
|
|
435
|
+
friction: number;
|
|
436
|
+
restitution: number;
|
|
437
|
+
rollingResistance: number;
|
|
438
|
+
tangentSpeed: number;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
export interface b2Polygon extends ClassHandle {
|
|
442
|
+
centroid: b2Vec2;
|
|
443
|
+
count: number;
|
|
444
|
+
radius: number;
|
|
445
|
+
GetVertex(_0: number): b2Vec2;
|
|
446
|
+
SetVertex(_0: number, _1: b2Vec2): void;
|
|
447
|
+
GetNormal(_0: number): b2Vec2;
|
|
448
|
+
SetNormal(_0: number, _1: b2Vec2): void;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
export interface b2ChainDef extends ClassHandle {
|
|
452
|
+
filter: b2Filter;
|
|
453
|
+
isLoop: boolean;
|
|
454
|
+
enableSensorEvents: boolean;
|
|
455
|
+
materialCount: number;
|
|
456
|
+
count: number;
|
|
457
|
+
internalValue: number;
|
|
458
|
+
delete(): void;
|
|
459
|
+
GetMaterials(): any;
|
|
460
|
+
SetMaterials(_0: any): void;
|
|
461
|
+
GetPoints(): any;
|
|
462
|
+
SetPoints(_0: any): void;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
export interface b2ChainSegment extends ClassHandle {
|
|
466
|
+
ghost1: b2Vec2;
|
|
467
|
+
segment: b2Segment;
|
|
468
|
+
ghost2: b2Vec2;
|
|
469
|
+
chainId: number;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
export interface b2ShapeTypeValue<T extends number> {
|
|
473
|
+
value: T;
|
|
474
|
+
}
|
|
475
|
+
export type b2ShapeType = b2ShapeTypeValue<0>|b2ShapeTypeValue<1>|b2ShapeTypeValue<2>|b2ShapeTypeValue<3>|b2ShapeTypeValue<4>|b2ShapeTypeValue<5>;
|
|
476
|
+
|
|
477
|
+
export interface b2MassData extends ClassHandle {
|
|
478
|
+
center: b2Vec2;
|
|
479
|
+
mass: number;
|
|
480
|
+
rotationalInertia: number;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
export interface b2BodyTypeValue<T extends number> {
|
|
484
|
+
value: T;
|
|
485
|
+
}
|
|
486
|
+
export type b2BodyType = b2BodyTypeValue<0>|b2BodyTypeValue<1>|b2BodyTypeValue<2>|b2BodyTypeValue<3>;
|
|
487
|
+
|
|
488
|
+
export interface b2MotionLocks extends ClassHandle {
|
|
489
|
+
linearX: boolean;
|
|
490
|
+
linearY: boolean;
|
|
491
|
+
angularZ: boolean;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
export interface b2BodyDef extends ClassHandle {
|
|
495
|
+
type: b2BodyType;
|
|
496
|
+
position: b2Vec2;
|
|
497
|
+
rotation: b2Rot;
|
|
498
|
+
linearVelocity: b2Vec2;
|
|
499
|
+
motionLocks: b2MotionLocks;
|
|
500
|
+
enableSleep: boolean;
|
|
501
|
+
isAwake: boolean;
|
|
502
|
+
isBullet: boolean;
|
|
503
|
+
isEnabled: boolean;
|
|
504
|
+
allowFastRotation: boolean;
|
|
505
|
+
internalValue: number;
|
|
506
|
+
angularVelocity: number;
|
|
507
|
+
linearDamping: number;
|
|
508
|
+
angularDamping: number;
|
|
509
|
+
gravityScale: number;
|
|
510
|
+
sleepThreshold: number;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
export interface b2JointTypeValue<T extends number> {
|
|
514
|
+
value: T;
|
|
515
|
+
}
|
|
516
|
+
export type b2JointType = b2JointTypeValue<0>|b2JointTypeValue<2>|b2JointTypeValue<1>|b2JointTypeValue<3>|b2JointTypeValue<4>|b2JointTypeValue<5>|b2JointTypeValue<6>;
|
|
517
|
+
|
|
518
|
+
export interface b2JointDef extends ClassHandle {
|
|
519
|
+
localFrameA: b2Transform;
|
|
520
|
+
localFrameB: b2Transform;
|
|
521
|
+
collideConnected: boolean;
|
|
522
|
+
bodyIdA: b2BodyId;
|
|
523
|
+
bodyIdB: b2BodyId;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
export interface b2DistanceJointDef extends ClassHandle {
|
|
527
|
+
base: b2JointDef;
|
|
528
|
+
enableSpring: boolean;
|
|
529
|
+
enableLimit: boolean;
|
|
530
|
+
enableMotor: boolean;
|
|
531
|
+
length: number;
|
|
532
|
+
hertz: number;
|
|
533
|
+
dampingRatio: number;
|
|
534
|
+
minLength: number;
|
|
535
|
+
maxLength: number;
|
|
536
|
+
maxMotorForce: number;
|
|
537
|
+
motorSpeed: number;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
export interface b2MotorJointDef extends ClassHandle {
|
|
541
|
+
base: b2JointDef;
|
|
542
|
+
linearVelocity: b2Vec2;
|
|
543
|
+
maxVelocityForce: number;
|
|
544
|
+
angularVelocity: number;
|
|
545
|
+
maxVelocityTorque: number;
|
|
546
|
+
linearHertz: number;
|
|
547
|
+
linearDampingRatio: number;
|
|
548
|
+
maxSpringForce: number;
|
|
549
|
+
angularHertz: number;
|
|
550
|
+
angularDampingRatio: number;
|
|
551
|
+
maxSpringTorque: number;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
export interface b2FilterJointDef extends ClassHandle {
|
|
555
|
+
base: b2JointDef;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
export interface b2PrismaticJointDef extends ClassHandle {
|
|
559
|
+
base: b2JointDef;
|
|
560
|
+
enableSpring: boolean;
|
|
561
|
+
enableLimit: boolean;
|
|
562
|
+
enableMotor: boolean;
|
|
563
|
+
hertz: number;
|
|
564
|
+
dampingRatio: number;
|
|
565
|
+
targetTranslation: number;
|
|
566
|
+
lowerTranslation: number;
|
|
567
|
+
upperTranslation: number;
|
|
568
|
+
maxMotorForce: number;
|
|
569
|
+
motorSpeed: number;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
export interface b2RevoluteJointDef extends ClassHandle {
|
|
573
|
+
base: b2JointDef;
|
|
574
|
+
enableSpring: boolean;
|
|
575
|
+
enableLimit: boolean;
|
|
576
|
+
enableMotor: boolean;
|
|
577
|
+
targetAngle: number;
|
|
578
|
+
hertz: number;
|
|
579
|
+
dampingRatio: number;
|
|
580
|
+
lowerAngle: number;
|
|
581
|
+
upperAngle: number;
|
|
582
|
+
maxMotorTorque: number;
|
|
583
|
+
motorSpeed: number;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
export interface b2WeldJointDef extends ClassHandle {
|
|
587
|
+
base: b2JointDef;
|
|
588
|
+
linearHertz: number;
|
|
589
|
+
angularHertz: number;
|
|
590
|
+
linearDampingRatio: number;
|
|
591
|
+
angularDampingRatio: number;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
export interface b2WheelJointDef extends ClassHandle {
|
|
595
|
+
base: b2JointDef;
|
|
596
|
+
enableSpring: boolean;
|
|
597
|
+
enableLimit: boolean;
|
|
598
|
+
enableMotor: boolean;
|
|
599
|
+
hertz: number;
|
|
600
|
+
dampingRatio: number;
|
|
601
|
+
lowerTranslation: number;
|
|
602
|
+
upperTranslation: number;
|
|
603
|
+
maxMotorTorque: number;
|
|
604
|
+
motorSpeed: number;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
export interface b2RayCallbackResult extends ClassHandle {
|
|
608
|
+
point: b2Vec2;
|
|
609
|
+
normal: b2Vec2;
|
|
610
|
+
shapeId: b2ShapeId;
|
|
611
|
+
fraction: number;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
export interface b2Plane extends ClassHandle {
|
|
615
|
+
normal: b2Vec2;
|
|
616
|
+
offset: number;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
export interface b2CollisionPlane extends ClassHandle {
|
|
620
|
+
plane: b2Plane;
|
|
621
|
+
clipVelocity: boolean;
|
|
622
|
+
pushLimit: number;
|
|
623
|
+
push: number;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
export interface b2PlaneSolverResult extends ClassHandle {
|
|
627
|
+
translation: b2Vec2;
|
|
628
|
+
iterationCount: number;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
export type b2PlaneResult = {
|
|
632
|
+
plane: b2Plane,
|
|
633
|
+
hit: boolean
|
|
634
|
+
};
|
|
635
|
+
|
|
636
|
+
export type b2WorldId = {
|
|
637
|
+
index1: number,
|
|
638
|
+
generation: number
|
|
639
|
+
};
|
|
640
|
+
|
|
641
|
+
export type b2BodyId = {
|
|
642
|
+
index1: number,
|
|
643
|
+
world0: number,
|
|
644
|
+
generation: number
|
|
645
|
+
};
|
|
646
|
+
|
|
647
|
+
export type b2ShapeId = {
|
|
648
|
+
index1: number,
|
|
649
|
+
world0: number,
|
|
650
|
+
generation: number
|
|
651
|
+
};
|
|
652
|
+
|
|
653
|
+
export type b2SensorBeginTouchEvent = {
|
|
654
|
+
sensorShapeId: b2ShapeId,
|
|
655
|
+
visitorShapeId: b2ShapeId
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
export type b2SensorEndTouchEvent = {
|
|
659
|
+
sensorShapeId: b2ShapeId,
|
|
660
|
+
visitorShapeId: b2ShapeId
|
|
661
|
+
};
|
|
662
|
+
|
|
663
|
+
export type b2ContactEndTouchEvent = {
|
|
664
|
+
shapeIdA: b2ShapeId,
|
|
665
|
+
shapeIdB: b2ShapeId
|
|
666
|
+
};
|
|
667
|
+
|
|
668
|
+
export type b2OverlapCallbackResult = {
|
|
669
|
+
shapeId: b2ShapeId
|
|
670
|
+
};
|
|
671
|
+
|
|
672
|
+
export type b2TreeStats = {
|
|
673
|
+
nodeVisits: number,
|
|
674
|
+
leafVisits: number
|
|
675
|
+
};
|
|
676
|
+
|
|
677
|
+
export type b2Version = {
|
|
678
|
+
major: number,
|
|
679
|
+
minor: number,
|
|
680
|
+
revision: number
|
|
681
|
+
};
|
|
682
|
+
|
|
683
|
+
export type b2ChainId = {
|
|
684
|
+
index1: number,
|
|
685
|
+
world0: number,
|
|
686
|
+
generation: number
|
|
687
|
+
};
|
|
688
|
+
|
|
689
|
+
export type b2JointId = {
|
|
690
|
+
index1: number,
|
|
691
|
+
world0: number,
|
|
692
|
+
generation: number
|
|
693
|
+
};
|
|
694
|
+
|
|
695
|
+
export type b2ContactId = {
|
|
696
|
+
index1: number,
|
|
697
|
+
world0: number,
|
|
698
|
+
padding: number,
|
|
699
|
+
generation: number
|
|
700
|
+
};
|
|
701
|
+
|
|
702
|
+
export type MemoryStats = {
|
|
703
|
+
arena: number,
|
|
704
|
+
ordblks: number,
|
|
705
|
+
smblks: number,
|
|
706
|
+
hblks: number,
|
|
707
|
+
hblkhd: number,
|
|
708
|
+
usmblks: number,
|
|
709
|
+
fsmblks: number,
|
|
710
|
+
uordblks: number,
|
|
711
|
+
fordblks: number,
|
|
712
|
+
keepcost: number,
|
|
713
|
+
allocatedSpace: number,
|
|
714
|
+
freeSpace: number,
|
|
715
|
+
totalSpace: number
|
|
716
|
+
};
|
|
717
|
+
|
|
718
|
+
export type b2ConstraintTuning = {
|
|
719
|
+
hertz: number,
|
|
720
|
+
dampingRatio: number
|
|
721
|
+
};
|
|
722
|
+
|
|
723
|
+
export type b2ForceRange = {
|
|
724
|
+
lowerForce: number,
|
|
725
|
+
upperForce: number
|
|
726
|
+
};
|
|
727
|
+
|
|
728
|
+
interface EmbindModule {
|
|
729
|
+
b2Vec2: {
|
|
730
|
+
new(): b2Vec2;
|
|
731
|
+
new(_0: number, _1: number): b2Vec2;
|
|
732
|
+
};
|
|
733
|
+
b2Vec2_zero: b2Vec2;
|
|
734
|
+
b2CosSin: {
|
|
735
|
+
new(): b2CosSin;
|
|
736
|
+
};
|
|
737
|
+
b2Rot: {
|
|
738
|
+
new(): b2Rot;
|
|
739
|
+
};
|
|
740
|
+
b2Rot_identity: b2Rot;
|
|
741
|
+
b2Transform: {
|
|
742
|
+
new(): b2Transform;
|
|
743
|
+
};
|
|
744
|
+
b2Mat22: {
|
|
745
|
+
new(): b2Mat22;
|
|
746
|
+
};
|
|
747
|
+
b2AABB: {
|
|
748
|
+
new(): b2AABB;
|
|
749
|
+
};
|
|
750
|
+
b2Hull: {
|
|
751
|
+
new(): b2Hull;
|
|
752
|
+
};
|
|
753
|
+
b2WorldDef: {
|
|
754
|
+
new(): b2WorldDef;
|
|
755
|
+
new(_0: b2WorldDef): b2WorldDef;
|
|
756
|
+
};
|
|
757
|
+
b2CastOutput: {
|
|
758
|
+
new(): b2CastOutput;
|
|
759
|
+
};
|
|
760
|
+
b2RayCastInput: {
|
|
761
|
+
new(): b2RayCastInput;
|
|
762
|
+
};
|
|
763
|
+
b2ManifoldPoint: {
|
|
764
|
+
new(): b2ManifoldPoint;
|
|
765
|
+
};
|
|
766
|
+
b2Manifold: {
|
|
767
|
+
new(): b2Manifold;
|
|
768
|
+
};
|
|
769
|
+
b2Counters: {
|
|
770
|
+
new(): b2Counters;
|
|
771
|
+
};
|
|
772
|
+
b2SensorEvents: {
|
|
773
|
+
new(): b2SensorEvents;
|
|
774
|
+
};
|
|
775
|
+
b2BodyEvents: {
|
|
776
|
+
new(): b2BodyEvents;
|
|
777
|
+
};
|
|
778
|
+
b2BodyMoveEvent: {};
|
|
779
|
+
b2ContactEvents: {
|
|
780
|
+
new(): b2ContactEvents;
|
|
781
|
+
};
|
|
782
|
+
b2ContactBeginTouchEvent: {};
|
|
783
|
+
b2ContactData: {};
|
|
784
|
+
b2ContactHitEvent: {};
|
|
785
|
+
b2JointEvent: {};
|
|
786
|
+
b2JointEvents: {
|
|
787
|
+
new(): b2JointEvents;
|
|
788
|
+
};
|
|
789
|
+
b2Profile: {
|
|
790
|
+
new(): b2Profile;
|
|
791
|
+
};
|
|
792
|
+
b2QueryFilter: {
|
|
793
|
+
new(): b2QueryFilter;
|
|
794
|
+
};
|
|
795
|
+
b2DefaultQueryFilter(): b2QueryFilter;
|
|
796
|
+
b2ExplosionDef: {
|
|
797
|
+
new(): b2ExplosionDef;
|
|
798
|
+
};
|
|
799
|
+
b2DefaultExplosionDef(): b2ExplosionDef;
|
|
800
|
+
b2RayResult: {
|
|
801
|
+
new(): b2RayResult;
|
|
802
|
+
};
|
|
803
|
+
b2Circle: {
|
|
804
|
+
new(): b2Circle;
|
|
805
|
+
};
|
|
806
|
+
b2Capsule: {
|
|
807
|
+
new(): b2Capsule;
|
|
808
|
+
};
|
|
809
|
+
b2Segment: {
|
|
810
|
+
new(): b2Segment;
|
|
811
|
+
};
|
|
812
|
+
b2ShapeCastInput: {
|
|
813
|
+
new(): b2ShapeCastInput;
|
|
814
|
+
};
|
|
815
|
+
b2ShapeCastPairInput: {
|
|
816
|
+
new(): b2ShapeCastPairInput;
|
|
817
|
+
};
|
|
818
|
+
b2SimplexCache: {
|
|
819
|
+
new(): b2SimplexCache;
|
|
820
|
+
};
|
|
821
|
+
b2SegmentDistanceResult: {
|
|
822
|
+
new(): b2SegmentDistanceResult;
|
|
823
|
+
};
|
|
824
|
+
b2Sweep: {
|
|
825
|
+
new(): b2Sweep;
|
|
826
|
+
};
|
|
827
|
+
b2TOIInput: {
|
|
828
|
+
new(): b2TOIInput;
|
|
829
|
+
};
|
|
830
|
+
b2TOIState: {b2_toiStateUnknown: b2TOIStateValue<0>, b2_toiStateFailed: b2TOIStateValue<1>, b2_toiStateOverlapped: b2TOIStateValue<2>, b2_toiStateHit: b2TOIStateValue<3>, b2_toiStateSeparated: b2TOIStateValue<4>};
|
|
831
|
+
b2TOIOutput: {
|
|
832
|
+
new(): b2TOIOutput;
|
|
833
|
+
};
|
|
834
|
+
b2Filter: {
|
|
835
|
+
new(): b2Filter;
|
|
836
|
+
};
|
|
837
|
+
b2DefaultFilter(): b2Filter;
|
|
838
|
+
b2ShapeDef: {
|
|
839
|
+
new(): b2ShapeDef;
|
|
840
|
+
};
|
|
841
|
+
b2ShapeProxy: {
|
|
842
|
+
new(): b2ShapeProxy;
|
|
843
|
+
};
|
|
844
|
+
b2SurfaceMaterial: {
|
|
845
|
+
new(): b2SurfaceMaterial;
|
|
846
|
+
};
|
|
847
|
+
b2DefaultSurfaceMaterial(): b2SurfaceMaterial;
|
|
848
|
+
b2Polygon: {
|
|
849
|
+
new(): b2Polygon;
|
|
850
|
+
GetMaxVertices(): number;
|
|
851
|
+
};
|
|
852
|
+
b2ChainDef: {
|
|
853
|
+
new(): b2ChainDef;
|
|
854
|
+
};
|
|
855
|
+
b2DefaultChainDef(): b2ChainDef;
|
|
856
|
+
b2ChainSegment: {
|
|
857
|
+
new(): b2ChainSegment;
|
|
858
|
+
};
|
|
859
|
+
b2MakeOffsetPolygon(_0: b2Hull | null, _1: b2Vec2, _2: b2Rot): b2Polygon;
|
|
860
|
+
b2TransformPolygon(_0: b2Transform, _1: b2Polygon | null): b2Polygon;
|
|
861
|
+
b2ComputeCircleAABB(_0: b2Circle | null, _1: b2Transform): b2AABB;
|
|
862
|
+
b2ComputeCapsuleAABB(_0: b2Capsule | null, _1: b2Transform): b2AABB;
|
|
863
|
+
b2ComputePolygonAABB(_0: b2Polygon | null, _1: b2Transform): b2AABB;
|
|
864
|
+
b2ComputeSegmentAABB(_0: b2Segment | null, _1: b2Transform): b2AABB;
|
|
865
|
+
b2RayCastCircle(_0: b2Circle | null, _1: b2RayCastInput | null): b2CastOutput;
|
|
866
|
+
b2RayCastCapsule(_0: b2Capsule | null, _1: b2RayCastInput | null): b2CastOutput;
|
|
867
|
+
b2RayCastPolygon(_0: b2Polygon | null, _1: b2RayCastInput | null): b2CastOutput;
|
|
868
|
+
b2ShapeCastCircle(_0: b2Circle | null, _1: b2ShapeCastInput | null): b2CastOutput;
|
|
869
|
+
b2ShapeCastCapsule(_0: b2Capsule | null, _1: b2ShapeCastInput | null): b2CastOutput;
|
|
870
|
+
b2ShapeCastSegment(_0: b2Segment | null, _1: b2ShapeCastInput | null): b2CastOutput;
|
|
871
|
+
b2ShapeCastPolygon(_0: b2Polygon | null, _1: b2ShapeCastInput | null): b2CastOutput;
|
|
872
|
+
b2ShapeCast(_0: b2ShapeCastPairInput | null): b2CastOutput;
|
|
873
|
+
b2TimeOfImpact(_0: b2TOIInput | null): b2TOIOutput;
|
|
874
|
+
b2SegmentDistance(_0: b2Vec2, _1: b2Vec2, _2: b2Vec2, _3: b2Vec2): b2SegmentDistanceResult;
|
|
875
|
+
b2CollideCircles(_0: b2Circle | null, _1: b2Transform, _2: b2Circle | null, _3: b2Transform): b2Manifold;
|
|
876
|
+
b2CollideCapsuleAndCircle(_0: b2Capsule | null, _1: b2Transform, _2: b2Circle | null, _3: b2Transform): b2Manifold;
|
|
877
|
+
b2CollideSegmentAndCircle(_0: b2Segment | null, _1: b2Transform, _2: b2Circle | null, _3: b2Transform): b2Manifold;
|
|
878
|
+
b2CollidePolygonAndCircle(_0: b2Polygon | null, _1: b2Transform, _2: b2Circle | null, _3: b2Transform): b2Manifold;
|
|
879
|
+
b2CollideCapsules(_0: b2Capsule | null, _1: b2Transform, _2: b2Capsule | null, _3: b2Transform): b2Manifold;
|
|
880
|
+
b2CollideSegmentAndCapsule(_0: b2Segment | null, _1: b2Transform, _2: b2Capsule | null, _3: b2Transform): b2Manifold;
|
|
881
|
+
b2CollidePolygonAndCapsule(_0: b2Polygon | null, _1: b2Transform, _2: b2Capsule | null, _3: b2Transform): b2Manifold;
|
|
882
|
+
b2CollidePolygons(_0: b2Polygon | null, _1: b2Transform, _2: b2Polygon | null, _3: b2Transform): b2Manifold;
|
|
883
|
+
b2CollideSegmentAndPolygon(_0: b2Segment | null, _1: b2Transform, _2: b2Polygon | null, _3: b2Transform): b2Manifold;
|
|
884
|
+
b2CollideChainSegmentAndCircle(_0: b2ChainSegment | null, _1: b2Transform, _2: b2Circle | null, _3: b2Transform): b2Manifold;
|
|
885
|
+
b2CollideChainSegmentAndCapsule(_0: b2ChainSegment | null, _1: b2Transform, _2: b2Capsule | null, _3: b2Transform, _4: b2SimplexCache | null): b2Manifold;
|
|
886
|
+
b2CollideChainSegmentAndPolygon(_0: b2ChainSegment | null, _1: b2Transform, _2: b2Polygon | null, _3: b2Transform, _4: b2SimplexCache | null): b2Manifold;
|
|
887
|
+
b2ShapeType: {b2_circleShape: b2ShapeTypeValue<0>, b2_capsuleShape: b2ShapeTypeValue<1>, b2_segmentShape: b2ShapeTypeValue<2>, b2_polygonShape: b2ShapeTypeValue<3>, b2_chainSegmentShape: b2ShapeTypeValue<4>, b2_shapeTypeCount: b2ShapeTypeValue<5>};
|
|
888
|
+
b2DefaultShapeDef(): b2ShapeDef;
|
|
889
|
+
b2MassData: {
|
|
890
|
+
new(): b2MassData;
|
|
891
|
+
};
|
|
892
|
+
b2BodyType: {b2_staticBody: b2BodyTypeValue<0>, b2_kinematicBody: b2BodyTypeValue<1>, b2_dynamicBody: b2BodyTypeValue<2>, b2_bodyTypeCount: b2BodyTypeValue<3>};
|
|
893
|
+
b2MotionLocks: {
|
|
894
|
+
new(): b2MotionLocks;
|
|
895
|
+
};
|
|
896
|
+
b2BodyDef: {
|
|
897
|
+
new(): b2BodyDef;
|
|
898
|
+
new(_0: b2BodyDef): b2BodyDef;
|
|
899
|
+
};
|
|
900
|
+
b2JointType: {b2_distanceJoint: b2JointTypeValue<0>, b2_motorJoint: b2JointTypeValue<2>, b2_filterJoint: b2JointTypeValue<1>, b2_prismaticJoint: b2JointTypeValue<3>, b2_revoluteJoint: b2JointTypeValue<4>, b2_weldJoint: b2JointTypeValue<5>, b2_wheelJoint: b2JointTypeValue<6>};
|
|
901
|
+
b2JointDef: {
|
|
902
|
+
new(): b2JointDef;
|
|
903
|
+
};
|
|
904
|
+
b2DistanceJointDef: {
|
|
905
|
+
new(): b2DistanceJointDef;
|
|
906
|
+
new(_0: b2DistanceJointDef): b2DistanceJointDef;
|
|
907
|
+
};
|
|
908
|
+
b2MotorJointDef: {
|
|
909
|
+
new(): b2MotorJointDef;
|
|
910
|
+
new(_0: b2MotorJointDef): b2MotorJointDef;
|
|
911
|
+
};
|
|
912
|
+
b2FilterJointDef: {
|
|
913
|
+
new(): b2FilterJointDef;
|
|
914
|
+
new(_0: b2FilterJointDef): b2FilterJointDef;
|
|
915
|
+
};
|
|
916
|
+
b2PrismaticJointDef: {
|
|
917
|
+
new(): b2PrismaticJointDef;
|
|
918
|
+
new(_0: b2PrismaticJointDef): b2PrismaticJointDef;
|
|
919
|
+
};
|
|
920
|
+
b2RevoluteJointDef: {
|
|
921
|
+
new(): b2RevoluteJointDef;
|
|
922
|
+
new(_0: b2RevoluteJointDef): b2RevoluteJointDef;
|
|
923
|
+
};
|
|
924
|
+
b2WeldJointDef: {
|
|
925
|
+
new(): b2WeldJointDef;
|
|
926
|
+
new(_0: b2WeldJointDef): b2WeldJointDef;
|
|
927
|
+
};
|
|
928
|
+
b2WheelJointDef: {
|
|
929
|
+
new(): b2WheelJointDef;
|
|
930
|
+
new(_0: b2WheelJointDef): b2WheelJointDef;
|
|
931
|
+
};
|
|
932
|
+
b2DefaultWorldDef(): b2WorldDef;
|
|
933
|
+
b2RayCallbackResult: {
|
|
934
|
+
new(): b2RayCallbackResult;
|
|
935
|
+
};
|
|
936
|
+
b2Plane: {
|
|
937
|
+
new(): b2Plane;
|
|
938
|
+
};
|
|
939
|
+
b2CollisionPlane: {
|
|
940
|
+
new(): b2CollisionPlane;
|
|
941
|
+
};
|
|
942
|
+
b2PlaneSolverResult: {
|
|
943
|
+
new(): b2PlaneSolverResult;
|
|
944
|
+
};
|
|
945
|
+
b2DefaultBodyDef(): b2BodyDef;
|
|
946
|
+
b2DefaultDistanceJointDef(): b2DistanceJointDef;
|
|
947
|
+
b2DefaultMotorJointDef(): b2MotorJointDef;
|
|
948
|
+
b2DefaultFilterJointDef(): b2FilterJointDef;
|
|
949
|
+
b2DefaultPrismaticJointDef(): b2PrismaticJointDef;
|
|
950
|
+
b2DefaultRevoluteJointDef(): b2RevoluteJointDef;
|
|
951
|
+
b2DefaultWeldJointDef(): b2WeldJointDef;
|
|
952
|
+
b2DefaultWheelJointDef(): b2WheelJointDef;
|
|
953
|
+
b2ComputeRotationBetweenUnitVectors(_0: b2Vec2, _1: b2Vec2): b2Rot;
|
|
954
|
+
b2LeftPerp(_0: b2Vec2): b2Vec2;
|
|
955
|
+
b2RightPerp(_0: b2Vec2): b2Vec2;
|
|
956
|
+
b2Add(_0: b2Vec2, _1: b2Vec2): b2Vec2;
|
|
957
|
+
b2Sub(_0: b2Vec2, _1: b2Vec2): b2Vec2;
|
|
958
|
+
b2Neg(_0: b2Vec2): b2Vec2;
|
|
959
|
+
b2Mul(_0: b2Vec2, _1: b2Vec2): b2Vec2;
|
|
960
|
+
b2Abs(_0: b2Vec2): b2Vec2;
|
|
961
|
+
b2Min(_0: b2Vec2, _1: b2Vec2): b2Vec2;
|
|
962
|
+
b2Max(_0: b2Vec2, _1: b2Vec2): b2Vec2;
|
|
963
|
+
b2Clamp(_0: b2Vec2, _1: b2Vec2, _2: b2Vec2): b2Vec2;
|
|
964
|
+
b2Normalize(_0: b2Vec2): b2Vec2;
|
|
965
|
+
b2NormalizeRot(_0: b2Rot): b2Rot;
|
|
966
|
+
b2Rot_GetXAxis(_0: b2Rot): b2Vec2;
|
|
967
|
+
b2Rot_GetYAxis(_0: b2Rot): b2Vec2;
|
|
968
|
+
b2MulRot(_0: b2Rot, _1: b2Rot): b2Rot;
|
|
969
|
+
b2InvMulRot(_0: b2Rot, _1: b2Rot): b2Rot;
|
|
970
|
+
b2RotateVector(_0: b2Rot, _1: b2Vec2): b2Vec2;
|
|
971
|
+
b2InvRotateVector(_0: b2Rot, _1: b2Vec2): b2Vec2;
|
|
972
|
+
b2TransformPoint(_0: b2Transform, _1: b2Vec2): b2Vec2;
|
|
973
|
+
b2InvTransformPoint(_0: b2Transform, _1: b2Vec2): b2Vec2;
|
|
974
|
+
b2MulTransforms(_0: b2Transform, _1: b2Transform): b2Transform;
|
|
975
|
+
b2InvMulTransforms(_0: b2Transform, _1: b2Transform): b2Transform;
|
|
976
|
+
b2MulMV(_0: b2Mat22, _1: b2Vec2): b2Vec2;
|
|
977
|
+
b2GetInverse22(_0: b2Mat22): b2Mat22;
|
|
978
|
+
b2Solve22(_0: b2Mat22, _1: b2Vec2): b2Vec2;
|
|
979
|
+
b2AABB_Center(_0: b2AABB): b2Vec2;
|
|
980
|
+
b2AABB_Extents(_0: b2AABB): b2Vec2;
|
|
981
|
+
b2AABB_Union(_0: b2AABB, _1: b2AABB): b2AABB;
|
|
982
|
+
b2Yield(): void;
|
|
983
|
+
b2PointInCircle(_0: b2Circle | null, _1: b2Vec2): boolean;
|
|
984
|
+
b2PointInCapsule(_0: b2Capsule | null, _1: b2Vec2): boolean;
|
|
985
|
+
b2PointInPolygon(_0: b2Polygon | null, _1: b2Vec2): boolean;
|
|
986
|
+
b2IsValidRay(_0: b2RayCastInput | null): boolean;
|
|
987
|
+
b2RayCastSegment(_0: b2Segment | null, _1: b2RayCastInput | null, _2: boolean): b2CastOutput;
|
|
988
|
+
b2ValidateHull(_0: b2Hull | null): boolean;
|
|
989
|
+
b2IsValidVec2(_0: b2Vec2): boolean;
|
|
990
|
+
b2IsValidRotation(_0: b2Rot): boolean;
|
|
991
|
+
b2IsValidTransform(_0: b2Transform): boolean;
|
|
992
|
+
b2IsValidAABB(_0: b2AABB): boolean;
|
|
993
|
+
b2IsNormalized(_0: b2Vec2): boolean;
|
|
994
|
+
b2IsValidPlane(_0: b2Plane): boolean;
|
|
995
|
+
b2AABB_Contains(_0: b2AABB, _1: b2AABB): boolean;
|
|
996
|
+
b2CreateWorld(_0: b2WorldDef | null): b2WorldId;
|
|
997
|
+
b2DestroyWorld(_0: b2WorldId): void;
|
|
998
|
+
b2World_GetBodyEvents(_0: b2WorldId): b2BodyEvents;
|
|
999
|
+
b2World_GetSensorEvents(_0: b2WorldId): b2SensorEvents;
|
|
1000
|
+
b2World_GetContactEvents(_0: b2WorldId): b2ContactEvents;
|
|
1001
|
+
b2World_GetJointEvents(_0: b2WorldId): b2JointEvents;
|
|
1002
|
+
b2World_EnableSleeping(_0: b2WorldId, _1: boolean): void;
|
|
1003
|
+
b2World_IsSleepingEnabled(_0: b2WorldId): boolean;
|
|
1004
|
+
b2World_EnableWarmStarting(_0: b2WorldId, _1: boolean): void;
|
|
1005
|
+
b2World_IsWarmStartingEnabled(_0: b2WorldId): boolean;
|
|
1006
|
+
b2World_EnableContinuous(_0: b2WorldId, _1: boolean): void;
|
|
1007
|
+
b2World_IsContinuousEnabled(_0: b2WorldId): boolean;
|
|
1008
|
+
b2World_GetProfile(_0: b2WorldId): b2Profile;
|
|
1009
|
+
b2World_GetCounters(_0: b2WorldId): b2Counters;
|
|
1010
|
+
b2World_CastRayClosest(_0: b2WorldId, _1: b2Vec2, _2: b2Vec2, _3: b2QueryFilter): b2RayResult;
|
|
1011
|
+
b2World_SetGravity(_0: b2WorldId, _1: b2Vec2): void;
|
|
1012
|
+
b2World_GetGravity(_0: b2WorldId): b2Vec2;
|
|
1013
|
+
b2World_Explode(_0: b2WorldId, _1: b2ExplosionDef | null): void;
|
|
1014
|
+
b2World_RebuildStaticTree(_0: b2WorldId): void;
|
|
1015
|
+
b2World_EnableSpeculative(_0: b2WorldId, _1: boolean): void;
|
|
1016
|
+
b2World_IsValid(_0: b2WorldId): boolean;
|
|
1017
|
+
b2CreateBody(_0: b2WorldId, _1: b2BodyDef | null): b2BodyId;
|
|
1018
|
+
b2DestroyBody(_0: b2BodyId): void;
|
|
1019
|
+
b2Body_GetPosition(_0: b2BodyId): b2Vec2;
|
|
1020
|
+
b2Body_GetRotation(_0: b2BodyId): b2Rot;
|
|
1021
|
+
b2Body_GetTransform(_0: b2BodyId): b2Transform;
|
|
1022
|
+
b2Body_SetTransform(_0: b2BodyId, _1: b2Vec2, _2: b2Rot): void;
|
|
1023
|
+
b2Body_GetLocalPoint(_0: b2BodyId, _1: b2Vec2): b2Vec2;
|
|
1024
|
+
b2Body_GetWorldPoint(_0: b2BodyId, _1: b2Vec2): b2Vec2;
|
|
1025
|
+
b2Body_GetLocalVector(_0: b2BodyId, _1: b2Vec2): b2Vec2;
|
|
1026
|
+
b2Body_GetWorldVector(_0: b2BodyId, _1: b2Vec2): b2Vec2;
|
|
1027
|
+
b2Body_GetLocalCenterOfMass(_0: b2BodyId): b2Vec2;
|
|
1028
|
+
b2Body_GetWorldCenterOfMass(_0: b2BodyId): b2Vec2;
|
|
1029
|
+
b2Body_SetMassData(_0: b2BodyId, _1: b2MassData): void;
|
|
1030
|
+
b2Body_GetMassData(_0: b2BodyId): b2MassData;
|
|
1031
|
+
b2Body_ApplyMassFromShapes(_0: b2BodyId): void;
|
|
1032
|
+
b2Body_GetLinearVelocity(_0: b2BodyId): b2Vec2;
|
|
1033
|
+
b2Body_SetLinearVelocity(_0: b2BodyId, _1: b2Vec2): void;
|
|
1034
|
+
b2Body_ApplyForce(_0: b2BodyId, _1: b2Vec2, _2: b2Vec2, _3: boolean): void;
|
|
1035
|
+
b2Body_ApplyForceToCenter(_0: b2BodyId, _1: b2Vec2, _2: boolean): void;
|
|
1036
|
+
b2Body_ApplyLinearImpulse(_0: b2BodyId, _1: b2Vec2, _2: b2Vec2, _3: boolean): void;
|
|
1037
|
+
b2Body_ApplyLinearImpulseToCenter(_0: b2BodyId, _1: b2Vec2, _2: boolean): void;
|
|
1038
|
+
b2Body_GetType(_0: b2BodyId): b2BodyType;
|
|
1039
|
+
b2Body_SetType(_0: b2BodyId, _1: b2BodyType): void;
|
|
1040
|
+
b2Body_IsAwake(_0: b2BodyId): boolean;
|
|
1041
|
+
b2Body_SetAwake(_0: b2BodyId, _1: boolean): void;
|
|
1042
|
+
b2Body_IsEnabled(_0: b2BodyId): boolean;
|
|
1043
|
+
b2Body_Enable(_0: b2BodyId): void;
|
|
1044
|
+
b2Body_Disable(_0: b2BodyId): void;
|
|
1045
|
+
b2Body_IsSleepEnabled(_0: b2BodyId): boolean;
|
|
1046
|
+
b2Body_EnableSleep(_0: b2BodyId, _1: boolean): void;
|
|
1047
|
+
b2Body_SetBullet(_0: b2BodyId, _1: boolean): void;
|
|
1048
|
+
b2Body_IsBullet(_0: b2BodyId): boolean;
|
|
1049
|
+
b2Body_SetMotionLocks(_0: b2BodyId, _1: b2MotionLocks): void;
|
|
1050
|
+
b2Body_GetMotionLocks(_0: b2BodyId): b2MotionLocks;
|
|
1051
|
+
b2Body_EnableContactEvents(_0: b2BodyId, _1: boolean): void;
|
|
1052
|
+
b2Body_EnableHitEvents(_0: b2BodyId, _1: boolean): void;
|
|
1053
|
+
b2Body_ComputeAABB(_0: b2BodyId): b2AABB;
|
|
1054
|
+
b2Body_GetWorld(_0: b2BodyId): b2WorldId;
|
|
1055
|
+
b2Body_GetLocalPointVelocity(_0: b2BodyId, _1: b2Vec2): b2Vec2;
|
|
1056
|
+
b2Body_GetWorldPointVelocity(_0: b2BodyId, _1: b2Vec2): b2Vec2;
|
|
1057
|
+
b2Body_IsValid(_0: b2BodyId): boolean;
|
|
1058
|
+
b2Body_WakeTouching(_0: b2BodyId): void;
|
|
1059
|
+
b2CreatePolygonShape(_0: b2BodyId, _1: b2ShapeDef | null, _2: b2Polygon | null): b2ShapeId;
|
|
1060
|
+
b2CreateCircleShape(_0: b2BodyId, _1: b2ShapeDef | null, _2: b2Circle | null): b2ShapeId;
|
|
1061
|
+
b2CreateCapsuleShape(_0: b2BodyId, _1: b2ShapeDef | null, _2: b2Capsule | null): b2ShapeId;
|
|
1062
|
+
b2CreateSegmentShape(_0: b2BodyId, _1: b2ShapeDef | null, _2: b2Segment | null): b2ShapeId;
|
|
1063
|
+
b2DestroyShape(_0: b2ShapeId, _1: boolean): void;
|
|
1064
|
+
b2Shape_GetBody(_0: b2ShapeId): b2BodyId;
|
|
1065
|
+
b2Shape_GetWorld(_0: b2ShapeId): b2WorldId;
|
|
1066
|
+
b2Shape_IsValid(_0: b2ShapeId): boolean;
|
|
1067
|
+
b2Shape_IsSensor(_0: b2ShapeId): boolean;
|
|
1068
|
+
b2Shape_TestPoint(_0: b2ShapeId, _1: b2Vec2): boolean;
|
|
1069
|
+
b2Shape_RayCast(_0: b2ShapeId, _1: b2RayCastInput | null): b2CastOutput;
|
|
1070
|
+
b2Shape_GetSurfaceMaterial(_0: b2ShapeId): b2SurfaceMaterial;
|
|
1071
|
+
b2Shape_SetSurfaceMaterial(_0: b2ShapeId, _1: b2SurfaceMaterial | null): void;
|
|
1072
|
+
b2Shape_GetFilter(_0: b2ShapeId): b2Filter;
|
|
1073
|
+
b2Shape_SetFilter(_0: b2ShapeId, _1: b2Filter): void;
|
|
1074
|
+
b2Shape_EnableSensorEvents(_0: b2ShapeId, _1: boolean): void;
|
|
1075
|
+
b2Shape_AreSensorEventsEnabled(_0: b2ShapeId): boolean;
|
|
1076
|
+
b2Shape_EnableContactEvents(_0: b2ShapeId, _1: boolean): void;
|
|
1077
|
+
b2Shape_AreContactEventsEnabled(_0: b2ShapeId): boolean;
|
|
1078
|
+
b2Shape_EnablePreSolveEvents(_0: b2ShapeId, _1: boolean): void;
|
|
1079
|
+
b2Shape_ArePreSolveEventsEnabled(_0: b2ShapeId): boolean;
|
|
1080
|
+
b2Shape_EnableHitEvents(_0: b2ShapeId, _1: boolean): void;
|
|
1081
|
+
b2Shape_AreHitEventsEnabled(_0: b2ShapeId): boolean;
|
|
1082
|
+
b2Shape_GetType(_0: b2ShapeId): b2ShapeType;
|
|
1083
|
+
b2Shape_GetCircle(_0: b2ShapeId): b2Circle;
|
|
1084
|
+
b2Shape_GetSegment(_0: b2ShapeId): b2Segment;
|
|
1085
|
+
b2Shape_GetChainSegment(_0: b2ShapeId): b2ChainSegment;
|
|
1086
|
+
b2Shape_GetCapsule(_0: b2ShapeId): b2Capsule;
|
|
1087
|
+
b2Shape_GetPolygon(_0: b2ShapeId): b2Polygon;
|
|
1088
|
+
b2Shape_SetCircle(_0: b2ShapeId, _1: b2Circle | null): void;
|
|
1089
|
+
b2Shape_SetCapsule(_0: b2ShapeId, _1: b2Capsule | null): void;
|
|
1090
|
+
b2Shape_SetSegment(_0: b2ShapeId, _1: b2Segment | null): void;
|
|
1091
|
+
b2Shape_SetPolygon(_0: b2ShapeId, _1: b2Polygon | null): void;
|
|
1092
|
+
b2Shape_GetAABB(_0: b2ShapeId): b2AABB;
|
|
1093
|
+
b2Shape_ComputeMassData(_0: b2ShapeId): b2MassData;
|
|
1094
|
+
b2Shape_GetClosestPoint(_0: b2ShapeId, _1: b2Vec2): b2Vec2;
|
|
1095
|
+
b2GetVersion(): b2Version;
|
|
1096
|
+
b2Chain_IsValid(_0: b2ChainId): boolean;
|
|
1097
|
+
b2Chain_GetSegmentCount(_0: b2ChainId): number;
|
|
1098
|
+
b2Chain_GetWorld(_0: b2ChainId): b2WorldId;
|
|
1099
|
+
b2Chain_SetSurfaceMaterial(_0: b2ChainId, _1: b2SurfaceMaterial | null, _2: number): void;
|
|
1100
|
+
b2Chain_GetSurfaceMaterial(_0: b2ChainId, _1: number): b2SurfaceMaterial;
|
|
1101
|
+
b2CreateChain(_0: b2BodyId, _1: b2ChainDef | null): b2ChainId;
|
|
1102
|
+
b2DestroyChain(_0: b2ChainId): void;
|
|
1103
|
+
b2Shape_GetParentChain(_0: b2ShapeId): b2ChainId;
|
|
1104
|
+
b2DestroyJoint(_0: b2JointId, _1: boolean): void;
|
|
1105
|
+
b2CreateDistanceJoint(_0: b2WorldId, _1: b2DistanceJointDef | null): b2JointId;
|
|
1106
|
+
b2CreateMotorJoint(_0: b2WorldId, _1: b2MotorJointDef | null): b2JointId;
|
|
1107
|
+
b2CreateFilterJoint(_0: b2WorldId, _1: b2FilterJointDef | null): b2JointId;
|
|
1108
|
+
b2CreatePrismaticJoint(_0: b2WorldId, _1: b2PrismaticJointDef | null): b2JointId;
|
|
1109
|
+
b2CreateRevoluteJoint(_0: b2WorldId, _1: b2RevoluteJointDef | null): b2JointId;
|
|
1110
|
+
b2CreateWeldJoint(_0: b2WorldId, _1: b2WeldJointDef | null): b2JointId;
|
|
1111
|
+
b2CreateWheelJoint(_0: b2WorldId, _1: b2WheelJointDef | null): b2JointId;
|
|
1112
|
+
b2Joint_IsValid(_0: b2JointId): boolean;
|
|
1113
|
+
b2Joint_GetType(_0: b2JointId): b2JointType;
|
|
1114
|
+
b2Joint_GetBodyA(_0: b2JointId): b2BodyId;
|
|
1115
|
+
b2Joint_GetBodyB(_0: b2JointId): b2BodyId;
|
|
1116
|
+
b2Joint_GetWorld(_0: b2JointId): b2WorldId;
|
|
1117
|
+
b2Joint_GetLocalFrameA(_0: b2JointId): b2Transform;
|
|
1118
|
+
b2Joint_GetLocalFrameB(_0: b2JointId): b2Transform;
|
|
1119
|
+
b2Joint_SetLocalFrameA(_0: b2JointId, _1: b2Transform): void;
|
|
1120
|
+
b2Joint_SetLocalFrameB(_0: b2JointId, _1: b2Transform): void;
|
|
1121
|
+
b2Joint_SetCollideConnected(_0: b2JointId, _1: boolean): void;
|
|
1122
|
+
b2Joint_GetCollideConnected(_0: b2JointId): boolean;
|
|
1123
|
+
b2Joint_WakeBodies(_0: b2JointId): void;
|
|
1124
|
+
b2Joint_GetConstraintForce(_0: b2JointId): b2Vec2;
|
|
1125
|
+
b2DistanceJoint_EnableSpring(_0: b2JointId, _1: boolean): void;
|
|
1126
|
+
b2DistanceJoint_IsSpringEnabled(_0: b2JointId): boolean;
|
|
1127
|
+
b2DistanceJoint_EnableLimit(_0: b2JointId, _1: boolean): void;
|
|
1128
|
+
b2DistanceJoint_IsLimitEnabled(_0: b2JointId): boolean;
|
|
1129
|
+
b2DistanceJoint_EnableMotor(_0: b2JointId, _1: boolean): void;
|
|
1130
|
+
b2DistanceJoint_IsMotorEnabled(_0: b2JointId): boolean;
|
|
1131
|
+
b2MotorJoint_SetLinearVelocity(_0: b2JointId, _1: b2Vec2): void;
|
|
1132
|
+
b2MotorJoint_GetLinearVelocity(_0: b2JointId): b2Vec2;
|
|
1133
|
+
b2PrismaticJoint_EnableSpring(_0: b2JointId, _1: boolean): void;
|
|
1134
|
+
b2PrismaticJoint_IsSpringEnabled(_0: b2JointId): boolean;
|
|
1135
|
+
b2PrismaticJoint_EnableLimit(_0: b2JointId, _1: boolean): void;
|
|
1136
|
+
b2PrismaticJoint_IsLimitEnabled(_0: b2JointId): boolean;
|
|
1137
|
+
b2PrismaticJoint_EnableMotor(_0: b2JointId, _1: boolean): void;
|
|
1138
|
+
b2PrismaticJoint_IsMotorEnabled(_0: b2JointId): boolean;
|
|
1139
|
+
b2RevoluteJoint_EnableSpring(_0: b2JointId, _1: boolean): void;
|
|
1140
|
+
b2RevoluteJoint_IsSpringEnabled(_0: b2JointId): boolean;
|
|
1141
|
+
b2RevoluteJoint_EnableLimit(_0: b2JointId, _1: boolean): void;
|
|
1142
|
+
b2RevoluteJoint_IsLimitEnabled(_0: b2JointId): boolean;
|
|
1143
|
+
b2RevoluteJoint_EnableMotor(_0: b2JointId, _1: boolean): void;
|
|
1144
|
+
b2RevoluteJoint_IsMotorEnabled(_0: b2JointId): boolean;
|
|
1145
|
+
b2WheelJoint_EnableSpring(_0: b2JointId, _1: boolean): void;
|
|
1146
|
+
b2WheelJoint_IsSpringEnabled(_0: b2JointId): boolean;
|
|
1147
|
+
b2WheelJoint_EnableLimit(_0: b2JointId, _1: boolean): void;
|
|
1148
|
+
b2WheelJoint_IsLimitEnabled(_0: b2JointId): boolean;
|
|
1149
|
+
b2WheelJoint_EnableMotor(_0: b2JointId, _1: boolean): void;
|
|
1150
|
+
b2WheelJoint_IsMotorEnabled(_0: b2JointId): boolean;
|
|
1151
|
+
b2World_GetAwakeBodyCount(_0: b2WorldId): number;
|
|
1152
|
+
b2Shape_GetContactCapacity(_0: b2ShapeId): number;
|
|
1153
|
+
b2Shape_GetSensorCapacity(_0: b2ShapeId): number;
|
|
1154
|
+
b2Body_GetShapeCount(_0: b2BodyId): number;
|
|
1155
|
+
b2Body_GetJointCount(_0: b2BodyId): number;
|
|
1156
|
+
b2Body_GetContactCapacity(_0: b2BodyId): number;
|
|
1157
|
+
b2GetByteCount(): number;
|
|
1158
|
+
B2_HASH_INIT: number;
|
|
1159
|
+
RandomInt(): number;
|
|
1160
|
+
b2Contact_IsValid(_0: b2ContactId): boolean;
|
|
1161
|
+
b2Contact_GetData(_0: b2ContactId): b2ContactData;
|
|
1162
|
+
b2World_DeleteCallback(_0: number): void;
|
|
1163
|
+
b2World_SetUserData(_0: b2WorldId, _1: number): void;
|
|
1164
|
+
b2World_GetUserData(_0: b2WorldId): number;
|
|
1165
|
+
b2Shape_SetUserData(_0: b2ShapeId, _1: number): void;
|
|
1166
|
+
b2Shape_GetUserData(_0: b2ShapeId): number;
|
|
1167
|
+
b2Body_SetUserData(_0: b2BodyId, _1: number): void;
|
|
1168
|
+
b2Body_GetUserData(_0: b2BodyId): number;
|
|
1169
|
+
b2Joint_SetUserData(_0: b2JointId, _1: number): void;
|
|
1170
|
+
b2Joint_GetUserData(_0: b2JointId): number;
|
|
1171
|
+
GetMemoryStats(): MemoryStats;
|
|
1172
|
+
b2Shape_SetUserMaterial(_0: b2ShapeId, _1: bigint): void;
|
|
1173
|
+
b2Shape_GetUserMaterial(_0: b2ShapeId): bigint;
|
|
1174
|
+
b2GetTicks(): bigint;
|
|
1175
|
+
b2Joint_GetConstraintTuning(_0: b2JointId): b2ConstraintTuning;
|
|
1176
|
+
b2DistanceJoint_GetSpringForceRange(_0: b2JointId): b2ForceRange;
|
|
1177
|
+
b2MakePolygon(_0: b2Hull | null, _1: number): b2Polygon;
|
|
1178
|
+
b2MakeOffsetRoundedPolygon(_0: b2Hull | null, _1: b2Vec2, _2: b2Rot, _3: number): b2Polygon;
|
|
1179
|
+
b2MakeSquare(_0: number): b2Polygon;
|
|
1180
|
+
b2MakeBox(_0: number, _1: number): b2Polygon;
|
|
1181
|
+
b2MakeRoundedBox(_0: number, _1: number, _2: number): b2Polygon;
|
|
1182
|
+
b2MakeOffsetBox(_0: number, _1: number, _2: b2Vec2, _3: b2Rot): b2Polygon;
|
|
1183
|
+
b2MakeOffsetRoundedBox(_0: number, _1: number, _2: b2Vec2, _3: b2Rot, _4: number): b2Polygon;
|
|
1184
|
+
b2MakeProxy(_0: b2Vec2 | null, _1: number, _2: number): b2ShapeProxy;
|
|
1185
|
+
b2MakeOffsetProxy(_0: b2Vec2 | null, _1: number, _2: number, _3: b2Vec2, _4: b2Rot): b2ShapeProxy;
|
|
1186
|
+
b2ComputeCircleMass(_0: b2Circle | null, _1: number): b2MassData;
|
|
1187
|
+
b2ComputeCapsuleMass(_0: b2Capsule | null, _1: number): b2MassData;
|
|
1188
|
+
b2ComputePolygonMass(_0: b2Polygon | null, _1: number): b2MassData;
|
|
1189
|
+
b2GetSweepTransform(_0: b2Sweep | null, _1: number): b2Transform;
|
|
1190
|
+
b2World_Step(_0: b2WorldId, _1: number, _2: number): void;
|
|
1191
|
+
b2World_SetRestitutionThreshold(_0: b2WorldId, _1: number): void;
|
|
1192
|
+
b2World_GetRestitutionThreshold(_0: b2WorldId): number;
|
|
1193
|
+
b2World_SetHitEventThreshold(_0: b2WorldId, _1: number): void;
|
|
1194
|
+
b2World_GetHitEventThreshold(_0: b2WorldId): number;
|
|
1195
|
+
b2World_SetContactTuning(_0: b2WorldId, _1: number, _2: number, _3: number): void;
|
|
1196
|
+
b2World_SetMaximumLinearSpeed(_0: b2WorldId, _1: number): void;
|
|
1197
|
+
b2World_GetMaximumLinearSpeed(_0: b2WorldId): number;
|
|
1198
|
+
b2World_CastMover(_0: b2WorldId, _1: b2Capsule | null, _2: b2Vec2, _3: b2QueryFilter): number;
|
|
1199
|
+
b2Shape_SetDensity(_0: b2ShapeId, _1: number, _2: boolean): void;
|
|
1200
|
+
b2Shape_GetDensity(_0: b2ShapeId): number;
|
|
1201
|
+
b2Shape_SetFriction(_0: b2ShapeId, _1: number): void;
|
|
1202
|
+
b2Shape_GetFriction(_0: b2ShapeId): number;
|
|
1203
|
+
b2Shape_SetRestitution(_0: b2ShapeId, _1: number): void;
|
|
1204
|
+
b2Shape_GetRestitution(_0: b2ShapeId): number;
|
|
1205
|
+
b2Shape_ApplyWind(_0: b2ShapeId, _1: b2Vec2, _2: number, _3: number, _4: boolean): void;
|
|
1206
|
+
b2Body_SetTargetTransform(_0: b2BodyId, _1: b2Transform, _2: number): void;
|
|
1207
|
+
b2Body_GetMass(_0: b2BodyId): number;
|
|
1208
|
+
b2Body_GetRotationalInertia(_0: b2BodyId): number;
|
|
1209
|
+
b2Body_GetAngularVelocity(_0: b2BodyId): number;
|
|
1210
|
+
b2Body_SetAngularVelocity(_0: b2BodyId, _1: number): void;
|
|
1211
|
+
b2Body_ApplyTorque(_0: b2BodyId, _1: number, _2: boolean): void;
|
|
1212
|
+
b2Body_ApplyAngularImpulse(_0: b2BodyId, _1: number, _2: boolean): void;
|
|
1213
|
+
b2Body_SetLinearDamping(_0: b2BodyId, _1: number): void;
|
|
1214
|
+
b2Body_GetLinearDamping(_0: b2BodyId): number;
|
|
1215
|
+
b2Body_SetAngularDamping(_0: b2BodyId, _1: number): void;
|
|
1216
|
+
b2Body_GetAngularDamping(_0: b2BodyId): number;
|
|
1217
|
+
b2Body_SetGravityScale(_0: b2BodyId, _1: number): void;
|
|
1218
|
+
b2Body_GetGravityScale(_0: b2BodyId): number;
|
|
1219
|
+
b2Body_SetSleepThreshold(_0: b2BodyId, _1: number): void;
|
|
1220
|
+
b2Body_GetSleepThreshold(_0: b2BodyId): number;
|
|
1221
|
+
b2Joint_GetConstraintTorque(_0: b2JointId): number;
|
|
1222
|
+
b2Joint_SetForceThreshold(_0: b2JointId, _1: number): void;
|
|
1223
|
+
b2Joint_GetForceThreshold(_0: b2JointId): number;
|
|
1224
|
+
b2Joint_SetTorqueThreshold(_0: b2JointId, _1: number): void;
|
|
1225
|
+
b2Joint_GetTorqueThreshold(_0: b2JointId): number;
|
|
1226
|
+
b2Joint_GetLinearSeparation(_0: b2JointId): number;
|
|
1227
|
+
b2Joint_GetAngularSeparation(_0: b2JointId): number;
|
|
1228
|
+
b2Joint_SetConstraintTuning(_0: b2JointId, _1: number, _2: number): void;
|
|
1229
|
+
b2DistanceJoint_SetLength(_0: b2JointId, _1: number): void;
|
|
1230
|
+
b2DistanceJoint_GetLength(_0: b2JointId): number;
|
|
1231
|
+
b2DistanceJoint_SetSpringHertz(_0: b2JointId, _1: number): void;
|
|
1232
|
+
b2DistanceJoint_SetSpringDampingRatio(_0: b2JointId, _1: number): void;
|
|
1233
|
+
b2DistanceJoint_GetSpringHertz(_0: b2JointId): number;
|
|
1234
|
+
b2DistanceJoint_GetSpringDampingRatio(_0: b2JointId): number;
|
|
1235
|
+
b2DistanceJoint_SetLengthRange(_0: b2JointId, _1: number, _2: number): void;
|
|
1236
|
+
b2DistanceJoint_GetMinLength(_0: b2JointId): number;
|
|
1237
|
+
b2DistanceJoint_GetMaxLength(_0: b2JointId): number;
|
|
1238
|
+
b2DistanceJoint_GetCurrentLength(_0: b2JointId): number;
|
|
1239
|
+
b2DistanceJoint_SetMotorSpeed(_0: b2JointId, _1: number): void;
|
|
1240
|
+
b2DistanceJoint_GetMotorSpeed(_0: b2JointId): number;
|
|
1241
|
+
b2DistanceJoint_SetMaxMotorForce(_0: b2JointId, _1: number): void;
|
|
1242
|
+
b2DistanceJoint_GetMaxMotorForce(_0: b2JointId): number;
|
|
1243
|
+
b2DistanceJoint_GetMotorForce(_0: b2JointId): number;
|
|
1244
|
+
b2DistanceJoint_SetSpringForceRange(_0: b2JointId, _1: number, _2: number): void;
|
|
1245
|
+
b2MotorJoint_SetAngularVelocity(_0: b2JointId, _1: number): void;
|
|
1246
|
+
b2MotorJoint_GetAngularVelocity(_0: b2JointId): number;
|
|
1247
|
+
b2MotorJoint_SetMaxVelocityForce(_0: b2JointId, _1: number): void;
|
|
1248
|
+
b2MotorJoint_GetMaxVelocityForce(_0: b2JointId): number;
|
|
1249
|
+
b2MotorJoint_SetMaxVelocityTorque(_0: b2JointId, _1: number): void;
|
|
1250
|
+
b2MotorJoint_GetMaxVelocityTorque(_0: b2JointId): number;
|
|
1251
|
+
b2MotorJoint_SetLinearHertz(_0: b2JointId, _1: number): void;
|
|
1252
|
+
b2MotorJoint_GetLinearHertz(_0: b2JointId): number;
|
|
1253
|
+
b2MotorJoint_SetLinearDampingRatio(_0: b2JointId, _1: number): void;
|
|
1254
|
+
b2MotorJoint_GetLinearDampingRatio(_0: b2JointId): number;
|
|
1255
|
+
b2MotorJoint_SetAngularHertz(_0: b2JointId, _1: number): void;
|
|
1256
|
+
b2MotorJoint_GetAngularHertz(_0: b2JointId): number;
|
|
1257
|
+
b2MotorJoint_SetAngularDampingRatio(_0: b2JointId, _1: number): void;
|
|
1258
|
+
b2MotorJoint_GetAngularDampingRatio(_0: b2JointId): number;
|
|
1259
|
+
b2MotorJoint_SetMaxSpringForce(_0: b2JointId, _1: number): void;
|
|
1260
|
+
b2MotorJoint_GetMaxSpringForce(_0: b2JointId): number;
|
|
1261
|
+
b2MotorJoint_SetMaxSpringTorque(_0: b2JointId, _1: number): void;
|
|
1262
|
+
b2MotorJoint_GetMaxSpringTorque(_0: b2JointId): number;
|
|
1263
|
+
b2PrismaticJoint_SetSpringHertz(_0: b2JointId, _1: number): void;
|
|
1264
|
+
b2PrismaticJoint_GetSpringHertz(_0: b2JointId): number;
|
|
1265
|
+
b2PrismaticJoint_SetSpringDampingRatio(_0: b2JointId, _1: number): void;
|
|
1266
|
+
b2PrismaticJoint_GetSpringDampingRatio(_0: b2JointId): number;
|
|
1267
|
+
b2PrismaticJoint_GetLowerLimit(_0: b2JointId): number;
|
|
1268
|
+
b2PrismaticJoint_GetUpperLimit(_0: b2JointId): number;
|
|
1269
|
+
b2PrismaticJoint_SetLimits(_0: b2JointId, _1: number, _2: number): void;
|
|
1270
|
+
b2PrismaticJoint_SetMotorSpeed(_0: b2JointId, _1: number): void;
|
|
1271
|
+
b2PrismaticJoint_GetMotorSpeed(_0: b2JointId): number;
|
|
1272
|
+
b2PrismaticJoint_SetMaxMotorForce(_0: b2JointId, _1: number): void;
|
|
1273
|
+
b2PrismaticJoint_GetMaxMotorForce(_0: b2JointId): number;
|
|
1274
|
+
b2PrismaticJoint_GetMotorForce(_0: b2JointId): number;
|
|
1275
|
+
b2PrismaticJoint_GetTranslation(_0: b2JointId): number;
|
|
1276
|
+
b2PrismaticJoint_GetSpeed(_0: b2JointId): number;
|
|
1277
|
+
b2PrismaticJoint_SetTargetTranslation(_0: b2JointId, _1: number): void;
|
|
1278
|
+
b2PrismaticJoint_GetTargetTranslation(_0: b2JointId): number;
|
|
1279
|
+
b2RevoluteJoint_SetSpringHertz(_0: b2JointId, _1: number): void;
|
|
1280
|
+
b2RevoluteJoint_GetSpringHertz(_0: b2JointId): number;
|
|
1281
|
+
b2RevoluteJoint_SetSpringDampingRatio(_0: b2JointId, _1: number): void;
|
|
1282
|
+
b2RevoluteJoint_GetSpringDampingRatio(_0: b2JointId): number;
|
|
1283
|
+
b2RevoluteJoint_GetAngle(_0: b2JointId): number;
|
|
1284
|
+
b2RevoluteJoint_GetLowerLimit(_0: b2JointId): number;
|
|
1285
|
+
b2RevoluteJoint_GetUpperLimit(_0: b2JointId): number;
|
|
1286
|
+
b2RevoluteJoint_SetLimits(_0: b2JointId, _1: number, _2: number): void;
|
|
1287
|
+
b2RevoluteJoint_SetMotorSpeed(_0: b2JointId, _1: number): void;
|
|
1288
|
+
b2RevoluteJoint_GetMotorSpeed(_0: b2JointId): number;
|
|
1289
|
+
b2RevoluteJoint_GetMotorTorque(_0: b2JointId): number;
|
|
1290
|
+
b2RevoluteJoint_SetMaxMotorTorque(_0: b2JointId, _1: number): void;
|
|
1291
|
+
b2RevoluteJoint_GetMaxMotorTorque(_0: b2JointId): number;
|
|
1292
|
+
b2RevoluteJoint_SetTargetAngle(_0: b2JointId, _1: number): void;
|
|
1293
|
+
b2RevoluteJoint_GetTargetAngle(_0: b2JointId): number;
|
|
1294
|
+
b2WeldJoint_SetLinearHertz(_0: b2JointId, _1: number): void;
|
|
1295
|
+
b2WeldJoint_GetLinearHertz(_0: b2JointId): number;
|
|
1296
|
+
b2WeldJoint_SetLinearDampingRatio(_0: b2JointId, _1: number): void;
|
|
1297
|
+
b2WeldJoint_GetLinearDampingRatio(_0: b2JointId): number;
|
|
1298
|
+
b2WeldJoint_SetAngularHertz(_0: b2JointId, _1: number): void;
|
|
1299
|
+
b2WeldJoint_GetAngularHertz(_0: b2JointId): number;
|
|
1300
|
+
b2WeldJoint_SetAngularDampingRatio(_0: b2JointId, _1: number): void;
|
|
1301
|
+
b2WeldJoint_GetAngularDampingRatio(_0: b2JointId): number;
|
|
1302
|
+
b2WheelJoint_SetSpringHertz(_0: b2JointId, _1: number): void;
|
|
1303
|
+
b2WheelJoint_GetSpringHertz(_0: b2JointId): number;
|
|
1304
|
+
b2WheelJoint_SetSpringDampingRatio(_0: b2JointId, _1: number): void;
|
|
1305
|
+
b2WheelJoint_GetSpringDampingRatio(_0: b2JointId): number;
|
|
1306
|
+
b2WheelJoint_GetLowerLimit(_0: b2JointId): number;
|
|
1307
|
+
b2WheelJoint_GetUpperLimit(_0: b2JointId): number;
|
|
1308
|
+
b2WheelJoint_SetLimits(_0: b2JointId, _1: number, _2: number): void;
|
|
1309
|
+
b2WheelJoint_SetMotorSpeed(_0: b2JointId, _1: number): void;
|
|
1310
|
+
b2WheelJoint_GetMotorSpeed(_0: b2JointId): number;
|
|
1311
|
+
b2WheelJoint_SetMaxMotorTorque(_0: b2JointId, _1: number): void;
|
|
1312
|
+
b2WheelJoint_GetMaxMotorTorque(_0: b2JointId): number;
|
|
1313
|
+
b2WheelJoint_GetMotorTorque(_0: b2JointId): number;
|
|
1314
|
+
B2_PI: number;
|
|
1315
|
+
b2GetMilliseconds(_0: bigint): number;
|
|
1316
|
+
b2IsValidFloat(_0: number): boolean;
|
|
1317
|
+
b2Atan2(_0: number, _1: number): number;
|
|
1318
|
+
b2ComputeCosSin(_0: number): b2CosSin;
|
|
1319
|
+
b2SetLengthUnitsPerMeter(_0: number): void;
|
|
1320
|
+
b2GetLengthUnitsPerMeter(): number;
|
|
1321
|
+
b2Dot(_0: b2Vec2, _1: b2Vec2): number;
|
|
1322
|
+
b2Cross(_0: b2Vec2, _1: b2Vec2): number;
|
|
1323
|
+
b2CrossVS(_0: b2Vec2, _1: number): b2Vec2;
|
|
1324
|
+
b2CrossSV(_0: number, _1: b2Vec2): b2Vec2;
|
|
1325
|
+
b2Lerp(_0: b2Vec2, _1: b2Vec2, _2: number): b2Vec2;
|
|
1326
|
+
b2MulSV(_0: number, _1: b2Vec2): b2Vec2;
|
|
1327
|
+
b2MulAdd(_0: b2Vec2, _1: number, _2: b2Vec2): b2Vec2;
|
|
1328
|
+
b2MulSub(_0: b2Vec2, _1: number, _2: b2Vec2): b2Vec2;
|
|
1329
|
+
b2Length(_0: b2Vec2): number;
|
|
1330
|
+
b2Distance(_0: b2Vec2, _1: b2Vec2): number;
|
|
1331
|
+
b2IntegrateRotation(_0: b2Rot, _1: number): b2Rot;
|
|
1332
|
+
b2LengthSquared(_0: b2Vec2): number;
|
|
1333
|
+
b2DistanceSquared(_0: b2Vec2, _1: b2Vec2): number;
|
|
1334
|
+
b2MakeRot(_0: number): b2Rot;
|
|
1335
|
+
b2NLerp(_0: b2Rot, _1: b2Rot, _2: number): b2Rot;
|
|
1336
|
+
b2ComputeAngularVelocity(_0: b2Rot, _1: b2Rot, _2: number): number;
|
|
1337
|
+
b2Rot_GetAngle(_0: b2Rot): number;
|
|
1338
|
+
b2RelativeAngle(_0: b2Rot, _1: b2Rot): number;
|
|
1339
|
+
b2UnwindAngle(_0: number): number;
|
|
1340
|
+
b2MaxFloat(_0: number, _1: number): number;
|
|
1341
|
+
RandomIntRange(_0: number, _1: number): number;
|
|
1342
|
+
RandomFloat(): number;
|
|
1343
|
+
RandomFloatRange(_0: number, _1: number): number;
|
|
1344
|
+
RandomVec2(_0: number, _1: number): b2Vec2;
|
|
1345
|
+
RandomPolygon(_0: number): b2Polygon;
|
|
1346
|
+
b2Body_SetName(_0: b2BodyId, _1: EmbindString): void;
|
|
1347
|
+
b2Body_GetName(_0: b2BodyId): string;
|
|
1348
|
+
b2Chain_GetSegments(_0: b2ChainId, _1: number): any;
|
|
1349
|
+
b2World_GetPointer(_0: b2WorldId): any;
|
|
1350
|
+
b2World_SetFrictionCallback(_0: b2WorldId, _1: any): void;
|
|
1351
|
+
b2World_SetRestitutionCallback(_0: b2WorldId, _1: any): void;
|
|
1352
|
+
b2SolvePlanes(_0: b2Vec2, _1: any): b2PlaneSolverResult;
|
|
1353
|
+
b2ClipVector(_0: b2Vec2, _1: any): b2Vec2;
|
|
1354
|
+
b2World_OverlapAABB(_0: b2WorldId, _1: b2AABB, _2: b2QueryFilter, _3: any): b2TreeStats;
|
|
1355
|
+
b2World_OverlapShape(_0: b2WorldId, _1: b2ShapeProxy | null, _2: b2QueryFilter, _3: any): b2TreeStats;
|
|
1356
|
+
b2World_CastRay(_0: b2WorldId, _1: b2Vec2, _2: b2Vec2, _3: b2QueryFilter, _4: any): b2TreeStats;
|
|
1357
|
+
b2World_CastShape(_0: b2WorldId, _1: b2ShapeProxy | null, _2: b2Vec2, _3: b2QueryFilter, _4: any): b2TreeStats;
|
|
1358
|
+
b2World_CollideMover(_0: b2WorldId, _1: b2Capsule | null, _2: b2QueryFilter, _3: any): void;
|
|
1359
|
+
b2World_SetCustomFilterCallback(_0: b2WorldId, _1: any): number;
|
|
1360
|
+
b2World_SetPreSolveCallback(_0: b2WorldId, _1: any): number;
|
|
1361
|
+
b2Shape_GetPointer(_0: b2ShapeId): any;
|
|
1362
|
+
b2Shape_GetContactData(_0: b2ShapeId, _1: number): any;
|
|
1363
|
+
b2Shape_GetSensorData(_0: b2ShapeId, _1: number): any;
|
|
1364
|
+
b2Body_GetPointer(_0: b2BodyId): any;
|
|
1365
|
+
b2Body_GetShapes(_0: b2BodyId, _1: number): any;
|
|
1366
|
+
b2Body_GetJoints(_0: b2BodyId): any;
|
|
1367
|
+
b2Body_GetContactData(_0: b2BodyId, _1: number): any;
|
|
1368
|
+
b2Joint_GetPointer(_0: b2JointId): any;
|
|
1369
|
+
b2ComputeHull(_0: any): b2Hull;
|
|
1370
|
+
B2_ID_EQUALS(_0: any, _1: any): boolean;
|
|
1371
|
+
b2Hash(_0: number, _1: any): number;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
export type MainModule = WasmModule & typeof RuntimeExports & EmbindModule;
|
|
1375
|
+
// Emscripten Module properties that looked interesting enough to write documentation for
|
|
1376
|
+
export interface EmscriptenModuleKnownOptions {
|
|
1377
|
+
// default: 16MiB, which you can express as 16 * 1024**2
|
|
1378
|
+
// initial heap size.
|
|
1379
|
+
// must be a multiple of 65536 (it's 16KiB pages, 16 * 1024 bytes each)
|
|
1380
|
+
INITIAL_MEMORY: number;
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
// Combine known options with arbitrary properties
|
|
1384
|
+
export type ModuleOptions = Partial<EmscriptenModuleKnownOptions> & Record<string, any>;
|
|
1385
|
+
|
|
1386
|
+
export default function MainModuleFactory(
|
|
1387
|
+
options?: ModuleOptions
|
|
1388
|
+
): Promise<MainModule>;
|