@absolutejs/rapier3d 0.0.0-stage → 0.2.0
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 +201 -0
- package/README.md +85 -2
- package/dist/provenance.json +10 -0
- package/dist/rapier.mjs +1 -0
- package/dist/types/coarena.d.ts +15 -0
- package/dist/types/control/character_controller.d.ts +191 -0
- package/dist/types/control/index.d.ts +3 -0
- package/dist/types/control/pid_controller.d.ts +50 -0
- package/dist/types/control/ray_cast_vehicle_controller.d.ts +277 -0
- package/dist/types/dynamics/ccd_solver.d.ts +15 -0
- package/dist/types/dynamics/coefficient_combine_rule.d.ts +13 -0
- package/dist/types/dynamics/impulse_joint.d.ts +359 -0
- package/dist/types/dynamics/impulse_joint_set.d.ts +84 -0
- package/dist/types/dynamics/index.d.ts +12 -0
- package/dist/types/dynamics/integration_parameters.d.ts +109 -0
- package/dist/types/dynamics/island_manager.d.ts +24 -0
- package/dist/types/dynamics/multibody_joint.d.ts +42 -0
- package/dist/types/dynamics/multibody_joint_set.d.ts +81 -0
- package/dist/types/dynamics/rigid_body.d.ts +839 -0
- package/dist/types/dynamics/rigid_body_set.d.ts +90 -0
- package/dist/types/dynamics/soft_body.d.ts +1210 -0
- package/dist/types/dynamics/soft_body_set.d.ts +99 -0
- package/dist/types/exports.d.ts +8 -0
- package/dist/types/geometry/broad_phase.d.ts +162 -0
- package/dist/types/geometry/collider.d.ts +1016 -0
- package/dist/types/geometry/collider_set.d.ts +97 -0
- package/dist/types/geometry/contact.d.ts +36 -0
- package/dist/types/geometry/feature.d.ts +6 -0
- package/dist/types/geometry/index.d.ts +11 -0
- package/dist/types/geometry/interaction_groups.d.ts +18 -0
- package/dist/types/geometry/narrow_phase.d.ts +151 -0
- package/dist/types/geometry/point.d.ts +58 -0
- package/dist/types/geometry/ray.d.ts +108 -0
- package/dist/types/geometry/shape.d.ts +681 -0
- package/dist/types/geometry/toi.d.ts +59 -0
- package/dist/types/init.d.ts +3 -0
- package/dist/types/math.d.ts +98 -0
- package/dist/types/pipeline/debug_render_pipeline.d.ts +40 -0
- package/dist/types/pipeline/event_queue.d.ts +113 -0
- package/dist/types/pipeline/index.d.ts +7 -0
- package/dist/types/pipeline/physics_hooks.d.ts +39 -0
- package/dist/types/pipeline/physics_pipeline.d.ts +12 -0
- package/dist/types/pipeline/query_pipeline.d.ts +38 -0
- package/dist/types/pipeline/serialization_pipeline.d.ts +37 -0
- package/dist/types/pipeline/world.d.ts +674 -0
- package/dist/types/rapier.d.ts +3 -0
- package/dist/types/rapier_wasm3d.d.ts +2929 -0
- package/dist/types/raw.d.ts +1 -0
- package/package.json +33 -4
|
@@ -0,0 +1,2929 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
export class RawBroadPhase {
|
|
5
|
+
free(): void;
|
|
6
|
+
[Symbol.dispose](): void;
|
|
7
|
+
castRayAndGetNormal(narrow_phase: RawNarrowPhase, bodies: RawRigidBodySet, colliders: RawColliderSet, rayOrig: RawVector, rayDir: RawVector, maxToi: number, solid: boolean, filter_flags: number, filter_groups: number | null | undefined, filter_exclude_collider: number | null | undefined, filter_exclude_rigid_body: number | null | undefined, filter_predicate: Function): RawRayColliderIntersection | undefined;
|
|
8
|
+
castRay(narrow_phase: RawNarrowPhase, bodies: RawRigidBodySet, colliders: RawColliderSet, rayOrig: RawVector, rayDir: RawVector, maxToi: number, solid: boolean, filter_flags: number, filter_groups: number | null | undefined, filter_exclude_collider: number | null | undefined, filter_exclude_rigid_body: number | null | undefined, filter_predicate: Function): RawRayColliderHit | undefined;
|
|
9
|
+
castShape(narrow_phase: RawNarrowPhase, bodies: RawRigidBodySet, colliders: RawColliderSet, shapePos: RawVector, shapeRot: RawRotation, shapeVel: RawVector, shape: RawShape, target_distance: number, maxToi: number, stop_at_penetration: boolean, filter_flags: number, filter_groups: number | null | undefined, filter_exclude_collider: number | null | undefined, filter_exclude_rigid_body: number | null | undefined, filter_predicate: Function): RawColliderShapeCastHit | undefined;
|
|
10
|
+
collidersWithAabbIntersectingAabb(narrow_phase: RawNarrowPhase, bodies: RawRigidBodySet, colliders: RawColliderSet, aabbCenter: RawVector, aabbHalfExtents: RawVector, callback: Function): void;
|
|
11
|
+
intersectionWithShape(narrow_phase: RawNarrowPhase, bodies: RawRigidBodySet, colliders: RawColliderSet, shapePos: RawVector, shapeRot: RawRotation, shape: RawShape, filter_flags: number, filter_groups: number | null | undefined, filter_exclude_collider: number | null | undefined, filter_exclude_rigid_body: number | null | undefined, filter_predicate: Function): number | undefined;
|
|
12
|
+
intersectionsWithPoint(narrow_phase: RawNarrowPhase, bodies: RawRigidBodySet, colliders: RawColliderSet, point: RawVector, callback: Function, filter_flags: number, filter_groups: number | null | undefined, filter_exclude_collider: number | null | undefined, filter_exclude_rigid_body: number | null | undefined, filter_predicate: Function): void;
|
|
13
|
+
intersectionsWithRay(narrow_phase: RawNarrowPhase, bodies: RawRigidBodySet, colliders: RawColliderSet, rayOrig: RawVector, rayDir: RawVector, maxToi: number, solid: boolean, callback: Function, filter_flags: number, filter_groups: number | null | undefined, filter_exclude_collider: number | null | undefined, filter_exclude_rigid_body: number | null | undefined, filter_predicate: Function): void;
|
|
14
|
+
intersectionsWithShape(narrow_phase: RawNarrowPhase, bodies: RawRigidBodySet, colliders: RawColliderSet, shapePos: RawVector, shapeRot: RawRotation, shape: RawShape, callback: Function, filter_flags: number, filter_groups: number | null | undefined, filter_exclude_collider: number | null | undefined, filter_exclude_rigid_body: number | null | undefined, filter_predicate: Function): void;
|
|
15
|
+
constructor();
|
|
16
|
+
projectPointAndGetFeature(narrow_phase: RawNarrowPhase, bodies: RawRigidBodySet, colliders: RawColliderSet, point: RawVector, filter_flags: number, filter_groups: number | null | undefined, filter_exclude_collider: number | null | undefined, filter_exclude_rigid_body: number | null | undefined, filter_predicate: Function): RawPointColliderProjection | undefined;
|
|
17
|
+
projectPoint(narrow_phase: RawNarrowPhase, bodies: RawRigidBodySet, colliders: RawColliderSet, point: RawVector, solid: boolean, filter_flags: number, filter_groups: number | null | undefined, filter_exclude_collider: number | null | undefined, filter_exclude_rigid_body: number | null | undefined, filter_predicate: Function): RawPointColliderProjection | undefined;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export class RawCCDSolver {
|
|
21
|
+
free(): void;
|
|
22
|
+
[Symbol.dispose](): void;
|
|
23
|
+
constructor();
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export class RawCharacterCollision {
|
|
27
|
+
free(): void;
|
|
28
|
+
[Symbol.dispose](): void;
|
|
29
|
+
handle(): number;
|
|
30
|
+
constructor();
|
|
31
|
+
toi(): number;
|
|
32
|
+
translationDeltaApplied(scratch_buffer: Float32Array): void;
|
|
33
|
+
translationDeltaRemaining(scratch_buffer: Float32Array): void;
|
|
34
|
+
worldNormal1(scratch_buffer: Float32Array): void;
|
|
35
|
+
worldNormal2(scratch_buffer: Float32Array): void;
|
|
36
|
+
worldWitness1(scratch_buffer: Float32Array): void;
|
|
37
|
+
worldWitness2(scratch_buffer: Float32Array): void;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export class RawColliderSet {
|
|
41
|
+
free(): void;
|
|
42
|
+
[Symbol.dispose](): void;
|
|
43
|
+
/**
|
|
44
|
+
* The collision types enabled for this collider.
|
|
45
|
+
*/
|
|
46
|
+
coActiveCollisionTypes(handle: number): number;
|
|
47
|
+
/**
|
|
48
|
+
* The events enabled for this collider.
|
|
49
|
+
*/
|
|
50
|
+
coActiveEvents(handle: number): number;
|
|
51
|
+
/**
|
|
52
|
+
* The physics hooks enabled for this collider.
|
|
53
|
+
*/
|
|
54
|
+
coActiveHooks(handle: number): number;
|
|
55
|
+
coCastCollider(handle: number, collider1Vel: RawVector, collider2handle: number, collider2Vel: RawVector, target_distance: number, max_toi: number, stop_at_penetration: boolean): RawColliderShapeCastHit | undefined;
|
|
56
|
+
coCastRayAndGetNormal(handle: number, rayOrig: RawVector, rayDir: RawVector, maxToi: number, solid: boolean): RawRayIntersection | undefined;
|
|
57
|
+
coCastRay(handle: number, rayOrig: RawVector, rayDir: RawVector, maxToi: number, solid: boolean): number;
|
|
58
|
+
coCastShape(handle: number, colliderVel: RawVector, shape2: RawShape, shape2Pos: RawVector, shape2Rot: RawRotation, shape2Vel: RawVector, target_distance: number, maxToi: number, stop_at_penetration: boolean): RawShapeCastHit | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* The collision groups of this collider.
|
|
61
|
+
*/
|
|
62
|
+
coCollisionGroups(handle: number): number;
|
|
63
|
+
coCombineVoxelStates(handle1: number, handle2: number, shift_x: number, shift_y: number, shift_z: number): void;
|
|
64
|
+
coCompoundFlags(handle: number): number | undefined;
|
|
65
|
+
coContactCollider(handle: number, collider2handle: number, prediction: number): RawShapeContact | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* The total force magnitude beyond which a contact force event can be emitted.
|
|
68
|
+
*/
|
|
69
|
+
coContactForceEventThreshold(handle: number): number;
|
|
70
|
+
coContactShape(handle: number, shape2: RawShape, shapePos2: RawVector, shapeRot2: RawRotation, prediction: number): RawShapeContact | undefined;
|
|
71
|
+
coContactSkin(handle: number): number;
|
|
72
|
+
coContainsPoint(handle: number, point: RawVector): boolean;
|
|
73
|
+
/**
|
|
74
|
+
* The density of this collider.
|
|
75
|
+
*/
|
|
76
|
+
coDensity(handle: number): number;
|
|
77
|
+
coFrictionCombineRule(handle: number): number;
|
|
78
|
+
/**
|
|
79
|
+
* The friction coefficient of this collider.
|
|
80
|
+
*/
|
|
81
|
+
coFriction(handle: number): number;
|
|
82
|
+
/**
|
|
83
|
+
* The half-extents of this collider if it has a cuboid shape.
|
|
84
|
+
*
|
|
85
|
+
* Returns `false` if it doesn’t have a cuboid shape.
|
|
86
|
+
*
|
|
87
|
+
* # Parameters
|
|
88
|
+
* - `scratch_buffer`: The array to be populated.
|
|
89
|
+
*/
|
|
90
|
+
coHalfExtents(handle: number, scratch_buffer: Float32Array): boolean;
|
|
91
|
+
/**
|
|
92
|
+
* The half height of this collider if it is a capsule, cylinder, or cone shape.
|
|
93
|
+
*/
|
|
94
|
+
coHalfHeight(handle: number): number | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* The outward normal of this collider if it has a half-space shape.
|
|
97
|
+
*
|
|
98
|
+
* Returns `false` if it doesn’t have a half-space shape.
|
|
99
|
+
*/
|
|
100
|
+
coHalfspaceNormal(handle: number, scratch_buffer: Float32Array): boolean;
|
|
101
|
+
coHeightFieldFlags(handle: number): number | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* The height of this heightfield if it is one.
|
|
104
|
+
*/
|
|
105
|
+
coHeightfieldHeights(handle: number): Float32Array | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* The number of columns on this heightfield's height matrix, if it is one.
|
|
108
|
+
*/
|
|
109
|
+
coHeightfieldNCols(handle: number): number | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* The number of rows on this heightfield's height matrix, if it is one.
|
|
112
|
+
*/
|
|
113
|
+
coHeightfieldNRows(handle: number): number | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* The scaling factor applied to this heightfield if it is one.
|
|
116
|
+
*
|
|
117
|
+
* # Parameters
|
|
118
|
+
* - `scratch_buffer`: The array to be populated.
|
|
119
|
+
*/
|
|
120
|
+
coHeightfieldScale(handle: number, scratch_buffer: Float32Array): boolean;
|
|
121
|
+
/**
|
|
122
|
+
* The indices of this triangle mesh, polyline, or convex polyhedron, if it is one.
|
|
123
|
+
*
|
|
124
|
+
* For convex polyhedra, the indices refer to the convex hull recomputed with
|
|
125
|
+
* `try_convex_hull` (matching `coVertices`), not to the original input mesh.
|
|
126
|
+
*/
|
|
127
|
+
coIndices(handle: number): Uint32Array | undefined;
|
|
128
|
+
coIntersectsRay(handle: number, rayOrig: RawVector, rayDir: RawVector, maxToi: number): boolean;
|
|
129
|
+
coIntersectsShape(handle: number, shape2: RawShape, shapePos2: RawVector, shapeRot2: RawRotation): boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Does this collider hold a soft body's deformable collision mesh?
|
|
132
|
+
*/
|
|
133
|
+
coIsDeformable(handle: number): boolean;
|
|
134
|
+
coIsEnabled(handle: number): boolean;
|
|
135
|
+
/**
|
|
136
|
+
* Is this collider a sensor?
|
|
137
|
+
*/
|
|
138
|
+
coIsSensor(handle: number): boolean;
|
|
139
|
+
/**
|
|
140
|
+
* The mass of this collider.
|
|
141
|
+
*/
|
|
142
|
+
coMass(handle: number): number;
|
|
143
|
+
/**
|
|
144
|
+
* The unique integer identifier of the collider this collider is attached to.
|
|
145
|
+
*/
|
|
146
|
+
coParent(handle: number): number | undefined;
|
|
147
|
+
coPolylineFlags(handle: number): number | undefined;
|
|
148
|
+
coProjectPoint(handle: number, point: RawVector, solid: boolean): RawPointProjection;
|
|
149
|
+
coPropagateVoxelChange(handle1: number, handle2: number, ix: number, iy: number, iz: number, shift_x: number, shift_y: number, shift_z: number): void;
|
|
150
|
+
/**
|
|
151
|
+
* The radius of this collider if it is a ball, capsule, cylinder, or cone shape.
|
|
152
|
+
*/
|
|
153
|
+
coRadius(handle: number): number | undefined;
|
|
154
|
+
coRestitutionCombineRule(handle: number): number;
|
|
155
|
+
/**
|
|
156
|
+
* The restitution coefficient of this collider.
|
|
157
|
+
*/
|
|
158
|
+
coRestitution(handle: number): number;
|
|
159
|
+
/**
|
|
160
|
+
* The orientation of this collider relative to its parent rigid-body.
|
|
161
|
+
*
|
|
162
|
+
* Returns `false` if it doesn’t have a parent.
|
|
163
|
+
*
|
|
164
|
+
* # Parameters
|
|
165
|
+
* - `scratch_buffer`: The array to be populated.
|
|
166
|
+
*/
|
|
167
|
+
coRotationWrtParent(handle: number, scratch_buffer: Float32Array): boolean;
|
|
168
|
+
/**
|
|
169
|
+
* The world-space orientation of this collider.
|
|
170
|
+
*
|
|
171
|
+
* # Parameters
|
|
172
|
+
* - `scratch_buffer`: The array to be populated.
|
|
173
|
+
*/
|
|
174
|
+
coRotation(handle: number, scratch_buffer: Float32Array): void;
|
|
175
|
+
/**
|
|
176
|
+
* The radius of the round edges of this collider.
|
|
177
|
+
*/
|
|
178
|
+
coRoundRadius(handle: number): number | undefined;
|
|
179
|
+
coSetActiveCollisionTypes(handle: number, types: number): void;
|
|
180
|
+
coSetActiveEvents(handle: number, events: number): void;
|
|
181
|
+
coSetActiveHooks(handle: number, hooks: number): void;
|
|
182
|
+
coSetCollisionGroups(handle: number, groups: number): void;
|
|
183
|
+
coSetContactForceEventThreshold(handle: number, threshold: number): void;
|
|
184
|
+
coSetContactSkin(handle: number, contact_skin: number): void;
|
|
185
|
+
coSetDensity(handle: number, density: number): void;
|
|
186
|
+
coSetEnabled(handle: number, enabled: boolean): void;
|
|
187
|
+
coSetFrictionCombineRule(handle: number, rule: number): void;
|
|
188
|
+
coSetFriction(handle: number, friction: number): void;
|
|
189
|
+
/**
|
|
190
|
+
* Set the half-extents of this collider if it has a cuboid shape.
|
|
191
|
+
*/
|
|
192
|
+
coSetHalfExtents(handle: number, newHalfExtents: RawVector): void;
|
|
193
|
+
/**
|
|
194
|
+
* Set the half height of this collider if it is a capsule, cylinder, or cone shape.
|
|
195
|
+
*/
|
|
196
|
+
coSetHalfHeight(handle: number, newHalfheight: number): void;
|
|
197
|
+
coSetMassProperties(handle: number, mass: number, centerOfMass: RawVector, principalAngularInertia: RawVector, angularInertiaFrame: RawRotation): void;
|
|
198
|
+
coSetMass(handle: number, mass: number): void;
|
|
199
|
+
/**
|
|
200
|
+
* Set the radius of this collider if it is a ball, capsule, cylinder, or cone shape.
|
|
201
|
+
*/
|
|
202
|
+
coSetRadius(handle: number, newRadius: number): void;
|
|
203
|
+
coSetRestitutionCombineRule(handle: number, rule: number): void;
|
|
204
|
+
coSetRestitution(handle: number, restitution: number): void;
|
|
205
|
+
coSetRotationWrtParent(handle: number, x: number, y: number, z: number, w: number): void;
|
|
206
|
+
/**
|
|
207
|
+
* Sets the rotation quaternion of this collider.
|
|
208
|
+
*
|
|
209
|
+
* This does nothing if a zero quaternion is provided.
|
|
210
|
+
*
|
|
211
|
+
* # Parameters
|
|
212
|
+
* - `x`: the first vector component of the quaternion.
|
|
213
|
+
* - `y`: the second vector component of the quaternion.
|
|
214
|
+
* - `z`: the third vector component of the quaternion.
|
|
215
|
+
* - `w`: the scalar component of the quaternion.
|
|
216
|
+
* - `wakeUp`: forces the collider to wake-up so it is properly affected by forces if it
|
|
217
|
+
* wasn't moving before modifying its position.
|
|
218
|
+
*/
|
|
219
|
+
coSetRotation(handle: number, x: number, y: number, z: number, w: number): void;
|
|
220
|
+
/**
|
|
221
|
+
* Set the radius of the round edges of this collider.
|
|
222
|
+
*/
|
|
223
|
+
coSetRoundRadius(handle: number, newBorderRadius: number): void;
|
|
224
|
+
coSetSensor(handle: number, is_sensor: boolean): void;
|
|
225
|
+
coSetShape(handle: number, shape: RawShape): void;
|
|
226
|
+
coSetSolverGroups(handle: number, groups: number): void;
|
|
227
|
+
coSetTranslationWrtParent(handle: number, x: number, y: number, z: number): void;
|
|
228
|
+
/**
|
|
229
|
+
* Sets the translation of this collider.
|
|
230
|
+
*
|
|
231
|
+
* # Parameters
|
|
232
|
+
* - `x`: the world-space position of the collider along the `x` axis.
|
|
233
|
+
* - `y`: the world-space position of the collider along the `y` axis.
|
|
234
|
+
* - `z`: the world-space position of the collider along the `z` axis.
|
|
235
|
+
* - `wakeUp`: forces the collider to wake-up so it is properly affected by forces if it
|
|
236
|
+
* wasn't moving before modifying its position.
|
|
237
|
+
*/
|
|
238
|
+
coSetTranslation(handle: number, x: number, y: number, z: number): void;
|
|
239
|
+
coSetVoxel(handle: number, ix: number, iy: number, iz: number, filled: boolean): void;
|
|
240
|
+
/**
|
|
241
|
+
* The type of the shape of this collider.
|
|
242
|
+
*/
|
|
243
|
+
coShapeType(handle: number): RawShapeType;
|
|
244
|
+
coShape(handle: number): RawShape;
|
|
245
|
+
/**
|
|
246
|
+
* The soft body whose deformable collision mesh this collider holds, if any.
|
|
247
|
+
*/
|
|
248
|
+
coSoftBody(handle: number): number | undefined;
|
|
249
|
+
/**
|
|
250
|
+
* The solver groups of this collider.
|
|
251
|
+
*/
|
|
252
|
+
coSolverGroups(handle: number): number;
|
|
253
|
+
/**
|
|
254
|
+
* The translation of this collider relative to its parent rigid-body.
|
|
255
|
+
*
|
|
256
|
+
* Returns `false` if it doesn’t have a parent.
|
|
257
|
+
*
|
|
258
|
+
* # Parameters
|
|
259
|
+
* - `scratch_buffer`: The array to be populated.
|
|
260
|
+
*/
|
|
261
|
+
coTranslationWrtParent(handle: number, scratch_buffer: Float32Array): boolean;
|
|
262
|
+
/**
|
|
263
|
+
* The world-space translation of this collider.
|
|
264
|
+
*
|
|
265
|
+
* # Parameters
|
|
266
|
+
* - `scratch_buffer`: The array to be populated.
|
|
267
|
+
*/
|
|
268
|
+
coTranslation(handle: number, scratch_buffer: Float32Array): void;
|
|
269
|
+
coTriMeshFlags(handle: number): number | undefined;
|
|
270
|
+
/**
|
|
271
|
+
* The vertices of this triangle mesh, polyline, convex polyhedron, segment, triangle or convex polyhedron, if it is one.
|
|
272
|
+
*
|
|
273
|
+
* For convex polyhedra, this returns the vertices of a convex hull recomputed with
|
|
274
|
+
* `try_convex_hull`, so they may differ in count and order from the points the shape
|
|
275
|
+
* was built from. This guarantees the result can be used to reconstruct the shape.
|
|
276
|
+
*/
|
|
277
|
+
coVertices(handle: number): Float32Array | undefined;
|
|
278
|
+
/**
|
|
279
|
+
* The volume of this collider.
|
|
280
|
+
*/
|
|
281
|
+
coVolume(handle: number): number;
|
|
282
|
+
coVoxelData(handle: number): Int32Array | undefined;
|
|
283
|
+
coVoxelSize(handle: number): RawVector | undefined;
|
|
284
|
+
contains(handle: number): boolean;
|
|
285
|
+
createCollider(enabled: boolean, shape: RawShape, translation: RawVector, rotation: RawRotation, massPropsMode: number, mass: number, centerOfMass: RawVector, principalAngularInertia: RawVector, angularInertiaFrame: RawRotation, density: number, friction: number, restitution: number, frictionCombineRule: number, restitutionCombineRule: number, isSensor: boolean, collisionGroups: number, solverGroups: number, activeCollisionTypes: number, activeHooks: number, activeEvents: number, contactForceEventThreshold: number, contactSkin: number, hasParent: boolean, parent: number, bodies: RawRigidBodySet): number | undefined;
|
|
286
|
+
createDeformableCollider(enabled: boolean, shape: RawShape, translation: RawVector, rotation: RawRotation, massPropsMode: number, mass: number, centerOfMass: RawVector, principalAngularInertia: RawVector, angularInertiaFrame: RawRotation, density: number, friction: number, restitution: number, frictionCombineRule: number, restitutionCombineRule: number, isSensor: boolean, collisionGroups: number, solverGroups: number, activeCollisionTypes: number, activeHooks: number, activeEvents: number, contactForceEventThreshold: number, contactSkin: number, bindingMode: RawSoftMeshBindingMode, bindingParticles: Uint32Array, bindingEps: number, bindingSelfContacts: boolean, parent: number, bodies: RawRigidBodySet, softBodies: RawSoftBodySet): number | undefined;
|
|
287
|
+
/**
|
|
288
|
+
* Applies the given JavaScript function to the integer handle of each collider managed by this collider set.
|
|
289
|
+
*
|
|
290
|
+
* # Parameters
|
|
291
|
+
* - `f(handle)`: the function to apply to the integer handle of each collider managed by this collider set. Called as `f(handle)`.
|
|
292
|
+
*/
|
|
293
|
+
forEachColliderHandle(f: Function): void;
|
|
294
|
+
/**
|
|
295
|
+
* Checks if a collider with the given integer handle exists.
|
|
296
|
+
*/
|
|
297
|
+
isHandleValid(handle: number): boolean;
|
|
298
|
+
len(): number;
|
|
299
|
+
constructor();
|
|
300
|
+
/**
|
|
301
|
+
* Removes a collider from this set and wake-up the rigid-body it is attached to.
|
|
302
|
+
*/
|
|
303
|
+
remove(handle: number, islands: RawIslandManager, bodies: RawRigidBodySet, softBodies: RawSoftBodySet, wakeUp: boolean): void;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
export class RawColliderShapeCastHit {
|
|
307
|
+
private constructor();
|
|
308
|
+
free(): void;
|
|
309
|
+
[Symbol.dispose](): void;
|
|
310
|
+
colliderHandle(): number;
|
|
311
|
+
getComponents(scratch_buffer: Float32Array): void;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export class RawContactForceEvent {
|
|
315
|
+
private constructor();
|
|
316
|
+
free(): void;
|
|
317
|
+
[Symbol.dispose](): void;
|
|
318
|
+
/**
|
|
319
|
+
* The first collider involved in the contact.
|
|
320
|
+
*/
|
|
321
|
+
collider1(): number;
|
|
322
|
+
/**
|
|
323
|
+
* The second collider involved in the contact.
|
|
324
|
+
*/
|
|
325
|
+
collider2(): number;
|
|
326
|
+
/**
|
|
327
|
+
* The world-space (unit) direction of the force with strongest magnitude.
|
|
328
|
+
*/
|
|
329
|
+
max_force_direction(scratch_buffer: Float32Array): void;
|
|
330
|
+
/**
|
|
331
|
+
* The magnitude of the largest force at a contact point of this contact pair.
|
|
332
|
+
*/
|
|
333
|
+
max_force_magnitude(): number;
|
|
334
|
+
/**
|
|
335
|
+
* The sum of all the forces between the two colliders.
|
|
336
|
+
*/
|
|
337
|
+
total_force(scratch_buffer: Float32Array): void;
|
|
338
|
+
/**
|
|
339
|
+
* The sum of the magnitudes of each force between the two colliders.
|
|
340
|
+
*
|
|
341
|
+
* Note that this is **not** the same as the magnitude of `self.total_force`.
|
|
342
|
+
* Here we are summing the magnitude of all the forces, instead of taking
|
|
343
|
+
* the magnitude of their sum.
|
|
344
|
+
*/
|
|
345
|
+
total_force_magnitude(): number;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export class RawContactManifold {
|
|
349
|
+
private constructor();
|
|
350
|
+
free(): void;
|
|
351
|
+
[Symbol.dispose](): void;
|
|
352
|
+
contact_dist(i: number): number;
|
|
353
|
+
contact_fid1(i: number): number;
|
|
354
|
+
contact_fid2(i: number): number;
|
|
355
|
+
contact_impulse(i: number): number;
|
|
356
|
+
contact_local_p1(i: number, scratch_buffer: Float32Array): boolean;
|
|
357
|
+
contact_local_p2(i: number, scratch_buffer: Float32Array): boolean;
|
|
358
|
+
contact_tangent_impulse_x(i: number): number;
|
|
359
|
+
contact_tangent_impulse_y(i: number): number;
|
|
360
|
+
friction(): number;
|
|
361
|
+
local_n1(scratch_buffer: Float32Array): void;
|
|
362
|
+
local_n2(scratch_buffer: Float32Array): void;
|
|
363
|
+
normal(scratch_buffer: Float32Array): void;
|
|
364
|
+
num_contacts(): number;
|
|
365
|
+
num_solver_contacts(): number;
|
|
366
|
+
restitution(): number;
|
|
367
|
+
solver_contact_dist(i: number): number;
|
|
368
|
+
/**
|
|
369
|
+
* Current world-space solver anchor; includes solver skin/hook offsets.
|
|
370
|
+
*/
|
|
371
|
+
solver_contact_point1(bodies: RawRigidBodySet, i: number, scratch_buffer: Float32Array): boolean;
|
|
372
|
+
/**
|
|
373
|
+
* Current world-space solver anchor; includes solver skin/hook offsets.
|
|
374
|
+
*/
|
|
375
|
+
solver_contact_point2(bodies: RawRigidBodySet, i: number, scratch_buffer: Float32Array): boolean;
|
|
376
|
+
solver_contact_point(bodies: RawRigidBodySet, i: number, scratch_buffer: Float32Array): boolean;
|
|
377
|
+
/**
|
|
378
|
+
* Current anchor separation along the stored world-space solver normal.
|
|
379
|
+
*/
|
|
380
|
+
solver_contact_separation(bodies: RawRigidBodySet, i: number): number | undefined;
|
|
381
|
+
solver_contact_tangent_velocity(i: number, scratch_buffer: Float32Array): void;
|
|
382
|
+
subshape1(): number;
|
|
383
|
+
subshape2(): number;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
export class RawContactPair {
|
|
387
|
+
private constructor();
|
|
388
|
+
free(): void;
|
|
389
|
+
[Symbol.dispose](): void;
|
|
390
|
+
collider1(): number;
|
|
391
|
+
collider2(): number;
|
|
392
|
+
contactManifold(i: number): RawContactManifold | undefined;
|
|
393
|
+
numContactManifolds(): number;
|
|
394
|
+
/**
|
|
395
|
+
* The manifolds actually consumed by the solver, including contact clusters.
|
|
396
|
+
*/
|
|
397
|
+
numSolverManifolds(): number;
|
|
398
|
+
solverManifold(i: number): RawContactManifold | undefined;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* The vertex/index buffers of a convex polyhedron’s convex hull.
|
|
403
|
+
*/
|
|
404
|
+
export class RawConvexMeshData {
|
|
405
|
+
private constructor();
|
|
406
|
+
free(): void;
|
|
407
|
+
[Symbol.dispose](): void;
|
|
408
|
+
indices: Uint32Array;
|
|
409
|
+
vertices: Float32Array;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
export class RawDebugRenderPipeline {
|
|
413
|
+
free(): void;
|
|
414
|
+
[Symbol.dispose](): void;
|
|
415
|
+
colors(): Float32Array;
|
|
416
|
+
constructor();
|
|
417
|
+
render(bodies: RawRigidBodySet, colliders: RawColliderSet, soft_bodies: RawSoftBodySet, impulse_joints: RawImpulseJointSet, multibody_joints: RawMultibodyJointSet, narrow_phase: RawNarrowPhase, filter_flags: number, filter_predicate: Function): void;
|
|
418
|
+
vertices(): Float32Array;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
export class RawDeserializedWorld {
|
|
422
|
+
private constructor();
|
|
423
|
+
free(): void;
|
|
424
|
+
[Symbol.dispose](): void;
|
|
425
|
+
takeBodies(): RawRigidBodySet | undefined;
|
|
426
|
+
takeBroadPhase(): RawBroadPhase | undefined;
|
|
427
|
+
takeColliders(): RawColliderSet | undefined;
|
|
428
|
+
takeGravity(): RawVector | undefined;
|
|
429
|
+
takeImpulseJoints(): RawImpulseJointSet | undefined;
|
|
430
|
+
takeIntegrationParameters(): RawIntegrationParameters | undefined;
|
|
431
|
+
takeIslandManager(): RawIslandManager | undefined;
|
|
432
|
+
takeMultibodyJoints(): RawMultibodyJointSet | undefined;
|
|
433
|
+
takeNarrowPhase(): RawNarrowPhase | undefined;
|
|
434
|
+
takeSoftBodies(): RawSoftBodySet | undefined;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
export class RawDynamicRayCastVehicleController {
|
|
438
|
+
free(): void;
|
|
439
|
+
[Symbol.dispose](): void;
|
|
440
|
+
add_wheel(chassis_connection_cs: RawVector, direction_cs: RawVector, axle_cs: RawVector, suspension_rest_length: number, radius: number): void;
|
|
441
|
+
chassis(): number;
|
|
442
|
+
current_vehicle_speed(): number;
|
|
443
|
+
index_forward_axis(): number;
|
|
444
|
+
index_up_axis(): number;
|
|
445
|
+
constructor(chassis: number);
|
|
446
|
+
num_wheels(): number;
|
|
447
|
+
set_index_forward_axis(axis: number): void;
|
|
448
|
+
set_index_up_axis(axis: number): void;
|
|
449
|
+
set_wheel_axle_cs(i: number, value: RawVector): void;
|
|
450
|
+
set_wheel_brake(i: number, value: number): void;
|
|
451
|
+
set_wheel_chassis_connection_point_cs(i: number, value: RawVector): void;
|
|
452
|
+
set_wheel_direction_cs(i: number, value: RawVector): void;
|
|
453
|
+
set_wheel_engine_force(i: number, value: number): void;
|
|
454
|
+
set_wheel_friction_slip(i: number, value: number): void;
|
|
455
|
+
set_wheel_max_suspension_force(i: number, value: number): void;
|
|
456
|
+
set_wheel_max_suspension_travel(i: number, value: number): void;
|
|
457
|
+
set_wheel_radius(i: number, value: number): void;
|
|
458
|
+
set_wheel_side_friction_stiffness(i: number, stiffness: number): void;
|
|
459
|
+
set_wheel_steering(i: number, value: number): void;
|
|
460
|
+
set_wheel_suspension_compression(i: number, value: number): void;
|
|
461
|
+
set_wheel_suspension_relaxation(i: number, value: number): void;
|
|
462
|
+
set_wheel_suspension_rest_length(i: number, value: number): void;
|
|
463
|
+
set_wheel_suspension_stiffness(i: number, value: number): void;
|
|
464
|
+
update_vehicle(dt: number, broad_phase: RawBroadPhase, narrow_phase: RawNarrowPhase, bodies: RawRigidBodySet, colliders: RawColliderSet, filter_flags: number, filter_groups: number | null | undefined, filter_predicate: Function): void;
|
|
465
|
+
wheel_axle_cs(i: number, scratch_buffer: Float32Array): boolean;
|
|
466
|
+
wheel_brake(i: number): number | undefined;
|
|
467
|
+
wheel_chassis_connection_point_cs(i: number, scratch_buffer: Float32Array): boolean;
|
|
468
|
+
wheel_contact_normal_ws(i: number, scratch_buffer: Float32Array): boolean;
|
|
469
|
+
wheel_contact_point_ws(i: number, scratch_buffer: Float32Array): boolean;
|
|
470
|
+
wheel_direction_cs(i: number, scratch_buffer: Float32Array): boolean;
|
|
471
|
+
wheel_engine_force(i: number): number | undefined;
|
|
472
|
+
wheel_forward_impulse(i: number): number | undefined;
|
|
473
|
+
wheel_friction_slip(i: number): number | undefined;
|
|
474
|
+
wheel_ground_object(i: number): number | undefined;
|
|
475
|
+
wheel_hard_point_ws(i: number, scratch_buffer: Float32Array): boolean;
|
|
476
|
+
wheel_is_in_contact(i: number): boolean;
|
|
477
|
+
wheel_max_suspension_force(i: number): number | undefined;
|
|
478
|
+
wheel_max_suspension_travel(i: number): number | undefined;
|
|
479
|
+
wheel_radius(i: number): number | undefined;
|
|
480
|
+
wheel_rotation(i: number): number | undefined;
|
|
481
|
+
wheel_side_friction_stiffness(i: number): number | undefined;
|
|
482
|
+
wheel_side_impulse(i: number): number | undefined;
|
|
483
|
+
wheel_steering(i: number): number | undefined;
|
|
484
|
+
wheel_suspension_compression(i: number): number | undefined;
|
|
485
|
+
wheel_suspension_force(i: number): number | undefined;
|
|
486
|
+
wheel_suspension_length(i: number): number | undefined;
|
|
487
|
+
wheel_suspension_relaxation(i: number): number | undefined;
|
|
488
|
+
wheel_suspension_rest_length(i: number): number | undefined;
|
|
489
|
+
wheel_suspension_stiffness(i: number): number | undefined;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* A structure responsible for collecting events generated
|
|
494
|
+
* by the physics engine.
|
|
495
|
+
*/
|
|
496
|
+
export class RawEventQueue {
|
|
497
|
+
free(): void;
|
|
498
|
+
[Symbol.dispose](): void;
|
|
499
|
+
/**
|
|
500
|
+
* Removes all events contained by this collector.
|
|
501
|
+
*/
|
|
502
|
+
clear(): void;
|
|
503
|
+
/**
|
|
504
|
+
* Applies the given javascript closure on each collision event of this collector, then clear
|
|
505
|
+
* the internal collision event buffer.
|
|
506
|
+
*
|
|
507
|
+
* # Parameters
|
|
508
|
+
* - `f(handle1, handle2, started)`: JavaScript closure applied to each collision event. The
|
|
509
|
+
* closure should take three arguments: two integers representing the handles of the colliders
|
|
510
|
+
* involved in the collision, and a boolean indicating if the collision started (true) or stopped
|
|
511
|
+
* (false).
|
|
512
|
+
*/
|
|
513
|
+
drainCollisionEvents(f: Function): void;
|
|
514
|
+
drainContactForceEvents(f: Function): void;
|
|
515
|
+
/**
|
|
516
|
+
* Applies the given javascript closure on each soft-body tear event of this collector,
|
|
517
|
+
* then clears the internal tear event buffer.
|
|
518
|
+
*/
|
|
519
|
+
drainSoftBodyTearEvents(f: Function): void;
|
|
520
|
+
/**
|
|
521
|
+
* Creates a new event collector.
|
|
522
|
+
*
|
|
523
|
+
* # Parameters
|
|
524
|
+
* - `autoDrain`: setting this to `true` is strongly recommended. If true, the collector will
|
|
525
|
+
* be automatically drained before each `world.step(collector)`. If false, the collector will
|
|
526
|
+
* keep all events in memory unless it is manually drained/cleared; this may lead to unbounded use of
|
|
527
|
+
* RAM if no drain is performed.
|
|
528
|
+
*/
|
|
529
|
+
constructor(autoDrain: boolean);
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
export enum RawFeatureType {
|
|
533
|
+
Vertex = 0,
|
|
534
|
+
Edge = 1,
|
|
535
|
+
Face = 2,
|
|
536
|
+
Unknown = 3,
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
export class RawGenericJoint {
|
|
540
|
+
private constructor();
|
|
541
|
+
free(): void;
|
|
542
|
+
[Symbol.dispose](): void;
|
|
543
|
+
/**
|
|
544
|
+
* Creates a new joint descriptor that builds a Fixed joint.
|
|
545
|
+
*
|
|
546
|
+
* A fixed joint removes all the degrees of freedom between the affected bodies.
|
|
547
|
+
*/
|
|
548
|
+
static fixed(anchor1: RawVector, axes1: RawRotation, anchor2: RawVector, axes2: RawRotation): RawGenericJoint;
|
|
549
|
+
/**
|
|
550
|
+
* Creates a new joint descriptor that builds generic joints.
|
|
551
|
+
*
|
|
552
|
+
* Generic joints allow arbitrary axes of freedom to be selected
|
|
553
|
+
* for the joint from the available 6 degrees of freedom.
|
|
554
|
+
*/
|
|
555
|
+
static generic(anchor1: RawVector, anchor2: RawVector, axis: RawVector, lockedAxes: number): RawGenericJoint | undefined;
|
|
556
|
+
/**
|
|
557
|
+
* Creates a new joint descriptor that builds a Prismatic joint.
|
|
558
|
+
*
|
|
559
|
+
* A prismatic joint removes all the degrees of freedom between the
|
|
560
|
+
* affected bodies, except for the translation along one axis.
|
|
561
|
+
*
|
|
562
|
+
* Returns `None` if any of the provided axes cannot be normalized.
|
|
563
|
+
*/
|
|
564
|
+
static prismatic(anchor1: RawVector, anchor2: RawVector, axis: RawVector, limitsEnabled: boolean, limitsMin: number, limitsMax: number): RawGenericJoint | undefined;
|
|
565
|
+
/**
|
|
566
|
+
* Create a new joint descriptor that builds Revolute joints with
|
|
567
|
+
* independent local axes for each attached rigid-body.
|
|
568
|
+
*
|
|
569
|
+
* This is equivalent to a revolute generic joint with all linear axes
|
|
570
|
+
* locked and only angular X free, but it preserves the local hinge axis
|
|
571
|
+
* on each body instead of assuming they are identical.
|
|
572
|
+
*/
|
|
573
|
+
static revoluteWithAxes(anchor1: RawVector, anchor2: RawVector, axis1: RawVector, axis2: RawVector): RawGenericJoint | undefined;
|
|
574
|
+
/**
|
|
575
|
+
* Create a new joint descriptor that builds Revolute joints.
|
|
576
|
+
*
|
|
577
|
+
* A revolute joint removes all degrees of freedom between the affected
|
|
578
|
+
* bodies except for the rotation along one axis.
|
|
579
|
+
*/
|
|
580
|
+
static revolute(anchor1: RawVector, anchor2: RawVector, axis: RawVector): RawGenericJoint | undefined;
|
|
581
|
+
static rope(length: number, anchor1: RawVector, anchor2: RawVector): RawGenericJoint;
|
|
582
|
+
/**
|
|
583
|
+
* Create a new joint descriptor that builds spherical joints.
|
|
584
|
+
*
|
|
585
|
+
* A spherical joints allows three relative rotational degrees of freedom
|
|
586
|
+
* by preventing any relative translation between the anchors of the
|
|
587
|
+
* two attached rigid-bodies.
|
|
588
|
+
*/
|
|
589
|
+
static spherical(anchor1: RawVector, anchor2: RawVector): RawGenericJoint;
|
|
590
|
+
static spring(rest_length: number, stiffness: number, damping: number, anchor1: RawVector, anchor2: RawVector): RawGenericJoint;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
export class RawImpulseJointSet {
|
|
594
|
+
free(): void;
|
|
595
|
+
[Symbol.dispose](): void;
|
|
596
|
+
contains(handle: number): boolean;
|
|
597
|
+
createJoint(params: RawGenericJoint, parent1: number, parent2: number, wake_up: boolean): number;
|
|
598
|
+
/**
|
|
599
|
+
* Applies the given JavaScript function to the integer handle of each joint attached to the given rigid-body.
|
|
600
|
+
*
|
|
601
|
+
* # Parameters
|
|
602
|
+
* - `f(handle)`: the function to apply to the integer handle of each joint attached to the rigid-body. Called as `f(collider)`.
|
|
603
|
+
*/
|
|
604
|
+
forEachJointAttachedToRigidBody(body: number, f: Function): void;
|
|
605
|
+
/**
|
|
606
|
+
* Applies the given JavaScript function to the integer handle of each joint managed by this physics world.
|
|
607
|
+
*
|
|
608
|
+
* # Parameters
|
|
609
|
+
* - `f(handle)`: the function to apply to the integer handle of each joint managed by this set. Called as `f(collider)`.
|
|
610
|
+
*/
|
|
611
|
+
forEachJointHandle(f: Function): void;
|
|
612
|
+
/**
|
|
613
|
+
* The position of the second anchor of this joint.
|
|
614
|
+
*
|
|
615
|
+
* The second anchor gives the position of the points application point on the
|
|
616
|
+
* local frame of the second rigid-body it is attached to.
|
|
617
|
+
*/
|
|
618
|
+
jointAnchor1(handle: number, scratch_buffer: Float32Array): void;
|
|
619
|
+
/**
|
|
620
|
+
* The position of the second anchor of this joint.
|
|
621
|
+
*
|
|
622
|
+
* The second anchor gives the position of the points application point on the
|
|
623
|
+
* local frame of the second rigid-body it is attached to.
|
|
624
|
+
*/
|
|
625
|
+
jointAnchor2(handle: number, scratch_buffer: Float32Array): void;
|
|
626
|
+
/**
|
|
627
|
+
* The unique integer identifier of the first rigid-body this joint it attached to.
|
|
628
|
+
*/
|
|
629
|
+
jointBodyHandle1(handle: number): number;
|
|
630
|
+
/**
|
|
631
|
+
* The unique integer identifier of the second rigid-body this joint is attached to.
|
|
632
|
+
*/
|
|
633
|
+
jointBodyHandle2(handle: number): number;
|
|
634
|
+
jointConfigureMotorModel(handle: number, axis: RawJointAxis, model: RawMotorModel): void;
|
|
635
|
+
jointConfigureMotorPosition(handle: number, axis: RawJointAxis, targetPos: number, stiffness: number, damping: number): void;
|
|
636
|
+
jointConfigureMotorVelocity(handle: number, axis: RawJointAxis, targetVel: number, factor: number): void;
|
|
637
|
+
jointConfigureMotor(handle: number, axis: RawJointAxis, targetPos: number, targetVel: number, stiffness: number, damping: number): void;
|
|
638
|
+
/**
|
|
639
|
+
* Are contacts between the rigid-bodies attached by this joint enabled?
|
|
640
|
+
*/
|
|
641
|
+
jointContactsEnabled(handle: number): boolean;
|
|
642
|
+
/**
|
|
643
|
+
* The angular part of the joint’s local frame relative to the first rigid-body it is attached to.
|
|
644
|
+
*/
|
|
645
|
+
jointFrameX1(handle: number, scratch_buffer: Float32Array): void;
|
|
646
|
+
/**
|
|
647
|
+
* The angular part of the joint’s local frame relative to the second rigid-body it is attached to.
|
|
648
|
+
*/
|
|
649
|
+
jointFrameX2(handle: number, scratch_buffer: Float32Array): void;
|
|
650
|
+
/**
|
|
651
|
+
* Are the limits for this joint enabled?
|
|
652
|
+
*/
|
|
653
|
+
jointLimitsEnabled(handle: number, axis: RawJointAxis): boolean;
|
|
654
|
+
/**
|
|
655
|
+
* If this is a prismatic joint, returns its upper limit.
|
|
656
|
+
*/
|
|
657
|
+
jointLimitsMax(handle: number, axis: RawJointAxis): number;
|
|
658
|
+
/**
|
|
659
|
+
* Return the lower limit along the given joint axis.
|
|
660
|
+
*/
|
|
661
|
+
jointLimitsMin(handle: number, axis: RawJointAxis): number;
|
|
662
|
+
/**
|
|
663
|
+
* Sets the position of the first local anchor
|
|
664
|
+
*/
|
|
665
|
+
jointSetAnchor1(handle: number, newPos: RawVector): void;
|
|
666
|
+
/**
|
|
667
|
+
* Sets the position of the second local anchor
|
|
668
|
+
*/
|
|
669
|
+
jointSetAnchor2(handle: number, newPos: RawVector): void;
|
|
670
|
+
/**
|
|
671
|
+
* Sets whether contacts are enabled between the rigid-bodies attached by this joint.
|
|
672
|
+
*/
|
|
673
|
+
jointSetContactsEnabled(handle: number, enabled: boolean): void;
|
|
674
|
+
/**
|
|
675
|
+
* Sets the angular part of the joint's local frame relative to the first rigid-body.
|
|
676
|
+
*/
|
|
677
|
+
jointSetFrameX1(handle: number, newRot: RawRotation): void;
|
|
678
|
+
/**
|
|
679
|
+
* Sets the angular part of the joint's local frame relative to the second rigid-body.
|
|
680
|
+
*/
|
|
681
|
+
jointSetFrameX2(handle: number, newRot: RawRotation): void;
|
|
682
|
+
/**
|
|
683
|
+
* Enables and sets the joint limits
|
|
684
|
+
*/
|
|
685
|
+
jointSetLimits(handle: number, axis: RawJointAxis, min: number, max: number): void;
|
|
686
|
+
/**
|
|
687
|
+
* Sets the full local frame (anchor + rotation) for the first rigid-body attachment.
|
|
688
|
+
*/
|
|
689
|
+
jointSetLocalFrame1(handle: number, anchor: RawVector, rot: RawRotation): void;
|
|
690
|
+
/**
|
|
691
|
+
* Sets the full local frame (anchor + rotation) for the second rigid-body attachment.
|
|
692
|
+
*/
|
|
693
|
+
jointSetLocalFrame2(handle: number, anchor: RawVector, rot: RawRotation): void;
|
|
694
|
+
jointSetMotorMaxForce(handle: number, axis: RawJointAxis, maxForce: number): void;
|
|
695
|
+
/**
|
|
696
|
+
* The type of this joint.
|
|
697
|
+
*/
|
|
698
|
+
jointType(handle: number): RawJointType;
|
|
699
|
+
len(): number;
|
|
700
|
+
constructor();
|
|
701
|
+
remove(handle: number, wakeUp: boolean): void;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
export class RawIntegrationParameters {
|
|
705
|
+
free(): void;
|
|
706
|
+
[Symbol.dispose](): void;
|
|
707
|
+
constructor();
|
|
708
|
+
contactClustering: boolean;
|
|
709
|
+
readonly contact_erp: number;
|
|
710
|
+
dt: number;
|
|
711
|
+
lengthUnit: number;
|
|
712
|
+
maxCcdSubsteps: number;
|
|
713
|
+
minCcdDt: number;
|
|
714
|
+
normalizedAllowedLinearError: number;
|
|
715
|
+
normalizedPredictionDistance: number;
|
|
716
|
+
numInternalPgsIterations: number;
|
|
717
|
+
numSolverIterations: number;
|
|
718
|
+
set contact_natural_frequency(value: number);
|
|
719
|
+
softBodiesContactStiffening: number;
|
|
720
|
+
softBodiesFemLinearTolerance: number;
|
|
721
|
+
softBodiesFemMaxDenseDofs: number;
|
|
722
|
+
softBodiesFemMaxLinearIterations: number;
|
|
723
|
+
softBodiesMaxExtraSubsteps: number;
|
|
724
|
+
softBodiesRecovery: RawSoftRecoverySettings;
|
|
725
|
+
softBodiesResweepStrain: number;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
export class RawIslandManager {
|
|
729
|
+
free(): void;
|
|
730
|
+
[Symbol.dispose](): void;
|
|
731
|
+
/**
|
|
732
|
+
* Applies the given JavaScript function to the integer handle of each active rigid-body
|
|
733
|
+
* managed by this island manager.
|
|
734
|
+
*
|
|
735
|
+
* After a short time of inactivity, a rigid-body is automatically deactivated ("asleep") by
|
|
736
|
+
* the physics engine in order to save computational power. A sleeping rigid-body never moves
|
|
737
|
+
* unless it is moved manually by the user.
|
|
738
|
+
*
|
|
739
|
+
* # Parameters
|
|
740
|
+
* - `f(handle)`: the function to apply to the integer handle of each active rigid-body managed by this
|
|
741
|
+
* set. Called as `f(collider)`.
|
|
742
|
+
*/
|
|
743
|
+
forEachActiveRigidBodyHandle(f: Function): void;
|
|
744
|
+
constructor();
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
export enum RawJointAxis {
|
|
748
|
+
LinX = 0,
|
|
749
|
+
LinY = 1,
|
|
750
|
+
LinZ = 2,
|
|
751
|
+
AngX = 3,
|
|
752
|
+
AngY = 4,
|
|
753
|
+
AngZ = 5,
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
export enum RawJointType {
|
|
757
|
+
Revolute = 0,
|
|
758
|
+
Fixed = 1,
|
|
759
|
+
Prismatic = 2,
|
|
760
|
+
Rope = 3,
|
|
761
|
+
Spring = 4,
|
|
762
|
+
Spherical = 5,
|
|
763
|
+
Generic = 6,
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
export class RawKinematicCharacterController {
|
|
767
|
+
free(): void;
|
|
768
|
+
[Symbol.dispose](): void;
|
|
769
|
+
autostepEnabled(): boolean;
|
|
770
|
+
autostepIncludesDynamicBodies(): boolean | undefined;
|
|
771
|
+
autostepMaxHeight(): number | undefined;
|
|
772
|
+
autostepMinWidth(): number | undefined;
|
|
773
|
+
computeColliderMovement(dt: number, broad_phase: RawBroadPhase, narrow_phase: RawNarrowPhase, bodies: RawRigidBodySet, colliders: RawColliderSet, collider_handle: number, desired_translation_delta: RawVector, apply_impulses_to_dynamic_bodies: boolean, character_mass: number | null | undefined, filter_flags: number, filter_groups: number | null | undefined, filter_predicate: Function): void;
|
|
774
|
+
computedCollision(i: number, collision: RawCharacterCollision): boolean;
|
|
775
|
+
computedGrounded(): boolean;
|
|
776
|
+
computedMovement(scratch_buffer: Float32Array): void;
|
|
777
|
+
disableAutostep(): void;
|
|
778
|
+
disableSnapToGround(): void;
|
|
779
|
+
enableAutostep(maxHeight: number, minWidth: number, includeDynamicBodies: boolean): void;
|
|
780
|
+
enableSnapToGround(distance: number): void;
|
|
781
|
+
maxSlopeClimbAngle(): number;
|
|
782
|
+
minSlopeSlideAngle(): number;
|
|
783
|
+
constructor(offset: number);
|
|
784
|
+
normalNudgeFactor(): number;
|
|
785
|
+
numComputedCollisions(): number;
|
|
786
|
+
offset(): number;
|
|
787
|
+
setMaxSlopeClimbAngle(angle: number): void;
|
|
788
|
+
setMinSlopeSlideAngle(angle: number): void;
|
|
789
|
+
setNormalNudgeFactor(value: number): void;
|
|
790
|
+
setOffset(value: number): void;
|
|
791
|
+
setSlideEnabled(enabled: boolean): void;
|
|
792
|
+
setUp(vector: RawVector): void;
|
|
793
|
+
slideEnabled(): boolean;
|
|
794
|
+
snapToGroundDistance(): number | undefined;
|
|
795
|
+
snapToGroundEnabled(): boolean;
|
|
796
|
+
up(): RawVector;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
export enum RawMotorModel {
|
|
800
|
+
AccelerationBased = 0,
|
|
801
|
+
ForceBased = 1,
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
export class RawMultibodyJointSet {
|
|
805
|
+
free(): void;
|
|
806
|
+
[Symbol.dispose](): void;
|
|
807
|
+
contains(handle: number): boolean;
|
|
808
|
+
createJoint(params: RawGenericJoint, parent1: number, parent2: number, wakeUp: boolean): number;
|
|
809
|
+
/**
|
|
810
|
+
* Applies the given JavaScript function to the integer handle of each joint attached to the given rigid-body.
|
|
811
|
+
*
|
|
812
|
+
* # Parameters
|
|
813
|
+
* - `f(handle)`: the function to apply to the integer handle of each joint attached to the rigid-body. Called as `f(collider)`.
|
|
814
|
+
*/
|
|
815
|
+
forEachJointAttachedToRigidBody(body: number, f: Function): void;
|
|
816
|
+
/**
|
|
817
|
+
* Applies the given JavaScript function to the integer handle of each joint managed by this physics world.
|
|
818
|
+
*
|
|
819
|
+
* # Parameters
|
|
820
|
+
* - `f(handle)`: the function to apply to the integer handle of each joint managed by this set. Called as `f(collider)`.
|
|
821
|
+
*/
|
|
822
|
+
forEachJointHandle(f: Function): void;
|
|
823
|
+
/**
|
|
824
|
+
* The position of the first anchor of this joint.
|
|
825
|
+
*
|
|
826
|
+
* The first anchor gives the position of the points application point on the
|
|
827
|
+
* local frame of the first rigid-body it is attached to.
|
|
828
|
+
*/
|
|
829
|
+
jointAnchor1(handle: number): RawVector;
|
|
830
|
+
/**
|
|
831
|
+
* The position of the second anchor of this joint.
|
|
832
|
+
*
|
|
833
|
+
* The second anchor gives the position of the points application point on the
|
|
834
|
+
* local frame of the second rigid-body it is attached to.
|
|
835
|
+
*/
|
|
836
|
+
jointAnchor2(handle: number): RawVector;
|
|
837
|
+
/**
|
|
838
|
+
* Are contacts between the rigid-bodies attached by this joint enabled?
|
|
839
|
+
*/
|
|
840
|
+
jointContactsEnabled(handle: number): boolean;
|
|
841
|
+
/**
|
|
842
|
+
* The angular part of the joint’s local frame relative to the first rigid-body it is attached to.
|
|
843
|
+
*/
|
|
844
|
+
jointFrameX1(handle: number): RawRotation;
|
|
845
|
+
/**
|
|
846
|
+
* The angular part of the joint’s local frame relative to the second rigid-body it is attached to.
|
|
847
|
+
*/
|
|
848
|
+
jointFrameX2(handle: number): RawRotation;
|
|
849
|
+
/**
|
|
850
|
+
* Are the limits for this joint enabled?
|
|
851
|
+
*/
|
|
852
|
+
jointLimitsEnabled(handle: number, axis: RawJointAxis): boolean;
|
|
853
|
+
/**
|
|
854
|
+
* If this is a prismatic joint, returns its upper limit.
|
|
855
|
+
*/
|
|
856
|
+
jointLimitsMax(handle: number, axis: RawJointAxis): number;
|
|
857
|
+
/**
|
|
858
|
+
* Return the lower limit along the given joint axis.
|
|
859
|
+
*/
|
|
860
|
+
jointLimitsMin(handle: number, axis: RawJointAxis): number;
|
|
861
|
+
/**
|
|
862
|
+
* Sets whether contacts are enabled between the rigid-bodies attached by this joint.
|
|
863
|
+
*/
|
|
864
|
+
jointSetContactsEnabled(handle: number, enabled: boolean): void;
|
|
865
|
+
/**
|
|
866
|
+
* The type of this joint.
|
|
867
|
+
*/
|
|
868
|
+
jointType(handle: number): RawJointType;
|
|
869
|
+
constructor();
|
|
870
|
+
remove(handle: number, wakeUp: boolean): void;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
export class RawNarrowPhase {
|
|
874
|
+
free(): void;
|
|
875
|
+
[Symbol.dispose](): void;
|
|
876
|
+
contact_pair(handle1: number, handle2: number): RawContactPair | undefined;
|
|
877
|
+
contact_pairs_with(handle1: number, f: Function): void;
|
|
878
|
+
intersection_pair(handle1: number, handle2: number): boolean;
|
|
879
|
+
intersection_pairs_with(handle1: number, f: Function): void;
|
|
880
|
+
constructor();
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
export class RawPhysicsPipeline {
|
|
884
|
+
free(): void;
|
|
885
|
+
[Symbol.dispose](): void;
|
|
886
|
+
is_profiler_enabled(): boolean;
|
|
887
|
+
constructor();
|
|
888
|
+
set_profiler_enabled(enabled: boolean): void;
|
|
889
|
+
stepWithEvents(gravity: RawVector, integrationParameters: RawIntegrationParameters, islands: RawIslandManager, broadPhase: RawBroadPhase, narrowPhase: RawNarrowPhase, bodies: RawRigidBodySet, colliders: RawColliderSet, softBodies: RawSoftBodySet, joints: RawImpulseJointSet, articulations: RawMultibodyJointSet, ccd_solver: RawCCDSolver, eventQueue: RawEventQueue, hookObject: object, hookFilterContactPair: Function, hookFilterIntersectionPair: Function): void;
|
|
890
|
+
step(gravity: RawVector, integrationParameters: RawIntegrationParameters, islands: RawIslandManager, broadPhase: RawBroadPhase, narrowPhase: RawNarrowPhase, bodies: RawRigidBodySet, colliders: RawColliderSet, softBodies: RawSoftBodySet, joints: RawImpulseJointSet, articulations: RawMultibodyJointSet, ccd_solver: RawCCDSolver): void;
|
|
891
|
+
timing_broad_phase(): number;
|
|
892
|
+
timing_ccd(): number;
|
|
893
|
+
timing_ccd_broad_phase(): number;
|
|
894
|
+
timing_ccd_narrow_phase(): number;
|
|
895
|
+
timing_ccd_solver(): number;
|
|
896
|
+
timing_ccd_toi_computation(): number;
|
|
897
|
+
timing_collision_detection(): number;
|
|
898
|
+
timing_island_construction(): number;
|
|
899
|
+
timing_narrow_phase(): number;
|
|
900
|
+
timing_solver(): number;
|
|
901
|
+
timing_step(): number;
|
|
902
|
+
timing_user_changes(): number;
|
|
903
|
+
timing_velocity_assembly(): number;
|
|
904
|
+
timing_velocity_resolution(): number;
|
|
905
|
+
timing_velocity_update(): number;
|
|
906
|
+
timing_velocity_writeback(): number;
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
export class RawPidController {
|
|
910
|
+
free(): void;
|
|
911
|
+
[Symbol.dispose](): void;
|
|
912
|
+
angular_correction(dt: number, bodies: RawRigidBodySet, rb_handle: number, target_rotation: RawRotation, target_angvel: RawVector, scratch_buffer: Float32Array): void;
|
|
913
|
+
apply_angular_correction(dt: number, bodies: RawRigidBodySet, rb_handle: number, target_rotation: RawRotation, target_angvel: RawVector): void;
|
|
914
|
+
apply_linear_correction(dt: number, bodies: RawRigidBodySet, rb_handle: number, target_translation: RawVector, target_linvel: RawVector): void;
|
|
915
|
+
linear_correction(dt: number, bodies: RawRigidBodySet, rb_handle: number, target_translation: RawVector, target_linvel: RawVector, scratch_buffer: Float32Array): void;
|
|
916
|
+
constructor(kp: number, ki: number, kd: number, axes_mask: number);
|
|
917
|
+
reset_integrals(): void;
|
|
918
|
+
set_axes_mask(axes_mask: number): void;
|
|
919
|
+
set_kd(kd: number, axes: number): void;
|
|
920
|
+
set_ki(ki: number, axes: number): void;
|
|
921
|
+
set_kp(kp: number, axes: number): void;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
export class RawPointColliderProjection {
|
|
925
|
+
private constructor();
|
|
926
|
+
free(): void;
|
|
927
|
+
[Symbol.dispose](): void;
|
|
928
|
+
colliderHandle(): number;
|
|
929
|
+
featureId(): number | undefined;
|
|
930
|
+
featureType(): RawFeatureType;
|
|
931
|
+
isInside(): boolean;
|
|
932
|
+
/**
|
|
933
|
+
* Writes the projected point components into the given scratch buffer.
|
|
934
|
+
*/
|
|
935
|
+
point(scratch_buffer: Float32Array): void;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
export class RawPointProjection {
|
|
939
|
+
private constructor();
|
|
940
|
+
free(): void;
|
|
941
|
+
[Symbol.dispose](): void;
|
|
942
|
+
isInside(): boolean;
|
|
943
|
+
/**
|
|
944
|
+
* Writes the projected point components into the given scratch buffer.
|
|
945
|
+
*/
|
|
946
|
+
point(scratch_buffer: Float32Array): void;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
export class RawRayColliderHit {
|
|
950
|
+
private constructor();
|
|
951
|
+
free(): void;
|
|
952
|
+
[Symbol.dispose](): void;
|
|
953
|
+
colliderHandle(): number;
|
|
954
|
+
timeOfImpact(): number;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
export class RawRayColliderIntersection {
|
|
958
|
+
private constructor();
|
|
959
|
+
free(): void;
|
|
960
|
+
[Symbol.dispose](): void;
|
|
961
|
+
colliderHandle(): number;
|
|
962
|
+
featureId(): number | undefined;
|
|
963
|
+
featureType(): RawFeatureType;
|
|
964
|
+
/**
|
|
965
|
+
* Writes the hit normal components into the given scratch buffer.
|
|
966
|
+
*/
|
|
967
|
+
normal(scratch_buffer: Float32Array): void;
|
|
968
|
+
time_of_impact(): number;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
export class RawRayIntersection {
|
|
972
|
+
private constructor();
|
|
973
|
+
free(): void;
|
|
974
|
+
[Symbol.dispose](): void;
|
|
975
|
+
featureId(): number | undefined;
|
|
976
|
+
featureType(): RawFeatureType;
|
|
977
|
+
/**
|
|
978
|
+
* Writes the hit normal components into the given scratch buffer.
|
|
979
|
+
*/
|
|
980
|
+
normal(scratch_buffer: Float32Array): void;
|
|
981
|
+
time_of_impact(): number;
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
export class RawRigidBodySet {
|
|
985
|
+
free(): void;
|
|
986
|
+
[Symbol.dispose](): void;
|
|
987
|
+
/**
|
|
988
|
+
* Checks if a rigid-body with the given integer handle exists.
|
|
989
|
+
*/
|
|
990
|
+
contains(handle: number): boolean;
|
|
991
|
+
createRigidBody(enabled: boolean, translation: RawVector, rotation: RawRotation, gravityScale: number, mass: number, massOnly: boolean, centerOfMass: RawVector, linvel: RawVector, angvel: RawVector, principalAngularInertia: RawVector, angularInertiaFrame: RawRotation, translationEnabledX: boolean, translationEnabledY: boolean, translationEnabledZ: boolean, rotationEnabledX: boolean, rotationEnabledY: boolean, rotationEnabledZ: boolean, linearDamping: number, angularDamping: number, rb_type: RawRigidBodyType, canSleep: boolean, sleeping: boolean, softCcdPrediction: number, ccdEnabled: boolean, dominanceGroup: number, additional_solver_iterations: number, additional_pgs_iterations: number): number;
|
|
992
|
+
/**
|
|
993
|
+
* Applies the given JavaScript function to the integer handle of each rigid-body managed by this set.
|
|
994
|
+
*
|
|
995
|
+
* # Parameters
|
|
996
|
+
* - `f(handle)`: the function to apply to the integer handle of each rigid-body managed by this set. Called as `f(collider)`.
|
|
997
|
+
*/
|
|
998
|
+
forEachRigidBodyHandle(f: Function): void;
|
|
999
|
+
/**
|
|
1000
|
+
* The number of rigid-bodies on this set.
|
|
1001
|
+
*/
|
|
1002
|
+
len(): number;
|
|
1003
|
+
constructor();
|
|
1004
|
+
propagateModifiedBodyPositionsToColliders(colliders: RawColliderSet): void;
|
|
1005
|
+
/**
|
|
1006
|
+
* Adds a force at the given world-space point of this rigid-body.
|
|
1007
|
+
*
|
|
1008
|
+
* # Parameters
|
|
1009
|
+
* - `force`: the world-space force to apply on the rigid-body.
|
|
1010
|
+
* - `point`: the world-space point where the impulse is to be applied on the rigid-body.
|
|
1011
|
+
* - `wakeUp`: should the rigid-body be automatically woken-up?
|
|
1012
|
+
*/
|
|
1013
|
+
rbAddForceAtPoint(handle: number, force: RawVector, point: RawVector, wakeUp: boolean): void;
|
|
1014
|
+
/**
|
|
1015
|
+
* Adds a force at the center-of-mass of this rigid-body.
|
|
1016
|
+
*
|
|
1017
|
+
* # Parameters
|
|
1018
|
+
* - `force`: the world-space force to apply on the rigid-body.
|
|
1019
|
+
* - `wakeUp`: should the rigid-body be automatically woken-up?
|
|
1020
|
+
*/
|
|
1021
|
+
rbAddForce(handle: number, force: RawVector, wakeUp: boolean): void;
|
|
1022
|
+
/**
|
|
1023
|
+
* Adds a torque at the center-of-mass of this rigid-body.
|
|
1024
|
+
*
|
|
1025
|
+
* # Parameters
|
|
1026
|
+
* - `torque`: the world-space torque to apply on the rigid-body.
|
|
1027
|
+
* - `wakeUp`: should the rigid-body be automatically woken-up?
|
|
1028
|
+
*/
|
|
1029
|
+
rbAddTorque(handle: number, torque: RawVector, wakeUp: boolean): void;
|
|
1030
|
+
rbAdditionalPgsIterations(handle: number): number;
|
|
1031
|
+
rbAdditionalSolverIterations(handle: number): number;
|
|
1032
|
+
/**
|
|
1033
|
+
* The angular damping coefficient of this rigid-body.
|
|
1034
|
+
*/
|
|
1035
|
+
rbAngularDamping(handle: number): number;
|
|
1036
|
+
/**
|
|
1037
|
+
* The angular velocity of this rigid-body.
|
|
1038
|
+
*
|
|
1039
|
+
* # Parameters
|
|
1040
|
+
* - `scratch_buffer`: The array to be populated.
|
|
1041
|
+
*/
|
|
1042
|
+
rbAngvel(handle: number, scratch_buffer: Float32Array): void;
|
|
1043
|
+
/**
|
|
1044
|
+
* Applies an impulse at the given world-space point of this rigid-body.
|
|
1045
|
+
*
|
|
1046
|
+
* # Parameters
|
|
1047
|
+
* - `impulse`: the world-space impulse to apply on the rigid-body.
|
|
1048
|
+
* - `point`: the world-space point where the impulse is to be applied on the rigid-body.
|
|
1049
|
+
* - `wakeUp`: should the rigid-body be automatically woken-up?
|
|
1050
|
+
*/
|
|
1051
|
+
rbApplyImpulseAtPoint(handle: number, impulse: RawVector, point: RawVector, wakeUp: boolean): void;
|
|
1052
|
+
/**
|
|
1053
|
+
* Applies an impulse at the center-of-mass of this rigid-body.
|
|
1054
|
+
*
|
|
1055
|
+
* # Parameters
|
|
1056
|
+
* - `impulse`: the world-space impulse to apply on the rigid-body.
|
|
1057
|
+
* - `wakeUp`: should the rigid-body be automatically woken-up?
|
|
1058
|
+
*/
|
|
1059
|
+
rbApplyImpulse(handle: number, impulse: RawVector, wakeUp: boolean): void;
|
|
1060
|
+
/**
|
|
1061
|
+
* Applies an impulsive torque at the center-of-mass of this rigid-body.
|
|
1062
|
+
*
|
|
1063
|
+
* # Parameters
|
|
1064
|
+
* - `torque impulse`: the world-space torque impulse to apply on the rigid-body.
|
|
1065
|
+
* - `wakeUp`: should the rigid-body be automatically woken-up?
|
|
1066
|
+
*/
|
|
1067
|
+
rbApplyTorqueImpulse(handle: number, torque_impulse: RawVector, wakeUp: boolean): void;
|
|
1068
|
+
/**
|
|
1069
|
+
* The status of this rigid-body: fixed, dynamic, or kinematic.
|
|
1070
|
+
*/
|
|
1071
|
+
rbBodyType(handle: number): RawRigidBodyType;
|
|
1072
|
+
/**
|
|
1073
|
+
* Retrieves the `i-th` collider attached to this rigid-body.
|
|
1074
|
+
*
|
|
1075
|
+
* # Parameters
|
|
1076
|
+
* - `at`: The index of the collider to retrieve. Must be a number in `[0, this.numColliders()[`.
|
|
1077
|
+
* This index is **not** the same as the unique identifier of the collider.
|
|
1078
|
+
*/
|
|
1079
|
+
rbCollider(handle: number, at: number): number;
|
|
1080
|
+
rbDominanceGroup(handle: number): number;
|
|
1081
|
+
/**
|
|
1082
|
+
* The effective world-space angular inertia (that takes the potential rotation locking into account) of
|
|
1083
|
+
* this rigid-body.
|
|
1084
|
+
*
|
|
1085
|
+
* # Parameters
|
|
1086
|
+
* - `scratch_buffer`: The array to be populated.
|
|
1087
|
+
*/
|
|
1088
|
+
rbEffectiveAngularInertia(handle: number, scratch_buffer: Float32Array): void;
|
|
1089
|
+
/**
|
|
1090
|
+
* The inverse mass taking into account translation locking.
|
|
1091
|
+
*
|
|
1092
|
+
* # Parameters
|
|
1093
|
+
* - `scratch_buffer`: The array to be populated.
|
|
1094
|
+
*/
|
|
1095
|
+
rbEffectiveInvMass(handle: number, scratch_buffer: Float32Array): void;
|
|
1096
|
+
/**
|
|
1097
|
+
* The world-space inverse angular inertia tensor of the rigid-body,
|
|
1098
|
+
* taking into account rotation locking.
|
|
1099
|
+
*
|
|
1100
|
+
* # Parameters
|
|
1101
|
+
* - `scratch_buffer`: The array to be populated.
|
|
1102
|
+
*/
|
|
1103
|
+
rbEffectiveWorldInvInertia(handle: number, scratch_buffer: Float32Array): void;
|
|
1104
|
+
rbEnableCcd(handle: number, enabled: boolean): void;
|
|
1105
|
+
rbGravityScale(handle: number): number;
|
|
1106
|
+
/**
|
|
1107
|
+
* The inverse of the mass of a rigid-body.
|
|
1108
|
+
*
|
|
1109
|
+
* If this is zero, the rigid-body is assumed to have infinite mass.
|
|
1110
|
+
*/
|
|
1111
|
+
rbInvMass(handle: number): number;
|
|
1112
|
+
/**
|
|
1113
|
+
* The inverse of the principal angular inertia of the rigid-body.
|
|
1114
|
+
*
|
|
1115
|
+
* Components set to zero are assumed to be infinite along the corresponding principal axis.
|
|
1116
|
+
*
|
|
1117
|
+
* # Parameters
|
|
1118
|
+
* - `scratch_buffer`: The array to be populated.
|
|
1119
|
+
*/
|
|
1120
|
+
rbInvPrincipalInertia(handle: number, scratch_buffer: Float32Array): void;
|
|
1121
|
+
/**
|
|
1122
|
+
* Is Continuous Collision Detection enabled for this rigid-body?
|
|
1123
|
+
*/
|
|
1124
|
+
rbIsCcdEnabled(handle: number): boolean;
|
|
1125
|
+
/**
|
|
1126
|
+
* Is this rigid-body dynamic?
|
|
1127
|
+
*/
|
|
1128
|
+
rbIsDynamic(handle: number): boolean;
|
|
1129
|
+
rbIsEnabled(handle: number): boolean;
|
|
1130
|
+
/**
|
|
1131
|
+
* Is this rigid-body fixed?
|
|
1132
|
+
*/
|
|
1133
|
+
rbIsFixed(handle: number): boolean;
|
|
1134
|
+
/**
|
|
1135
|
+
* Is this rigid-body kinematic?
|
|
1136
|
+
*/
|
|
1137
|
+
rbIsKinematic(handle: number): boolean;
|
|
1138
|
+
/**
|
|
1139
|
+
* Is the velocity of this rigid-body not zero?
|
|
1140
|
+
*/
|
|
1141
|
+
rbIsMoving(handle: number): boolean;
|
|
1142
|
+
/**
|
|
1143
|
+
* Is this rigid-body sleeping?
|
|
1144
|
+
*/
|
|
1145
|
+
rbIsSleeping(handle: number): boolean;
|
|
1146
|
+
/**
|
|
1147
|
+
* Is this rigid-body the proxy of a soft-body cluster?
|
|
1148
|
+
*/
|
|
1149
|
+
rbIsSoftFrame(handle: number): boolean;
|
|
1150
|
+
/**
|
|
1151
|
+
* The linear damping coefficient of this rigid-body.
|
|
1152
|
+
*/
|
|
1153
|
+
rbLinearDamping(handle: number): number;
|
|
1154
|
+
/**
|
|
1155
|
+
* The linear velocity of this rigid-body.
|
|
1156
|
+
*
|
|
1157
|
+
* # Parameters
|
|
1158
|
+
* - `scratch_buffer`: The array to be populated.
|
|
1159
|
+
*/
|
|
1160
|
+
rbLinvel(handle: number, scratch_buffer: Float32Array): void;
|
|
1161
|
+
/**
|
|
1162
|
+
* The center of mass of a rigid-body expressed in its local-space.
|
|
1163
|
+
*
|
|
1164
|
+
* # Parameters
|
|
1165
|
+
* - `scratch_buffer`: The array to be populated.
|
|
1166
|
+
*/
|
|
1167
|
+
rbLocalCom(handle: number, scratch_buffer: Float32Array): void;
|
|
1168
|
+
rbLockRotations(handle: number, locked: boolean, wake_up: boolean): void;
|
|
1169
|
+
rbLockTranslations(handle: number, locked: boolean, wake_up: boolean): void;
|
|
1170
|
+
/**
|
|
1171
|
+
* The mass of this rigid-body.
|
|
1172
|
+
*/
|
|
1173
|
+
rbMass(handle: number): number;
|
|
1174
|
+
/**
|
|
1175
|
+
* The world-space predicted orientation of this rigid-body.
|
|
1176
|
+
*
|
|
1177
|
+
* If this rigid-body is kinematic this value is set by the `setNextKinematicRotation`
|
|
1178
|
+
* method and is used for estimating the kinematic body velocity at the next timestep.
|
|
1179
|
+
* For non-kinematic bodies, this value is currently unspecified.
|
|
1180
|
+
*
|
|
1181
|
+
* # Parameters
|
|
1182
|
+
* - `scratch_buffer`: The array to be populated.
|
|
1183
|
+
*/
|
|
1184
|
+
rbNextRotation(handle: number, scratch_buffer: Float32Array): void;
|
|
1185
|
+
/**
|
|
1186
|
+
* The world-space predicted translation of this rigid-body.
|
|
1187
|
+
*
|
|
1188
|
+
* If this rigid-body is kinematic this value is set by the `setNextKinematicTranslation`
|
|
1189
|
+
* method and is used for estimating the kinematic body velocity at the next timestep.
|
|
1190
|
+
* For non-kinematic bodies, this value is currently unspecified.
|
|
1191
|
+
*
|
|
1192
|
+
* # Parameters
|
|
1193
|
+
* - `scratch_buffer`: The array to be populated.
|
|
1194
|
+
*/
|
|
1195
|
+
rbNextTranslation(handle: number, scratch_buffer: Float32Array): void;
|
|
1196
|
+
/**
|
|
1197
|
+
* The number of colliders attached to this rigid-body.
|
|
1198
|
+
*/
|
|
1199
|
+
rbNumColliders(handle: number): number;
|
|
1200
|
+
/**
|
|
1201
|
+
* The principal vectors of the local angular inertia tensor of the rigid-body.
|
|
1202
|
+
*
|
|
1203
|
+
* # Parameters
|
|
1204
|
+
* - `scratch_buffer`: The array to be populated.
|
|
1205
|
+
*/
|
|
1206
|
+
rbPrincipalInertiaLocalFrame(handle: number, scratch_buffer: Float32Array): void;
|
|
1207
|
+
/**
|
|
1208
|
+
* The angular inertia along the principal inertia axes of the rigid-body.
|
|
1209
|
+
*
|
|
1210
|
+
* # Parameters
|
|
1211
|
+
* - `scratch_buffer`: The array to be populated.
|
|
1212
|
+
*/
|
|
1213
|
+
rbPrincipalInertia(handle: number, scratch_buffer: Float32Array): void;
|
|
1214
|
+
rbRecomputeMassPropertiesFromColliders(handle: number, colliders: RawColliderSet): void;
|
|
1215
|
+
/**
|
|
1216
|
+
* Resets to zero all user-added forces added to this rigid-body.
|
|
1217
|
+
*/
|
|
1218
|
+
rbResetForces(handle: number, wakeUp: boolean): void;
|
|
1219
|
+
/**
|
|
1220
|
+
* Resets to zero all user-added torques added to this rigid-body.
|
|
1221
|
+
*/
|
|
1222
|
+
rbResetTorques(handle: number, wakeUp: boolean): void;
|
|
1223
|
+
/**
|
|
1224
|
+
* The world-space orientation of this rigid-body.
|
|
1225
|
+
*
|
|
1226
|
+
* # Parameters
|
|
1227
|
+
* - `scratch_buffer`: The array to be populated.
|
|
1228
|
+
*/
|
|
1229
|
+
rbRotation(handle: number, scratch_buffer: Float32Array): void;
|
|
1230
|
+
rbSetAdditionalMassProperties(handle: number, mass: number, centerOfMass: RawVector, principalAngularInertia: RawVector, angularInertiaFrame: RawRotation, wake_up: boolean): void;
|
|
1231
|
+
rbSetAdditionalMass(handle: number, mass: number, wake_up: boolean): void;
|
|
1232
|
+
rbSetAdditionalPgsIterations(handle: number, iters: number): void;
|
|
1233
|
+
rbSetAdditionalSolverIterations(handle: number, iters: number): void;
|
|
1234
|
+
rbSetAngularDamping(handle: number, factor: number): void;
|
|
1235
|
+
/**
|
|
1236
|
+
* Sets the angular velocity of this rigid-body.
|
|
1237
|
+
*/
|
|
1238
|
+
rbSetAngvel(handle: number, angvel: RawVector, wakeUp: boolean): void;
|
|
1239
|
+
/**
|
|
1240
|
+
* Set a new status for this rigid-body: fixed, dynamic, or kinematic.
|
|
1241
|
+
*/
|
|
1242
|
+
rbSetBodyType(handle: number, status: RawRigidBodyType, wake_up: boolean): void;
|
|
1243
|
+
rbSetDominanceGroup(handle: number, group: number): void;
|
|
1244
|
+
rbSetEnabledRotations(handle: number, allow_x: boolean, allow_y: boolean, allow_z: boolean, wake_up: boolean): void;
|
|
1245
|
+
rbSetEnabledTranslations(handle: number, allow_x: boolean, allow_y: boolean, allow_z: boolean, wake_up: boolean): void;
|
|
1246
|
+
rbSetEnabled(handle: number, enabled: boolean): void;
|
|
1247
|
+
rbSetGravityScale(handle: number, factor: number, wakeUp: boolean): void;
|
|
1248
|
+
rbSetLinearDamping(handle: number, factor: number): void;
|
|
1249
|
+
/**
|
|
1250
|
+
* Sets the linear velocity of this rigid-body.
|
|
1251
|
+
*/
|
|
1252
|
+
rbSetLinvel(handle: number, linvel: RawVector, wakeUp: boolean): void;
|
|
1253
|
+
/**
|
|
1254
|
+
* If this rigid body is kinematic, sets its future rotation after the next timestep integration.
|
|
1255
|
+
*
|
|
1256
|
+
* This should be used instead of `rigidBody.setRotation` to make the dynamic object
|
|
1257
|
+
* interacting with this kinematic body behave as expected. Internally, Rapier will compute
|
|
1258
|
+
* an artificial velocity for this rigid-body from its current position and its next kinematic
|
|
1259
|
+
* position. This velocity will be used to compute forces on dynamic bodies interacting with
|
|
1260
|
+
* this body.
|
|
1261
|
+
*
|
|
1262
|
+
* # Parameters
|
|
1263
|
+
* - `x`: the first vector component of the quaternion.
|
|
1264
|
+
* - `y`: the second vector component of the quaternion.
|
|
1265
|
+
* - `z`: the third vector component of the quaternion.
|
|
1266
|
+
* - `w`: the scalar component of the quaternion.
|
|
1267
|
+
*/
|
|
1268
|
+
rbSetNextKinematicRotation(handle: number, x: number, y: number, z: number, w: number): void;
|
|
1269
|
+
/**
|
|
1270
|
+
* If this rigid body is kinematic, sets its future translation after the next timestep integration.
|
|
1271
|
+
*
|
|
1272
|
+
* This should be used instead of `rigidBody.setTranslation` to make the dynamic object
|
|
1273
|
+
* interacting with this kinematic body behave as expected. Internally, Rapier will compute
|
|
1274
|
+
* an artificial velocity for this rigid-body from its current position and its next kinematic
|
|
1275
|
+
* position. This velocity will be used to compute forces on dynamic bodies interacting with
|
|
1276
|
+
* this body.
|
|
1277
|
+
*
|
|
1278
|
+
* # Parameters
|
|
1279
|
+
* - `x`: the world-space position of the rigid-body along the `x` axis.
|
|
1280
|
+
* - `y`: the world-space position of the rigid-body along the `y` axis.
|
|
1281
|
+
* - `z`: the world-space position of the rigid-body along the `z` axis.
|
|
1282
|
+
*/
|
|
1283
|
+
rbSetNextKinematicTranslation(handle: number, x: number, y: number, z: number): void;
|
|
1284
|
+
/**
|
|
1285
|
+
* Sets the rotation quaternion of this rigid-body.
|
|
1286
|
+
*
|
|
1287
|
+
* This does nothing if a zero quaternion is provided.
|
|
1288
|
+
*
|
|
1289
|
+
* # Parameters
|
|
1290
|
+
* - `x`: the first vector component of the quaternion.
|
|
1291
|
+
* - `y`: the second vector component of the quaternion.
|
|
1292
|
+
* - `z`: the third vector component of the quaternion.
|
|
1293
|
+
* - `w`: the scalar component of the quaternion.
|
|
1294
|
+
* - `wakeUp`: forces the rigid-body to wake-up so it is properly affected by forces if it
|
|
1295
|
+
* wasn't moving before modifying its position.
|
|
1296
|
+
*/
|
|
1297
|
+
rbSetRotation(handle: number, x: number, y: number, z: number, w: number, wakeUp: boolean): void;
|
|
1298
|
+
rbSetSoftCcdPrediction(handle: number, prediction: number): void;
|
|
1299
|
+
/**
|
|
1300
|
+
* Sets the translation of this rigid-body.
|
|
1301
|
+
*
|
|
1302
|
+
* # Parameters
|
|
1303
|
+
* - `x`: the world-space position of the rigid-body along the `x` axis.
|
|
1304
|
+
* - `y`: the world-space position of the rigid-body along the `y` axis.
|
|
1305
|
+
* - `z`: the world-space position of the rigid-body along the `z` axis.
|
|
1306
|
+
* - `wakeUp`: forces the rigid-body to wake-up so it is properly affected by forces if it
|
|
1307
|
+
* wasn't moving before modifying its position.
|
|
1308
|
+
*/
|
|
1309
|
+
rbSetTranslation(handle: number, x: number, y: number, z: number, wakeUp: boolean): void;
|
|
1310
|
+
/**
|
|
1311
|
+
* Sets the user-defined 32-bit integer of this rigid-body.
|
|
1312
|
+
*
|
|
1313
|
+
* # Parameters
|
|
1314
|
+
* - `data`: an arbitrary user-defined 32-bit integer.
|
|
1315
|
+
*/
|
|
1316
|
+
rbSetUserData(handle: number, data: number): void;
|
|
1317
|
+
/**
|
|
1318
|
+
* Put the given rigid-body to sleep.
|
|
1319
|
+
*/
|
|
1320
|
+
rbSleep(handle: number): void;
|
|
1321
|
+
/**
|
|
1322
|
+
* The soft body this rigid-body is a cluster proxy of, if any.
|
|
1323
|
+
*/
|
|
1324
|
+
rbSoftBody(handle: number): number | undefined;
|
|
1325
|
+
rbSoftCcdPrediction(handle: number): number;
|
|
1326
|
+
/**
|
|
1327
|
+
* The index of the cluster this proxy stands for in its soft body, if any.
|
|
1328
|
+
*/
|
|
1329
|
+
rbSoftCluster(handle: number): number | undefined;
|
|
1330
|
+
/**
|
|
1331
|
+
* The world-space translation of this rigid-body.
|
|
1332
|
+
*
|
|
1333
|
+
* # Parameters
|
|
1334
|
+
* - `scratch_buffer`: The array to be populated.
|
|
1335
|
+
*/
|
|
1336
|
+
rbTranslation(handle: number, scratch_buffer: Float32Array): void;
|
|
1337
|
+
/**
|
|
1338
|
+
* An arbitrary user-defined 32-bit integer
|
|
1339
|
+
*/
|
|
1340
|
+
rbUserData(handle: number): number;
|
|
1341
|
+
/**
|
|
1342
|
+
* Retrieves the constant force(s) the user added to this rigid-body.
|
|
1343
|
+
* Returns zero if the rigid-body is not dynamic.
|
|
1344
|
+
*
|
|
1345
|
+
* # Parameters
|
|
1346
|
+
* - `scratch_buffer`: The array to be populated.
|
|
1347
|
+
*/
|
|
1348
|
+
rbUserForce(handle: number, scratch_buffer: Float32Array): void;
|
|
1349
|
+
/**
|
|
1350
|
+
* Retrieves the constant torque(s) the user added to this rigid-body.
|
|
1351
|
+
* Returns zero if the rigid-body is not dynamic.
|
|
1352
|
+
*
|
|
1353
|
+
* # Parameters
|
|
1354
|
+
* - `scratch_buffer`: The array to be populated.
|
|
1355
|
+
*/
|
|
1356
|
+
rbUserTorque(handle: number, scratch_buffer: Float32Array): void;
|
|
1357
|
+
/**
|
|
1358
|
+
* The velocity of the given world-space point on this rigid-body.
|
|
1359
|
+
*
|
|
1360
|
+
* # Parameters
|
|
1361
|
+
* - `scratch_buffer`: The array to be populated.
|
|
1362
|
+
*/
|
|
1363
|
+
rbVelocityAtPoint(handle: number, point: RawVector, scratch_buffer: Float32Array): void;
|
|
1364
|
+
/**
|
|
1365
|
+
* Wakes this rigid-body up.
|
|
1366
|
+
*
|
|
1367
|
+
* A dynamic rigid-body that does not move during several consecutive frames will
|
|
1368
|
+
* be put to sleep by the physics engine, i.e., it will stop being simulated in order
|
|
1369
|
+
* to avoid useless computations.
|
|
1370
|
+
* This method forces a sleeping rigid-body to wake-up. This is useful, e.g., before modifying
|
|
1371
|
+
* the position of a dynamic body so that it is properly simulated afterwards.
|
|
1372
|
+
*/
|
|
1373
|
+
rbWakeUp(handle: number): void;
|
|
1374
|
+
/**
|
|
1375
|
+
* The world-space center of mass of the rigid-body.
|
|
1376
|
+
*
|
|
1377
|
+
* # Parameters
|
|
1378
|
+
* - `scratch_buffer`: The array to be populated.
|
|
1379
|
+
*/
|
|
1380
|
+
rbWorldCom(handle: number, scratch_buffer: Float32Array): void;
|
|
1381
|
+
remove(handle: number, islands: RawIslandManager, colliders: RawColliderSet, softBodies: RawSoftBodySet, joints: RawImpulseJointSet, articulations: RawMultibodyJointSet): void;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
export enum RawRigidBodyType {
|
|
1385
|
+
Dynamic = 0,
|
|
1386
|
+
Fixed = 1,
|
|
1387
|
+
KinematicPositionBased = 2,
|
|
1388
|
+
KinematicVelocityBased = 3,
|
|
1389
|
+
SoftFrame = 4,
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
/**
|
|
1393
|
+
* A rotation quaternion.
|
|
1394
|
+
*/
|
|
1395
|
+
export class RawRotation {
|
|
1396
|
+
free(): void;
|
|
1397
|
+
[Symbol.dispose](): void;
|
|
1398
|
+
/**
|
|
1399
|
+
* The identity quaternion.
|
|
1400
|
+
*/
|
|
1401
|
+
static identity(): RawRotation;
|
|
1402
|
+
constructor(x: number, y: number, z: number, w: number);
|
|
1403
|
+
/**
|
|
1404
|
+
* The `w` component of this quaternion.
|
|
1405
|
+
*/
|
|
1406
|
+
readonly w: number;
|
|
1407
|
+
/**
|
|
1408
|
+
* The `x` component of this quaternion.
|
|
1409
|
+
*/
|
|
1410
|
+
readonly x: number;
|
|
1411
|
+
/**
|
|
1412
|
+
* The `y` component of this quaternion.
|
|
1413
|
+
*/
|
|
1414
|
+
readonly y: number;
|
|
1415
|
+
/**
|
|
1416
|
+
* The `z` component of this quaternion.
|
|
1417
|
+
*/
|
|
1418
|
+
readonly z: number;
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
export class RawSdpMatrix3 {
|
|
1422
|
+
private constructor();
|
|
1423
|
+
free(): void;
|
|
1424
|
+
[Symbol.dispose](): void;
|
|
1425
|
+
/**
|
|
1426
|
+
* Row major list of the upper-triangular part of the symmetric matrix.
|
|
1427
|
+
*/
|
|
1428
|
+
elements(): Float32Array;
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
export class RawSerializationPipeline {
|
|
1432
|
+
free(): void;
|
|
1433
|
+
[Symbol.dispose](): void;
|
|
1434
|
+
deserializeAll(data: Uint8Array): RawDeserializedWorld | undefined;
|
|
1435
|
+
constructor();
|
|
1436
|
+
serializeAll(gravity: RawVector, integrationParameters: RawIntegrationParameters, islands: RawIslandManager, broadPhase: RawBroadPhase, narrowPhase: RawNarrowPhase, bodies: RawRigidBodySet, colliders: RawColliderSet, soft_bodies: RawSoftBodySet, impulse_joints: RawImpulseJointSet, multibody_joints: RawMultibodyJointSet): Uint8Array | undefined;
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
export class RawShape {
|
|
1440
|
+
private constructor();
|
|
1441
|
+
free(): void;
|
|
1442
|
+
[Symbol.dispose](): void;
|
|
1443
|
+
static ball(radius: number): RawShape;
|
|
1444
|
+
static capsule(halfHeight: number, radius: number): RawShape;
|
|
1445
|
+
castRayAndGetNormal(shapePos: RawVector, shapeRot: RawRotation, rayOrig: RawVector, rayDir: RawVector, maxToi: number, solid: boolean): RawRayIntersection | undefined;
|
|
1446
|
+
castRay(shapePos: RawVector, shapeRot: RawRotation, rayOrig: RawVector, rayDir: RawVector, maxToi: number, solid: boolean): number;
|
|
1447
|
+
castShape(shapePos1: RawVector, shapeRot1: RawRotation, shapeVel1: RawVector, shape2: RawShape, shapePos2: RawVector, shapeRot2: RawRotation, shapeVel2: RawVector, target_distance: number, maxToi: number, stop_at_penetration: boolean): RawShapeCastHit | undefined;
|
|
1448
|
+
compoundFlags(): number | undefined;
|
|
1449
|
+
compoundLen(): number | undefined;
|
|
1450
|
+
compoundRotation(index: number): RawRotation | undefined;
|
|
1451
|
+
compoundShape(index: number): RawShape | undefined;
|
|
1452
|
+
compoundTranslation(index: number): RawVector | undefined;
|
|
1453
|
+
static compound(shapes: RawShape[], positions: Float32Array, rotations: Float32Array, flags: number): RawShape;
|
|
1454
|
+
static cone(halfHeight: number, radius: number): RawShape;
|
|
1455
|
+
contactShape(shapePos1: RawVector, shapeRot1: RawRotation, shape2: RawShape, shapePos2: RawVector, shapeRot2: RawRotation, prediction: number): RawShapeContact | undefined;
|
|
1456
|
+
containsPoint(shapePos: RawVector, shapeRot: RawRotation, point: RawVector): boolean;
|
|
1457
|
+
static convexDecompositionWithParams(vertices: Float32Array, indices: Uint32Array, params: RawVHACDParameters, flags: number): RawShape | undefined;
|
|
1458
|
+
static convexDecomposition(vertices: Float32Array, indices: Uint32Array, flags: number): RawShape | undefined;
|
|
1459
|
+
static convexHull(points: Float32Array): RawShape | undefined;
|
|
1460
|
+
/**
|
|
1461
|
+
* The vertices and indices of the convex hull of this convex polyhedron, recomputed
|
|
1462
|
+
* with `try_convex_hull` so that the result can always be fed back to
|
|
1463
|
+
* `RawShape::convexMesh`.
|
|
1464
|
+
*
|
|
1465
|
+
* This computes the convex hull only once, unlike calling both `vertices()` and
|
|
1466
|
+
* `indices()`.
|
|
1467
|
+
*/
|
|
1468
|
+
convexMeshData(): RawConvexMeshData | undefined;
|
|
1469
|
+
static convexMesh(vertices: Float32Array, indices: Uint32Array): RawShape | undefined;
|
|
1470
|
+
static cuboid(hx: number, hy: number, hz: number): RawShape;
|
|
1471
|
+
static cylinder(halfHeight: number, radius: number): RawShape;
|
|
1472
|
+
halfExtents(): RawVector | undefined;
|
|
1473
|
+
halfHeight(): number | undefined;
|
|
1474
|
+
halfspaceNormal(): RawVector | undefined;
|
|
1475
|
+
static halfspace(normal: RawVector): RawShape;
|
|
1476
|
+
heightFieldFlags(): number | undefined;
|
|
1477
|
+
heightfieldHeights(): Float32Array | undefined;
|
|
1478
|
+
heightfieldNCols(): number | undefined;
|
|
1479
|
+
heightfieldNRows(): number | undefined;
|
|
1480
|
+
heightfieldScale(): RawVector | undefined;
|
|
1481
|
+
static heightfield(nrows: number, ncols: number, heights: Float32Array, scale: RawVector, flags: number): RawShape;
|
|
1482
|
+
indices(): Uint32Array | undefined;
|
|
1483
|
+
intersectsRay(shapePos: RawVector, shapeRot: RawRotation, rayOrig: RawVector, rayDir: RawVector, maxToi: number): boolean;
|
|
1484
|
+
intersectsShape(shapePos1: RawVector, shapeRot1: RawRotation, shape2: RawShape, shapePos2: RawVector, shapeRot2: RawRotation): boolean;
|
|
1485
|
+
polylineFlags(): number | undefined;
|
|
1486
|
+
static polyline(vertices: Float32Array, indices: Uint32Array, flags: number): RawShape;
|
|
1487
|
+
projectPoint(shapePos: RawVector, shapeRot: RawRotation, point: RawVector, solid: boolean): RawPointProjection;
|
|
1488
|
+
radius(): number | undefined;
|
|
1489
|
+
static roundCone(halfHeight: number, radius: number, borderRadius: number): RawShape;
|
|
1490
|
+
static roundConvexHull(points: Float32Array, borderRadius: number): RawShape | undefined;
|
|
1491
|
+
static roundConvexMesh(vertices: Float32Array, indices: Uint32Array, borderRadius: number): RawShape | undefined;
|
|
1492
|
+
static roundCuboid(hx: number, hy: number, hz: number, borderRadius: number): RawShape;
|
|
1493
|
+
static roundCylinder(halfHeight: number, radius: number, borderRadius: number): RawShape;
|
|
1494
|
+
roundRadius(): number | undefined;
|
|
1495
|
+
static roundTriangle(p1: RawVector, p2: RawVector, p3: RawVector, borderRadius: number): RawShape;
|
|
1496
|
+
static segment(p1: RawVector, p2: RawVector): RawShape;
|
|
1497
|
+
shapeType(): RawShapeType;
|
|
1498
|
+
triMeshFlags(): number | undefined;
|
|
1499
|
+
static triangle(p1: RawVector, p2: RawVector, p3: RawVector): RawShape;
|
|
1500
|
+
static trimesh(vertices: Float32Array, indices: Uint32Array, flags: number): RawShape | undefined;
|
|
1501
|
+
/**
|
|
1502
|
+
* The vertices of this shape, if it is vertex-based.
|
|
1503
|
+
*
|
|
1504
|
+
* For convex polyhedra, this returns the vertices of a convex hull recomputed with
|
|
1505
|
+
* `try_convex_hull` (so they may differ in count and order from the points the shape
|
|
1506
|
+
* was built from), ensuring the result can be fed back to `RawShape::convexMesh`.
|
|
1507
|
+
* If both `vertices` and `indices` are needed, prefer `convexMeshData` which computes
|
|
1508
|
+
* the convex hull only once.
|
|
1509
|
+
*/
|
|
1510
|
+
vertices(): Float32Array | undefined;
|
|
1511
|
+
voxelData(): Int32Array | undefined;
|
|
1512
|
+
voxelSize(): RawVector | undefined;
|
|
1513
|
+
static voxelsFromPoints(voxel_size: RawVector, points: Float32Array): RawShape;
|
|
1514
|
+
static voxels(voxel_size: RawVector, grid_coords: Int32Array): RawShape;
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
export class RawShapeCastHit {
|
|
1518
|
+
private constructor();
|
|
1519
|
+
free(): void;
|
|
1520
|
+
[Symbol.dispose](): void;
|
|
1521
|
+
getComponents(scratch_buffer: Float32Array): void;
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
export class RawShapeContact {
|
|
1525
|
+
private constructor();
|
|
1526
|
+
free(): void;
|
|
1527
|
+
[Symbol.dispose](): void;
|
|
1528
|
+
/**
|
|
1529
|
+
* Writes the contact components into the given scratch buffer.
|
|
1530
|
+
*
|
|
1531
|
+
* Layout: `[distance, point1, point2, normal1, normal2]`.
|
|
1532
|
+
*/
|
|
1533
|
+
getComponents(scratch_buffer: Float32Array): void;
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
export enum RawShapeType {
|
|
1537
|
+
Ball = 0,
|
|
1538
|
+
Cuboid = 1,
|
|
1539
|
+
Capsule = 2,
|
|
1540
|
+
Segment = 3,
|
|
1541
|
+
Polyline = 4,
|
|
1542
|
+
Triangle = 5,
|
|
1543
|
+
TriMesh = 6,
|
|
1544
|
+
HeightField = 7,
|
|
1545
|
+
Compound = 8,
|
|
1546
|
+
ConvexPolyhedron = 9,
|
|
1547
|
+
Cylinder = 10,
|
|
1548
|
+
Cone = 11,
|
|
1549
|
+
RoundCuboid = 12,
|
|
1550
|
+
RoundTriangle = 13,
|
|
1551
|
+
RoundCylinder = 14,
|
|
1552
|
+
RoundCone = 15,
|
|
1553
|
+
RoundConvexPolyhedron = 16,
|
|
1554
|
+
HalfSpace = 17,
|
|
1555
|
+
Voxels = 18,
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
export class RawSoftBodyBuilder {
|
|
1559
|
+
free(): void;
|
|
1560
|
+
[Symbol.dispose](): void;
|
|
1561
|
+
addEdges(edges: Uint32Array): void;
|
|
1562
|
+
append(other: RawSoftBodyBuilder): void;
|
|
1563
|
+
cellEdges(): Uint32Array;
|
|
1564
|
+
static clothAnisotropic(origin: RawVector, du: RawVector, dv: RawVector, nu: number, nv: number, warp_frequency: number, warp_damping: number, weft_frequency: number, weft_damping: number, shear_frequency: number, shear_damping: number): RawSoftBodyBuilder;
|
|
1565
|
+
static clothTube(origin: RawVector, axis: RawVector, radius_start: number, radius_end: number, num_around: number, num_along: number): RawSoftBodyBuilder;
|
|
1566
|
+
static cloth(origin: RawVector, du: RawVector, dv: RawVector, nu: number, nv: number): RawSoftBodyBuilder;
|
|
1567
|
+
static cuboid(center: RawVector, half_extents: RawVector, nx: number, ny: number, nz: number): RawSoftBodyBuilder;
|
|
1568
|
+
material(): RawSoftBodyMaterial;
|
|
1569
|
+
/**
|
|
1570
|
+
* A builder over the given world-space particle positions (`DIM` floats per particle), with
|
|
1571
|
+
* no element.
|
|
1572
|
+
*/
|
|
1573
|
+
constructor(positions: Float32Array);
|
|
1574
|
+
numParticles(): number;
|
|
1575
|
+
particlePositions(): Float32Array;
|
|
1576
|
+
static rope(start: RawVector, end: RawVector, num_particles: number): RawSoftBodyBuilder;
|
|
1577
|
+
setAdditionalPgsIterations(iterations: number): void;
|
|
1578
|
+
setAdditionalSolverIterations(iterations: number): void;
|
|
1579
|
+
setBendEdges(edges: Uint32Array): void;
|
|
1580
|
+
setCanSleep(can_sleep: boolean): void;
|
|
1581
|
+
setCellModel(model: RawSoftBodyCellModel): void;
|
|
1582
|
+
setCells(cells: Uint32Array): void;
|
|
1583
|
+
setDihedrals(dihedrals: Uint32Array): void;
|
|
1584
|
+
setDominanceGroup(group: number): void;
|
|
1585
|
+
setEdgeSoftness(edges: Uint32Array, frequencies: Float32Array, dampings: Float32Array): void;
|
|
1586
|
+
setEdgeTearResistance(edges: Uint32Array, resistances: Float32Array): void;
|
|
1587
|
+
setEdges(edges: Uint32Array): void;
|
|
1588
|
+
setGravityScale(scale: number): void;
|
|
1589
|
+
setLinearDamping(damping: number): void;
|
|
1590
|
+
setMass(mass: number): void;
|
|
1591
|
+
setMasses(masses: Float32Array): void;
|
|
1592
|
+
setMaterial(material: RawSoftBodyMaterial): void;
|
|
1593
|
+
setNoSurfaceCollider(): void;
|
|
1594
|
+
setOriented(oriented: boolean): void;
|
|
1595
|
+
setParticleMass(mass: number): void;
|
|
1596
|
+
setParticleRadius(radius: number): void;
|
|
1597
|
+
setPinnedParticles(pinned: Uint32Array): void;
|
|
1598
|
+
setPositions(positions: Float32Array): void;
|
|
1599
|
+
setSelfContacts(enabled: boolean): void;
|
|
1600
|
+
setShapeMatching(enabled: boolean): void;
|
|
1601
|
+
setSkinCollision(enabled: boolean): void;
|
|
1602
|
+
setSkin(vertices: Float32Array, indices: Uint32Array): void;
|
|
1603
|
+
setSoftness(natural_frequency: number, damping_ratio: number): void;
|
|
1604
|
+
setSolver(solver: RawSoftBodySolver): void;
|
|
1605
|
+
/**
|
|
1606
|
+
* The template of the body's colliders: its shape is replaced by the deformable surface,
|
|
1607
|
+
* or by a ball of `particleRadius` for a body colliding through its particles.
|
|
1608
|
+
*/
|
|
1609
|
+
setSurfaceCollider(friction: number, restitution: number, frictionCombineRule: number, restitutionCombineRule: number, isSensor: boolean, collisionGroups: number, solverGroups: number, activeCollisionTypes: number, activeHooks: number, activeEvents: number, contactForceEventThreshold: number, contactSkin: number): void;
|
|
1610
|
+
setSurface(surface: Uint32Array): void;
|
|
1611
|
+
setTensionOnly(): void;
|
|
1612
|
+
setVolumeFactor(factor: number): void;
|
|
1613
|
+
setVolumePreservation(enabled: boolean): void;
|
|
1614
|
+
setWire(segments: Uint32Array): void;
|
|
1615
|
+
static sphere(center: RawVector, radius: number, subdivisions: number): RawSoftBodyBuilder;
|
|
1616
|
+
surfaceDihedrals(): Uint32Array;
|
|
1617
|
+
surfaceEdges(): Uint32Array;
|
|
1618
|
+
translated(translation: RawVector): void;
|
|
1619
|
+
static trimesh(vertices: Float32Array, indices: Uint32Array): RawSoftBodyBuilder | undefined;
|
|
1620
|
+
/**
|
|
1621
|
+
* A volumetric body filling the closed surface (segments in 2D, triangles in 3D) with
|
|
1622
|
+
* cells of the given size.
|
|
1623
|
+
*/
|
|
1624
|
+
static volumetric(vertices: Float32Array, indices: Uint32Array, cell_size: number, skinned: boolean): RawSoftBodyBuilder | undefined;
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
export enum RawSoftBodyCellModel {
|
|
1628
|
+
Volume = 0,
|
|
1629
|
+
Corotational = 1,
|
|
1630
|
+
NeoHookean = 2,
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
export class RawSoftBodyMaterial {
|
|
1634
|
+
free(): void;
|
|
1635
|
+
[Symbol.dispose](): void;
|
|
1636
|
+
constructor();
|
|
1637
|
+
tears(): boolean;
|
|
1638
|
+
static uniform(natural_frequency: number, damping_ratio: number): RawSoftBodyMaterial;
|
|
1639
|
+
bendDampingRatio: number;
|
|
1640
|
+
bendFrequency: number;
|
|
1641
|
+
deformationDamping: number;
|
|
1642
|
+
edgeDampingRatio: number;
|
|
1643
|
+
edgeFrequency: number;
|
|
1644
|
+
edgePlasticCreep: number;
|
|
1645
|
+
edgePlasticFlow: RawSoftEdgePlasticFlow;
|
|
1646
|
+
edgePlasticMax: number;
|
|
1647
|
+
edgePlasticYield: number;
|
|
1648
|
+
elasticDampingRatio: number;
|
|
1649
|
+
interiorStrength: number;
|
|
1650
|
+
maxTearsPerStep: number;
|
|
1651
|
+
get minPiece(): number | undefined;
|
|
1652
|
+
set minPiece(value: number | null | undefined);
|
|
1653
|
+
plasticCreep: number;
|
|
1654
|
+
plasticMax: number;
|
|
1655
|
+
plasticYield: number;
|
|
1656
|
+
poissonRatio: number;
|
|
1657
|
+
shapeMatchingDampingRatio: number;
|
|
1658
|
+
shapeMatchingFrequency: number;
|
|
1659
|
+
get tearForce(): number | undefined;
|
|
1660
|
+
set tearForce(value: number | null | undefined);
|
|
1661
|
+
tearSmoothing: number;
|
|
1662
|
+
get tearStrain(): number | undefined;
|
|
1663
|
+
set tearStrain(value: number | null | undefined);
|
|
1664
|
+
volumeDampingRatio: number;
|
|
1665
|
+
volumeFrequency: number;
|
|
1666
|
+
youngModulus: number;
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
export class RawSoftBodySet {
|
|
1670
|
+
free(): void;
|
|
1671
|
+
[Symbol.dispose](): void;
|
|
1672
|
+
addCluster(handle: number, particles: Uint32Array, bodies: RawRigidBodySet, colliders: RawColliderSet): number | undefined;
|
|
1673
|
+
/**
|
|
1674
|
+
* Checks if a soft body with the given integer handle exists.
|
|
1675
|
+
*/
|
|
1676
|
+
contains(handle: number): boolean;
|
|
1677
|
+
/**
|
|
1678
|
+
* Cuts a soft body along a blade: a segment (two points) in 2D, a triangle (three points)
|
|
1679
|
+
* in 3D, given as `DIM` floats per point.
|
|
1680
|
+
*/
|
|
1681
|
+
cut(handle: number, blade: Float32Array, islands: RawIslandManager, bodies: RawRigidBodySet, colliders: RawColliderSet, joints: RawImpulseJointSet, articulations: RawMultibodyJointSet): RawSoftBodyTearEvent | undefined;
|
|
1682
|
+
/**
|
|
1683
|
+
* Applies the given JavaScript function to the integer handle of each soft body managed by
|
|
1684
|
+
* this set.
|
|
1685
|
+
*/
|
|
1686
|
+
forEachSoftBodyHandle(f: Function): void;
|
|
1687
|
+
/**
|
|
1688
|
+
* Inserts the soft body described by the builder, creating its hidden root rigid body and
|
|
1689
|
+
* its colliders.
|
|
1690
|
+
*/
|
|
1691
|
+
insert(builder: RawSoftBodyBuilder, bodies: RawRigidBodySet, colliders: RawColliderSet): number;
|
|
1692
|
+
/**
|
|
1693
|
+
* The number of soft bodies on this set.
|
|
1694
|
+
*/
|
|
1695
|
+
len(): number;
|
|
1696
|
+
constructor();
|
|
1697
|
+
removeCluster(handle: number, cluster: number, islands: RawIslandManager, bodies: RawRigidBodySet, colliders: RawColliderSet, joints: RawImpulseJointSet, articulations: RawMultibodyJointSet): boolean;
|
|
1698
|
+
remove(handle: number, islands: RawIslandManager, bodies: RawRigidBodySet, colliders: RawColliderSet, joints: RawImpulseJointSet, articulations: RawMultibodyJointSet): void;
|
|
1699
|
+
sbAddForce(handle: number, force: RawVector, wake_up: boolean): void;
|
|
1700
|
+
sbAddParticleForce(handle: number, i: number, force: RawVector, wake_up: boolean): void;
|
|
1701
|
+
sbApplyImpulseAtPoint(handle: number, impulse: RawVector, point: RawVector, falloff_radius: number, wake_up: boolean): void;
|
|
1702
|
+
sbApplyImpulse(handle: number, impulse: RawVector, wake_up: boolean): void;
|
|
1703
|
+
sbApplyParticleImpulse(handle: number, i: number, impulse: RawVector, wake_up: boolean): void;
|
|
1704
|
+
sbApplyRadialImpulse(handle: number, center: RawVector, magnitude: number, falloff_radius: number, wake_up: boolean): void;
|
|
1705
|
+
sbAttachParticle(handle: number, i: number, body: number, bodies: RawRigidBodySet): void;
|
|
1706
|
+
sbAttachmentBody(handle: number, i: number): number;
|
|
1707
|
+
sbAttachmentParticle(handle: number, i: number): number;
|
|
1708
|
+
/**
|
|
1709
|
+
* The boundary elements of the body (segments in 2D, triangles in 3D), `DIM` particle
|
|
1710
|
+
* indices per element.
|
|
1711
|
+
*/
|
|
1712
|
+
sbBoundary(handle: number): Uint32Array;
|
|
1713
|
+
sbCellModel(handle: number): RawSoftBodyCellModel;
|
|
1714
|
+
sbCellRestVolume(handle: number, i: number): number;
|
|
1715
|
+
sbCellStiffnessScale(handle: number, i: number): number;
|
|
1716
|
+
sbCellStress(handle: number, i: number): number;
|
|
1717
|
+
sbCellTearResistance(handle: number, i: number): number;
|
|
1718
|
+
/**
|
|
1719
|
+
* The particles of every cell, `DIM + 1` indices per cell.
|
|
1720
|
+
*/
|
|
1721
|
+
sbCells(handle: number): Uint32Array;
|
|
1722
|
+
sbCenterOfMass(handle: number, scratch_buffer: Float32Array): void;
|
|
1723
|
+
sbClusterParticles(handle: number, i: number): Uint32Array;
|
|
1724
|
+
sbClusterProxy(handle: number, i: number): number | undefined;
|
|
1725
|
+
sbClusterShapeMatchingEnabled(handle: number, i: number): boolean;
|
|
1726
|
+
sbDetachParticle(handle: number, i: number): boolean;
|
|
1727
|
+
sbDihedralRestAngle(handle: number, i: number): number;
|
|
1728
|
+
/**
|
|
1729
|
+
* The particles of every dihedral (3D), four indices per dihedral.
|
|
1730
|
+
*/
|
|
1731
|
+
sbDihedrals(handle: number): Uint32Array;
|
|
1732
|
+
sbEdgeImpulse(handle: number, i: number): number;
|
|
1733
|
+
sbEdgeIsBend(handle: number, i: number): boolean;
|
|
1734
|
+
sbEdgePlasticStrain(handle: number, i: number): number;
|
|
1735
|
+
sbEdgeRestLength(handle: number, i: number): number;
|
|
1736
|
+
sbEdgeStress(handle: number, i: number): number;
|
|
1737
|
+
sbEdgeTearResistance(handle: number, i: number): number;
|
|
1738
|
+
/**
|
|
1739
|
+
* The particle pairs of every edge, two indices per edge.
|
|
1740
|
+
*/
|
|
1741
|
+
sbEdges(handle: number): Uint32Array;
|
|
1742
|
+
sbEnableClusterShapeMatching(handle: number, i: number, enabled: boolean): void;
|
|
1743
|
+
sbEnableVolumePreservation(handle: number, enabled: boolean): void;
|
|
1744
|
+
sbGravityScale(handle: number): number;
|
|
1745
|
+
sbHasPendingTears(handle: number): boolean;
|
|
1746
|
+
sbIsClusterLive(handle: number, i: number): boolean;
|
|
1747
|
+
sbIsEnabled(handle: number): boolean;
|
|
1748
|
+
sbIsParticleDamaged(handle: number, i: number): boolean;
|
|
1749
|
+
sbIsParticleOnSurface(handle: number, i: number): boolean;
|
|
1750
|
+
sbIsParticlePinned(handle: number, i: number): boolean;
|
|
1751
|
+
sbIsSleeping(handle: number): boolean;
|
|
1752
|
+
sbLinearDamping(handle: number): number;
|
|
1753
|
+
sbMass(handle: number): number;
|
|
1754
|
+
sbMaterial(handle: number): RawSoftBodyMaterial;
|
|
1755
|
+
sbMeshCluster(handle: number, i: number): number | undefined;
|
|
1756
|
+
sbMeshCollider(handle: number, i: number): number | undefined;
|
|
1757
|
+
sbMeshCollisionEnabled(handle: number, i: number): boolean;
|
|
1758
|
+
/**
|
|
1759
|
+
* The elements of a collision mesh, `DIM` vertex indices per element.
|
|
1760
|
+
*/
|
|
1761
|
+
sbMeshIndices(handle: number, i: number): Uint32Array;
|
|
1762
|
+
sbMeshIsOriented(handle: number, i: number): boolean;
|
|
1763
|
+
sbMeshIsSkinned(handle: number, i: number): boolean;
|
|
1764
|
+
/**
|
|
1765
|
+
* The index, in the body's mesh list, of the mesh a deformable collider holds.
|
|
1766
|
+
*/
|
|
1767
|
+
sbMeshOfCollider(handle: number, collider: number): number | undefined;
|
|
1768
|
+
/**
|
|
1769
|
+
* The world-space vertex positions of a collision mesh, `DIM` floats per vertex.
|
|
1770
|
+
*/
|
|
1771
|
+
sbMeshVertices(handle: number, i: number): Float32Array;
|
|
1772
|
+
sbNumAttachments(handle: number): number;
|
|
1773
|
+
sbNumCells(handle: number): number;
|
|
1774
|
+
sbNumClusters(handle: number): number;
|
|
1775
|
+
sbNumDihedrals(handle: number): number;
|
|
1776
|
+
sbNumEdges(handle: number): number;
|
|
1777
|
+
sbNumMeshes(handle: number): number;
|
|
1778
|
+
sbNumParticles(handle: number): number;
|
|
1779
|
+
sbOrigin(handle: number): number | undefined;
|
|
1780
|
+
sbParticleMass(handle: number, i: number): number;
|
|
1781
|
+
sbParticlePosition(handle: number, i: number, scratch_buffer: Float32Array): void;
|
|
1782
|
+
sbParticlePositions(handle: number): Float32Array;
|
|
1783
|
+
sbParticleRadius(handle: number): number;
|
|
1784
|
+
sbParticleRestPosition(handle: number, i: number, scratch_buffer: Float32Array): void;
|
|
1785
|
+
sbParticleVelocities(handle: number): Float32Array;
|
|
1786
|
+
sbParticleVelocity(handle: number, i: number, scratch_buffer: Float32Array): void;
|
|
1787
|
+
sbPieces(handle: number): Float64Array;
|
|
1788
|
+
sbResetForces(handle: number, wake_up: boolean): void;
|
|
1789
|
+
sbResetPlasticity(handle: number): void;
|
|
1790
|
+
sbRestVolume(handle: number): number;
|
|
1791
|
+
sbRootBody(handle: number): number;
|
|
1792
|
+
sbSetAdditionalPgsIterations(handle: number, iterations: number): void;
|
|
1793
|
+
sbSetClusterEdgeSoftness(handle: number, i: number, natural_frequency?: number | null, damping_ratio?: number | null): void;
|
|
1794
|
+
sbSetClusterKinematicTarget(handle: number, i: number, translation: RawVector, rotation: RawRotation): void;
|
|
1795
|
+
sbSetClusterPinned(handle: number, i: number, pinned: boolean): void;
|
|
1796
|
+
sbSetClusterStiffnessScale(handle: number, i: number, scale: number): void;
|
|
1797
|
+
sbSetClusterTearResistance(handle: number, i: number, resistance: number): void;
|
|
1798
|
+
sbSetEnabled(handle: number, enabled: boolean): void;
|
|
1799
|
+
sbSetMaterial(handle: number, material: RawSoftBodyMaterial): void;
|
|
1800
|
+
sbSetParticleKinematicTarget(handle: number, i: number, position: RawVector): void;
|
|
1801
|
+
sbSetParticlePinned(handle: number, i: number, pinned: boolean): void;
|
|
1802
|
+
sbSetParticlePosition(handle: number, i: number, position: RawVector): void;
|
|
1803
|
+
sbSetParticleVelocity(handle: number, i: number, velocity: RawVector): void;
|
|
1804
|
+
sbSetSolver(handle: number, solver: RawSoftBodySolver): void;
|
|
1805
|
+
sbSetUserData(handle: number, data: number): void;
|
|
1806
|
+
sbSetVolumeFactor(handle: number, factor: number): void;
|
|
1807
|
+
sbSolver(handle: number): RawSoftBodySolver;
|
|
1808
|
+
sbTearCell(handle: number, i: number): void;
|
|
1809
|
+
sbTearEdge(handle: number, i: number): void;
|
|
1810
|
+
sbTopologyVersion(handle: number): number;
|
|
1811
|
+
sbUserData(handle: number): number;
|
|
1812
|
+
sbVolumeFactor(handle: number): number;
|
|
1813
|
+
sbVolumePreservationEnabled(handle: number): boolean;
|
|
1814
|
+
sbVolume(handle: number): number;
|
|
1815
|
+
sbWakeUp(handle: number): void;
|
|
1816
|
+
tear(handle: number, edges: Uint32Array, cells: Uint32Array, islands: RawIslandManager, bodies: RawRigidBodySet, colliders: RawColliderSet, joints: RawImpulseJointSet, articulations: RawMultibodyJointSet): RawSoftBodyTearEvent | undefined;
|
|
1817
|
+
wakeUp(handle: number, bodies: RawRigidBodySet, strong: boolean): void;
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
/**
|
|
1821
|
+
* Which soft-body solver holds the cells of a body together.
|
|
1822
|
+
*/
|
|
1823
|
+
export enum RawSoftBodySolver {
|
|
1824
|
+
Constraints = 0,
|
|
1825
|
+
Fem = 1,
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
export class RawSoftBodyTearEvent {
|
|
1829
|
+
private constructor();
|
|
1830
|
+
free(): void;
|
|
1831
|
+
[Symbol.dispose](): void;
|
|
1832
|
+
clusterSplitCluster(i: number): number;
|
|
1833
|
+
clusterSplitKeepsProxy(i: number): boolean;
|
|
1834
|
+
clusterSplitProxy(i: number): number;
|
|
1835
|
+
clusterSplitSoftBody(i: number): number;
|
|
1836
|
+
clusterSplitSource(i: number): number;
|
|
1837
|
+
insertedParticles(): Uint32Array;
|
|
1838
|
+
movedJointFrom(i: number): number;
|
|
1839
|
+
movedJointTo(i: number): number;
|
|
1840
|
+
movedJoint(i: number): number;
|
|
1841
|
+
numClusterSplits(): number;
|
|
1842
|
+
numMovedJoints(): number;
|
|
1843
|
+
numPieces(): number;
|
|
1844
|
+
particleDestinationBody(particle: number): number | undefined;
|
|
1845
|
+
particleDestinationIndex(particle: number): number | undefined;
|
|
1846
|
+
pieceClusters(i: number): Uint32Array;
|
|
1847
|
+
pieceParticles(i: number): Uint32Array;
|
|
1848
|
+
pieceSoftBody(i: number): number;
|
|
1849
|
+
removedEdges(): Uint32Array;
|
|
1850
|
+
seeds(): Uint32Array;
|
|
1851
|
+
softBody(): number;
|
|
1852
|
+
splitParticles(): Uint32Array;
|
|
1853
|
+
tornCells(): Uint32Array;
|
|
1854
|
+
tornEdges(): Uint32Array;
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
export enum RawSoftEdgePlasticFlow {
|
|
1858
|
+
Both = 0,
|
|
1859
|
+
Compression = 1,
|
|
1860
|
+
Tension = 2,
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
/**
|
|
1864
|
+
* How a deformable collider's vertices follow the particles of its cluster.
|
|
1865
|
+
*/
|
|
1866
|
+
export enum RawSoftMeshBindingMode {
|
|
1867
|
+
Direct = 0,
|
|
1868
|
+
DirectByPosition = 1,
|
|
1869
|
+
Skinned = 2,
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
/**
|
|
1873
|
+
* What the per-point constraints of the features a volume constraint acts on do.
|
|
1874
|
+
*/
|
|
1875
|
+
export enum RawSoftPatchConstraints {
|
|
1876
|
+
Keep = 0,
|
|
1877
|
+
StandDown = 1,
|
|
1878
|
+
AlongNormal = 2,
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
export class RawSoftRecoverySettings {
|
|
1882
|
+
free(): void;
|
|
1883
|
+
[Symbol.dispose](): void;
|
|
1884
|
+
constructor();
|
|
1885
|
+
authoredVelocityMargin: boolean;
|
|
1886
|
+
crossBodyDetection: boolean;
|
|
1887
|
+
crossBodyExpelGate: boolean;
|
|
1888
|
+
crossingRepulsionGuide: boolean;
|
|
1889
|
+
crossingRepulsionSelfGuide: boolean;
|
|
1890
|
+
crossingRepulsion: boolean;
|
|
1891
|
+
detectionMotionGating: boolean;
|
|
1892
|
+
edgeSpeculation: boolean;
|
|
1893
|
+
edgeStandDown: boolean;
|
|
1894
|
+
invertedCellDetection: boolean;
|
|
1895
|
+
overlapConstraintPace: number;
|
|
1896
|
+
overlapConstraints: boolean;
|
|
1897
|
+
overlapEdgeStandDown: boolean;
|
|
1898
|
+
overlapKeptDepth: number;
|
|
1899
|
+
overlapMultiVolume: boolean;
|
|
1900
|
+
overlapNormalPush: boolean;
|
|
1901
|
+
overlapPatchConstraints: RawSoftPatchConstraints;
|
|
1902
|
+
overlapPatience: number;
|
|
1903
|
+
overlapProgressMargin: number;
|
|
1904
|
+
overlapRigid: boolean;
|
|
1905
|
+
overlapSelfRegions: boolean;
|
|
1906
|
+
overlapSkinVolume: boolean;
|
|
1907
|
+
overlapSkipSelfTangled: boolean;
|
|
1908
|
+
overlapSplit: number;
|
|
1909
|
+
recoveryPace: number;
|
|
1910
|
+
selfCrossingDetection: boolean;
|
|
1911
|
+
selfStandDown: boolean;
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
/**
|
|
1915
|
+
* Parameters for VHACD convex decomposition algorithm
|
|
1916
|
+
*/
|
|
1917
|
+
export class RawVHACDParameters {
|
|
1918
|
+
free(): void;
|
|
1919
|
+
[Symbol.dispose](): void;
|
|
1920
|
+
constructor();
|
|
1921
|
+
alpha: number;
|
|
1922
|
+
beta: number;
|
|
1923
|
+
concavity: number;
|
|
1924
|
+
convex_hull_approximation: boolean;
|
|
1925
|
+
convex_hull_downsampling: number;
|
|
1926
|
+
max_convex_hulls: number;
|
|
1927
|
+
plane_downsampling: number;
|
|
1928
|
+
resolution: number;
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
/**
|
|
1932
|
+
* A vector.
|
|
1933
|
+
*/
|
|
1934
|
+
export class RawVector {
|
|
1935
|
+
free(): void;
|
|
1936
|
+
[Symbol.dispose](): void;
|
|
1937
|
+
/**
|
|
1938
|
+
* Creates a new 3D vector from its two components.
|
|
1939
|
+
*
|
|
1940
|
+
* # Parameters
|
|
1941
|
+
* - `x`: the `x` component of this 3D vector.
|
|
1942
|
+
* - `y`: the `y` component of this 3D vector.
|
|
1943
|
+
* - `z`: the `z` component of this 3D vector.
|
|
1944
|
+
*/
|
|
1945
|
+
constructor(x: number, y: number, z: number);
|
|
1946
|
+
/**
|
|
1947
|
+
* Create a new 3D vector from this vector with its components rearranged as `{x, y, z}`.
|
|
1948
|
+
*
|
|
1949
|
+
* This will effectively return a copy of `this`. This method exist for completeness with the
|
|
1950
|
+
* other swizzling functions.
|
|
1951
|
+
*/
|
|
1952
|
+
xyz(): RawVector;
|
|
1953
|
+
/**
|
|
1954
|
+
* Create a new 3D vector from this vector with its components rearranged as `{x, z, y}`.
|
|
1955
|
+
*/
|
|
1956
|
+
xzy(): RawVector;
|
|
1957
|
+
/**
|
|
1958
|
+
* Create a new 3D vector from this vector with its components rearranged as `{y, x, z}`.
|
|
1959
|
+
*/
|
|
1960
|
+
yxz(): RawVector;
|
|
1961
|
+
/**
|
|
1962
|
+
* Create a new 3D vector from this vector with its components rearranged as `{y, z, x}`.
|
|
1963
|
+
*/
|
|
1964
|
+
yzx(): RawVector;
|
|
1965
|
+
/**
|
|
1966
|
+
* Creates a new vector filled with zeros.
|
|
1967
|
+
*/
|
|
1968
|
+
static zero(): RawVector;
|
|
1969
|
+
/**
|
|
1970
|
+
* Create a new 3D vector from this vector with its components rearranged as `{z, x, y}`.
|
|
1971
|
+
*/
|
|
1972
|
+
zxy(): RawVector;
|
|
1973
|
+
/**
|
|
1974
|
+
* Create a new 3D vector from this vector with its components rearranged as `{z, y, x}`.
|
|
1975
|
+
*/
|
|
1976
|
+
zyx(): RawVector;
|
|
1977
|
+
/**
|
|
1978
|
+
* The `x` component of this vector.
|
|
1979
|
+
*/
|
|
1980
|
+
x: number;
|
|
1981
|
+
/**
|
|
1982
|
+
* The `y` component of this vector.
|
|
1983
|
+
*/
|
|
1984
|
+
y: number;
|
|
1985
|
+
/**
|
|
1986
|
+
* The `z` component of this vector.
|
|
1987
|
+
*/
|
|
1988
|
+
z: number;
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
export function reserve_memory(extra_bytes_count: number): void;
|
|
1992
|
+
|
|
1993
|
+
export function version(): string;
|
|
1994
|
+
|
|
1995
|
+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
1996
|
+
|
|
1997
|
+
export interface InitOutput {
|
|
1998
|
+
readonly memory: WebAssembly.Memory;
|
|
1999
|
+
readonly __wbg_get_rawconvexmeshdata_indices: (a: number, b: number) => void;
|
|
2000
|
+
readonly __wbg_get_rawconvexmeshdata_vertices: (a: number, b: number) => void;
|
|
2001
|
+
readonly __wbg_rawbroadphase_free: (a: number, b: number) => void;
|
|
2002
|
+
readonly __wbg_rawccdsolver_free: (a: number, b: number) => void;
|
|
2003
|
+
readonly __wbg_rawcharactercollision_free: (a: number, b: number) => void;
|
|
2004
|
+
readonly __wbg_rawcolliderset_free: (a: number, b: number) => void;
|
|
2005
|
+
readonly __wbg_rawcollidershapecasthit_free: (a: number, b: number) => void;
|
|
2006
|
+
readonly __wbg_rawcontactforceevent_free: (a: number, b: number) => void;
|
|
2007
|
+
readonly __wbg_rawcontactmanifold_free: (a: number, b: number) => void;
|
|
2008
|
+
readonly __wbg_rawcontactpair_free: (a: number, b: number) => void;
|
|
2009
|
+
readonly __wbg_rawconvexmeshdata_free: (a: number, b: number) => void;
|
|
2010
|
+
readonly __wbg_rawdebugrenderpipeline_free: (a: number, b: number) => void;
|
|
2011
|
+
readonly __wbg_rawdeserializedworld_free: (a: number, b: number) => void;
|
|
2012
|
+
readonly __wbg_rawdynamicraycastvehiclecontroller_free: (a: number, b: number) => void;
|
|
2013
|
+
readonly __wbg_raweventqueue_free: (a: number, b: number) => void;
|
|
2014
|
+
readonly __wbg_rawgenericjoint_free: (a: number, b: number) => void;
|
|
2015
|
+
readonly __wbg_rawimpulsejointset_free: (a: number, b: number) => void;
|
|
2016
|
+
readonly __wbg_rawintegrationparameters_free: (a: number, b: number) => void;
|
|
2017
|
+
readonly __wbg_rawislandmanager_free: (a: number, b: number) => void;
|
|
2018
|
+
readonly __wbg_rawkinematiccharactercontroller_free: (a: number, b: number) => void;
|
|
2019
|
+
readonly __wbg_rawmultibodyjointset_free: (a: number, b: number) => void;
|
|
2020
|
+
readonly __wbg_rawnarrowphase_free: (a: number, b: number) => void;
|
|
2021
|
+
readonly __wbg_rawphysicspipeline_free: (a: number, b: number) => void;
|
|
2022
|
+
readonly __wbg_rawpidcontroller_free: (a: number, b: number) => void;
|
|
2023
|
+
readonly __wbg_rawpointcolliderprojection_free: (a: number, b: number) => void;
|
|
2024
|
+
readonly __wbg_rawpointprojection_free: (a: number, b: number) => void;
|
|
2025
|
+
readonly __wbg_rawraycolliderhit_free: (a: number, b: number) => void;
|
|
2026
|
+
readonly __wbg_rawraycolliderintersection_free: (a: number, b: number) => void;
|
|
2027
|
+
readonly __wbg_rawrayintersection_free: (a: number, b: number) => void;
|
|
2028
|
+
readonly __wbg_rawrigidbodyset_free: (a: number, b: number) => void;
|
|
2029
|
+
readonly __wbg_rawrotation_free: (a: number, b: number) => void;
|
|
2030
|
+
readonly __wbg_rawsdpmatrix3_free: (a: number, b: number) => void;
|
|
2031
|
+
readonly __wbg_rawserializationpipeline_free: (a: number, b: number) => void;
|
|
2032
|
+
readonly __wbg_rawshape_free: (a: number, b: number) => void;
|
|
2033
|
+
readonly __wbg_rawshapecasthit_free: (a: number, b: number) => void;
|
|
2034
|
+
readonly __wbg_rawshapecontact_free: (a: number, b: number) => void;
|
|
2035
|
+
readonly __wbg_rawsoftbodybuilder_free: (a: number, b: number) => void;
|
|
2036
|
+
readonly __wbg_rawsoftbodymaterial_free: (a: number, b: number) => void;
|
|
2037
|
+
readonly __wbg_rawsoftbodyset_free: (a: number, b: number) => void;
|
|
2038
|
+
readonly __wbg_rawsoftbodytearevent_free: (a: number, b: number) => void;
|
|
2039
|
+
readonly __wbg_rawsoftrecoverysettings_free: (a: number, b: number) => void;
|
|
2040
|
+
readonly __wbg_rawvector_free: (a: number, b: number) => void;
|
|
2041
|
+
readonly __wbg_rawvhacdparameters_free: (a: number, b: number) => void;
|
|
2042
|
+
readonly __wbg_set_rawconvexmeshdata_indices: (a: number, b: number, c: number) => void;
|
|
2043
|
+
readonly __wbg_set_rawconvexmeshdata_vertices: (a: number, b: number, c: number) => void;
|
|
2044
|
+
readonly rawbroadphase_castRay: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number) => number;
|
|
2045
|
+
readonly rawbroadphase_castRayAndGetNormal: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number) => number;
|
|
2046
|
+
readonly rawbroadphase_castShape: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number) => number;
|
|
2047
|
+
readonly rawbroadphase_collidersWithAabbIntersectingAabb: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
2048
|
+
readonly rawbroadphase_intersectionWithShape: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number) => void;
|
|
2049
|
+
readonly rawbroadphase_intersectionsWithPoint: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => void;
|
|
2050
|
+
readonly rawbroadphase_intersectionsWithRay: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number) => void;
|
|
2051
|
+
readonly rawbroadphase_intersectionsWithShape: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number) => void;
|
|
2052
|
+
readonly rawbroadphase_new: () => number;
|
|
2053
|
+
readonly rawbroadphase_projectPoint: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => number;
|
|
2054
|
+
readonly rawbroadphase_projectPointAndGetFeature: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number;
|
|
2055
|
+
readonly rawccdsolver_new: () => number;
|
|
2056
|
+
readonly rawcharactercollision_handle: (a: number) => number;
|
|
2057
|
+
readonly rawcharactercollision_new: () => number;
|
|
2058
|
+
readonly rawcharactercollision_toi: (a: number) => number;
|
|
2059
|
+
readonly rawcharactercollision_translationDeltaApplied: (a: number, b: number) => void;
|
|
2060
|
+
readonly rawcharactercollision_translationDeltaRemaining: (a: number, b: number) => void;
|
|
2061
|
+
readonly rawcharactercollision_worldNormal1: (a: number, b: number) => void;
|
|
2062
|
+
readonly rawcharactercollision_worldNormal2: (a: number, b: number) => void;
|
|
2063
|
+
readonly rawcharactercollision_worldWitness1: (a: number, b: number) => void;
|
|
2064
|
+
readonly rawcharactercollision_worldWitness2: (a: number, b: number) => void;
|
|
2065
|
+
readonly rawcolliderset_coActiveCollisionTypes: (a: number, b: number) => number;
|
|
2066
|
+
readonly rawcolliderset_coActiveEvents: (a: number, b: number) => number;
|
|
2067
|
+
readonly rawcolliderset_coActiveHooks: (a: number, b: number) => number;
|
|
2068
|
+
readonly rawcolliderset_coCastCollider: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
2069
|
+
readonly rawcolliderset_coCastRay: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
2070
|
+
readonly rawcolliderset_coCastRayAndGetNormal: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
2071
|
+
readonly rawcolliderset_coCastShape: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
2072
|
+
readonly rawcolliderset_coCollisionGroups: (a: number, b: number) => number;
|
|
2073
|
+
readonly rawcolliderset_coCombineVoxelStates: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2074
|
+
readonly rawcolliderset_coCompoundFlags: (a: number, b: number) => number;
|
|
2075
|
+
readonly rawcolliderset_coContactCollider: (a: number, b: number, c: number, d: number) => number;
|
|
2076
|
+
readonly rawcolliderset_coContactForceEventThreshold: (a: number, b: number) => number;
|
|
2077
|
+
readonly rawcolliderset_coContactShape: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
2078
|
+
readonly rawcolliderset_coContactSkin: (a: number, b: number) => number;
|
|
2079
|
+
readonly rawcolliderset_coContainsPoint: (a: number, b: number, c: number) => number;
|
|
2080
|
+
readonly rawcolliderset_coDensity: (a: number, b: number) => number;
|
|
2081
|
+
readonly rawcolliderset_coFriction: (a: number, b: number) => number;
|
|
2082
|
+
readonly rawcolliderset_coFrictionCombineRule: (a: number, b: number) => number;
|
|
2083
|
+
readonly rawcolliderset_coHalfExtents: (a: number, b: number, c: number) => number;
|
|
2084
|
+
readonly rawcolliderset_coHalfHeight: (a: number, b: number) => number;
|
|
2085
|
+
readonly rawcolliderset_coHalfspaceNormal: (a: number, b: number, c: number) => number;
|
|
2086
|
+
readonly rawcolliderset_coHeightFieldFlags: (a: number, b: number) => number;
|
|
2087
|
+
readonly rawcolliderset_coHeightfieldHeights: (a: number, b: number, c: number) => void;
|
|
2088
|
+
readonly rawcolliderset_coHeightfieldNCols: (a: number, b: number) => number;
|
|
2089
|
+
readonly rawcolliderset_coHeightfieldNRows: (a: number, b: number) => number;
|
|
2090
|
+
readonly rawcolliderset_coHeightfieldScale: (a: number, b: number, c: number) => number;
|
|
2091
|
+
readonly rawcolliderset_coIndices: (a: number, b: number, c: number) => void;
|
|
2092
|
+
readonly rawcolliderset_coIntersectsRay: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
2093
|
+
readonly rawcolliderset_coIntersectsShape: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
2094
|
+
readonly rawcolliderset_coIsDeformable: (a: number, b: number) => number;
|
|
2095
|
+
readonly rawcolliderset_coIsEnabled: (a: number, b: number) => number;
|
|
2096
|
+
readonly rawcolliderset_coIsSensor: (a: number, b: number) => number;
|
|
2097
|
+
readonly rawcolliderset_coMass: (a: number, b: number) => number;
|
|
2098
|
+
readonly rawcolliderset_coParent: (a: number, b: number, c: number) => void;
|
|
2099
|
+
readonly rawcolliderset_coPolylineFlags: (a: number, b: number) => number;
|
|
2100
|
+
readonly rawcolliderset_coProjectPoint: (a: number, b: number, c: number, d: number) => number;
|
|
2101
|
+
readonly rawcolliderset_coPropagateVoxelChange: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
2102
|
+
readonly rawcolliderset_coRadius: (a: number, b: number) => number;
|
|
2103
|
+
readonly rawcolliderset_coRestitution: (a: number, b: number) => number;
|
|
2104
|
+
readonly rawcolliderset_coRestitutionCombineRule: (a: number, b: number) => number;
|
|
2105
|
+
readonly rawcolliderset_coRotation: (a: number, b: number, c: number) => void;
|
|
2106
|
+
readonly rawcolliderset_coRotationWrtParent: (a: number, b: number, c: number) => number;
|
|
2107
|
+
readonly rawcolliderset_coRoundRadius: (a: number, b: number) => number;
|
|
2108
|
+
readonly rawcolliderset_coSetActiveCollisionTypes: (a: number, b: number, c: number) => void;
|
|
2109
|
+
readonly rawcolliderset_coSetActiveEvents: (a: number, b: number, c: number) => void;
|
|
2110
|
+
readonly rawcolliderset_coSetActiveHooks: (a: number, b: number, c: number) => void;
|
|
2111
|
+
readonly rawcolliderset_coSetCollisionGroups: (a: number, b: number, c: number) => void;
|
|
2112
|
+
readonly rawcolliderset_coSetContactForceEventThreshold: (a: number, b: number, c: number) => void;
|
|
2113
|
+
readonly rawcolliderset_coSetContactSkin: (a: number, b: number, c: number) => void;
|
|
2114
|
+
readonly rawcolliderset_coSetDensity: (a: number, b: number, c: number) => void;
|
|
2115
|
+
readonly rawcolliderset_coSetEnabled: (a: number, b: number, c: number) => void;
|
|
2116
|
+
readonly rawcolliderset_coSetFriction: (a: number, b: number, c: number) => void;
|
|
2117
|
+
readonly rawcolliderset_coSetFrictionCombineRule: (a: number, b: number, c: number) => void;
|
|
2118
|
+
readonly rawcolliderset_coSetHalfExtents: (a: number, b: number, c: number) => void;
|
|
2119
|
+
readonly rawcolliderset_coSetHalfHeight: (a: number, b: number, c: number) => void;
|
|
2120
|
+
readonly rawcolliderset_coSetMass: (a: number, b: number, c: number) => void;
|
|
2121
|
+
readonly rawcolliderset_coSetMassProperties: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2122
|
+
readonly rawcolliderset_coSetRadius: (a: number, b: number, c: number) => void;
|
|
2123
|
+
readonly rawcolliderset_coSetRestitution: (a: number, b: number, c: number) => void;
|
|
2124
|
+
readonly rawcolliderset_coSetRestitutionCombineRule: (a: number, b: number, c: number) => void;
|
|
2125
|
+
readonly rawcolliderset_coSetRotation: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2126
|
+
readonly rawcolliderset_coSetRotationWrtParent: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2127
|
+
readonly rawcolliderset_coSetRoundRadius: (a: number, b: number, c: number) => void;
|
|
2128
|
+
readonly rawcolliderset_coSetSensor: (a: number, b: number, c: number) => void;
|
|
2129
|
+
readonly rawcolliderset_coSetShape: (a: number, b: number, c: number) => void;
|
|
2130
|
+
readonly rawcolliderset_coSetSolverGroups: (a: number, b: number, c: number) => void;
|
|
2131
|
+
readonly rawcolliderset_coSetTranslation: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2132
|
+
readonly rawcolliderset_coSetTranslationWrtParent: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2133
|
+
readonly rawcolliderset_coSetVoxel: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2134
|
+
readonly rawcolliderset_coShape: (a: number, b: number) => number;
|
|
2135
|
+
readonly rawcolliderset_coShapeType: (a: number, b: number) => number;
|
|
2136
|
+
readonly rawcolliderset_coSoftBody: (a: number, b: number, c: number) => void;
|
|
2137
|
+
readonly rawcolliderset_coSolverGroups: (a: number, b: number) => number;
|
|
2138
|
+
readonly rawcolliderset_coTranslation: (a: number, b: number, c: number) => void;
|
|
2139
|
+
readonly rawcolliderset_coTranslationWrtParent: (a: number, b: number, c: number) => number;
|
|
2140
|
+
readonly rawcolliderset_coTriMeshFlags: (a: number, b: number) => number;
|
|
2141
|
+
readonly rawcolliderset_coVertices: (a: number, b: number, c: number) => void;
|
|
2142
|
+
readonly rawcolliderset_coVolume: (a: number, b: number) => number;
|
|
2143
|
+
readonly rawcolliderset_coVoxelData: (a: number, b: number, c: number) => void;
|
|
2144
|
+
readonly rawcolliderset_coVoxelSize: (a: number, b: number) => number;
|
|
2145
|
+
readonly rawcolliderset_contains: (a: number, b: number) => number;
|
|
2146
|
+
readonly rawcolliderset_createCollider: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number) => void;
|
|
2147
|
+
readonly rawcolliderset_createDeformableCollider: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number) => void;
|
|
2148
|
+
readonly rawcolliderset_forEachColliderHandle: (a: number, b: number) => void;
|
|
2149
|
+
readonly rawcolliderset_isHandleValid: (a: number, b: number) => number;
|
|
2150
|
+
readonly rawcolliderset_len: (a: number) => number;
|
|
2151
|
+
readonly rawcolliderset_new: () => number;
|
|
2152
|
+
readonly rawcolliderset_remove: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2153
|
+
readonly rawcollidershapecasthit_colliderHandle: (a: number) => number;
|
|
2154
|
+
readonly rawcollidershapecasthit_getComponents: (a: number, b: number) => void;
|
|
2155
|
+
readonly rawcontactforceevent_collider1: (a: number) => number;
|
|
2156
|
+
readonly rawcontactforceevent_collider2: (a: number) => number;
|
|
2157
|
+
readonly rawcontactforceevent_max_force_direction: (a: number, b: number) => void;
|
|
2158
|
+
readonly rawcontactforceevent_max_force_magnitude: (a: number) => number;
|
|
2159
|
+
readonly rawcontactforceevent_total_force: (a: number, b: number) => void;
|
|
2160
|
+
readonly rawcontactforceevent_total_force_magnitude: (a: number) => number;
|
|
2161
|
+
readonly rawcontactmanifold_contact_dist: (a: number, b: number) => number;
|
|
2162
|
+
readonly rawcontactmanifold_contact_fid1: (a: number, b: number) => number;
|
|
2163
|
+
readonly rawcontactmanifold_contact_fid2: (a: number, b: number) => number;
|
|
2164
|
+
readonly rawcontactmanifold_contact_impulse: (a: number, b: number) => number;
|
|
2165
|
+
readonly rawcontactmanifold_contact_local_p1: (a: number, b: number, c: number) => number;
|
|
2166
|
+
readonly rawcontactmanifold_contact_local_p2: (a: number, b: number, c: number) => number;
|
|
2167
|
+
readonly rawcontactmanifold_contact_tangent_impulse_x: (a: number, b: number) => number;
|
|
2168
|
+
readonly rawcontactmanifold_contact_tangent_impulse_y: (a: number, b: number) => number;
|
|
2169
|
+
readonly rawcontactmanifold_friction: (a: number) => number;
|
|
2170
|
+
readonly rawcontactmanifold_local_n1: (a: number, b: number) => void;
|
|
2171
|
+
readonly rawcontactmanifold_local_n2: (a: number, b: number) => void;
|
|
2172
|
+
readonly rawcontactmanifold_normal: (a: number, b: number) => void;
|
|
2173
|
+
readonly rawcontactmanifold_num_contacts: (a: number) => number;
|
|
2174
|
+
readonly rawcontactmanifold_num_solver_contacts: (a: number) => number;
|
|
2175
|
+
readonly rawcontactmanifold_restitution: (a: number) => number;
|
|
2176
|
+
readonly rawcontactmanifold_solver_contact_dist: (a: number, b: number) => number;
|
|
2177
|
+
readonly rawcontactmanifold_solver_contact_point: (a: number, b: number, c: number, d: number) => number;
|
|
2178
|
+
readonly rawcontactmanifold_solver_contact_point1: (a: number, b: number, c: number, d: number) => number;
|
|
2179
|
+
readonly rawcontactmanifold_solver_contact_point2: (a: number, b: number, c: number, d: number) => number;
|
|
2180
|
+
readonly rawcontactmanifold_solver_contact_separation: (a: number, b: number, c: number) => number;
|
|
2181
|
+
readonly rawcontactmanifold_solver_contact_tangent_velocity: (a: number, b: number, c: number) => void;
|
|
2182
|
+
readonly rawcontactmanifold_subshape1: (a: number) => number;
|
|
2183
|
+
readonly rawcontactmanifold_subshape2: (a: number) => number;
|
|
2184
|
+
readonly rawcontactpair_collider1: (a: number) => number;
|
|
2185
|
+
readonly rawcontactpair_collider2: (a: number) => number;
|
|
2186
|
+
readonly rawcontactpair_contactManifold: (a: number, b: number) => number;
|
|
2187
|
+
readonly rawcontactpair_numContactManifolds: (a: number) => number;
|
|
2188
|
+
readonly rawcontactpair_numSolverManifolds: (a: number) => number;
|
|
2189
|
+
readonly rawcontactpair_solverManifold: (a: number, b: number) => number;
|
|
2190
|
+
readonly rawdebugrenderpipeline_colors: (a: number) => number;
|
|
2191
|
+
readonly rawdebugrenderpipeline_new: () => number;
|
|
2192
|
+
readonly rawdebugrenderpipeline_render: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
2193
|
+
readonly rawdebugrenderpipeline_vertices: (a: number) => number;
|
|
2194
|
+
readonly rawdeserializedworld_takeBodies: (a: number) => number;
|
|
2195
|
+
readonly rawdeserializedworld_takeBroadPhase: (a: number) => number;
|
|
2196
|
+
readonly rawdeserializedworld_takeColliders: (a: number) => number;
|
|
2197
|
+
readonly rawdeserializedworld_takeGravity: (a: number) => number;
|
|
2198
|
+
readonly rawdeserializedworld_takeImpulseJoints: (a: number) => number;
|
|
2199
|
+
readonly rawdeserializedworld_takeIntegrationParameters: (a: number) => number;
|
|
2200
|
+
readonly rawdeserializedworld_takeIslandManager: (a: number) => number;
|
|
2201
|
+
readonly rawdeserializedworld_takeMultibodyJoints: (a: number) => number;
|
|
2202
|
+
readonly rawdeserializedworld_takeNarrowPhase: (a: number) => number;
|
|
2203
|
+
readonly rawdeserializedworld_takeSoftBodies: (a: number) => number;
|
|
2204
|
+
readonly rawdynamicraycastvehiclecontroller_add_wheel: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2205
|
+
readonly rawdynamicraycastvehiclecontroller_chassis: (a: number) => number;
|
|
2206
|
+
readonly rawdynamicraycastvehiclecontroller_current_vehicle_speed: (a: number) => number;
|
|
2207
|
+
readonly rawdynamicraycastvehiclecontroller_index_forward_axis: (a: number) => number;
|
|
2208
|
+
readonly rawdynamicraycastvehiclecontroller_index_up_axis: (a: number) => number;
|
|
2209
|
+
readonly rawdynamicraycastvehiclecontroller_new: (a: number) => number;
|
|
2210
|
+
readonly rawdynamicraycastvehiclecontroller_num_wheels: (a: number) => number;
|
|
2211
|
+
readonly rawdynamicraycastvehiclecontroller_set_index_forward_axis: (a: number, b: number) => void;
|
|
2212
|
+
readonly rawdynamicraycastvehiclecontroller_set_index_up_axis: (a: number, b: number) => void;
|
|
2213
|
+
readonly rawdynamicraycastvehiclecontroller_set_wheel_axle_cs: (a: number, b: number, c: number) => void;
|
|
2214
|
+
readonly rawdynamicraycastvehiclecontroller_set_wheel_brake: (a: number, b: number, c: number) => void;
|
|
2215
|
+
readonly rawdynamicraycastvehiclecontroller_set_wheel_chassis_connection_point_cs: (a: number, b: number, c: number) => void;
|
|
2216
|
+
readonly rawdynamicraycastvehiclecontroller_set_wheel_direction_cs: (a: number, b: number, c: number) => void;
|
|
2217
|
+
readonly rawdynamicraycastvehiclecontroller_set_wheel_engine_force: (a: number, b: number, c: number) => void;
|
|
2218
|
+
readonly rawdynamicraycastvehiclecontroller_set_wheel_friction_slip: (a: number, b: number, c: number) => void;
|
|
2219
|
+
readonly rawdynamicraycastvehiclecontroller_set_wheel_max_suspension_force: (a: number, b: number, c: number) => void;
|
|
2220
|
+
readonly rawdynamicraycastvehiclecontroller_set_wheel_max_suspension_travel: (a: number, b: number, c: number) => void;
|
|
2221
|
+
readonly rawdynamicraycastvehiclecontroller_set_wheel_radius: (a: number, b: number, c: number) => void;
|
|
2222
|
+
readonly rawdynamicraycastvehiclecontroller_set_wheel_side_friction_stiffness: (a: number, b: number, c: number) => void;
|
|
2223
|
+
readonly rawdynamicraycastvehiclecontroller_set_wheel_steering: (a: number, b: number, c: number) => void;
|
|
2224
|
+
readonly rawdynamicraycastvehiclecontroller_set_wheel_suspension_compression: (a: number, b: number, c: number) => void;
|
|
2225
|
+
readonly rawdynamicraycastvehiclecontroller_set_wheel_suspension_relaxation: (a: number, b: number, c: number) => void;
|
|
2226
|
+
readonly rawdynamicraycastvehiclecontroller_set_wheel_suspension_rest_length: (a: number, b: number, c: number) => void;
|
|
2227
|
+
readonly rawdynamicraycastvehiclecontroller_set_wheel_suspension_stiffness: (a: number, b: number, c: number) => void;
|
|
2228
|
+
readonly rawdynamicraycastvehiclecontroller_update_vehicle: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
2229
|
+
readonly rawdynamicraycastvehiclecontroller_wheel_axle_cs: (a: number, b: number, c: number) => number;
|
|
2230
|
+
readonly rawdynamicraycastvehiclecontroller_wheel_brake: (a: number, b: number) => number;
|
|
2231
|
+
readonly rawdynamicraycastvehiclecontroller_wheel_chassis_connection_point_cs: (a: number, b: number, c: number) => number;
|
|
2232
|
+
readonly rawdynamicraycastvehiclecontroller_wheel_contact_normal_ws: (a: number, b: number, c: number) => number;
|
|
2233
|
+
readonly rawdynamicraycastvehiclecontroller_wheel_contact_point_ws: (a: number, b: number, c: number) => number;
|
|
2234
|
+
readonly rawdynamicraycastvehiclecontroller_wheel_direction_cs: (a: number, b: number, c: number) => number;
|
|
2235
|
+
readonly rawdynamicraycastvehiclecontroller_wheel_engine_force: (a: number, b: number) => number;
|
|
2236
|
+
readonly rawdynamicraycastvehiclecontroller_wheel_forward_impulse: (a: number, b: number) => number;
|
|
2237
|
+
readonly rawdynamicraycastvehiclecontroller_wheel_friction_slip: (a: number, b: number) => number;
|
|
2238
|
+
readonly rawdynamicraycastvehiclecontroller_wheel_ground_object: (a: number, b: number, c: number) => void;
|
|
2239
|
+
readonly rawdynamicraycastvehiclecontroller_wheel_hard_point_ws: (a: number, b: number, c: number) => number;
|
|
2240
|
+
readonly rawdynamicraycastvehiclecontroller_wheel_is_in_contact: (a: number, b: number) => number;
|
|
2241
|
+
readonly rawdynamicraycastvehiclecontroller_wheel_max_suspension_force: (a: number, b: number) => number;
|
|
2242
|
+
readonly rawdynamicraycastvehiclecontroller_wheel_max_suspension_travel: (a: number, b: number) => number;
|
|
2243
|
+
readonly rawdynamicraycastvehiclecontroller_wheel_radius: (a: number, b: number) => number;
|
|
2244
|
+
readonly rawdynamicraycastvehiclecontroller_wheel_rotation: (a: number, b: number) => number;
|
|
2245
|
+
readonly rawdynamicraycastvehiclecontroller_wheel_side_friction_stiffness: (a: number, b: number) => number;
|
|
2246
|
+
readonly rawdynamicraycastvehiclecontroller_wheel_side_impulse: (a: number, b: number) => number;
|
|
2247
|
+
readonly rawdynamicraycastvehiclecontroller_wheel_steering: (a: number, b: number) => number;
|
|
2248
|
+
readonly rawdynamicraycastvehiclecontroller_wheel_suspension_compression: (a: number, b: number) => number;
|
|
2249
|
+
readonly rawdynamicraycastvehiclecontroller_wheel_suspension_force: (a: number, b: number) => number;
|
|
2250
|
+
readonly rawdynamicraycastvehiclecontroller_wheel_suspension_length: (a: number, b: number) => number;
|
|
2251
|
+
readonly rawdynamicraycastvehiclecontroller_wheel_suspension_relaxation: (a: number, b: number) => number;
|
|
2252
|
+
readonly rawdynamicraycastvehiclecontroller_wheel_suspension_rest_length: (a: number, b: number) => number;
|
|
2253
|
+
readonly rawdynamicraycastvehiclecontroller_wheel_suspension_stiffness: (a: number, b: number) => number;
|
|
2254
|
+
readonly raweventqueue_clear: (a: number) => void;
|
|
2255
|
+
readonly raweventqueue_drainCollisionEvents: (a: number, b: number) => void;
|
|
2256
|
+
readonly raweventqueue_drainContactForceEvents: (a: number, b: number) => void;
|
|
2257
|
+
readonly raweventqueue_drainSoftBodyTearEvents: (a: number, b: number) => void;
|
|
2258
|
+
readonly raweventqueue_new: (a: number) => number;
|
|
2259
|
+
readonly rawgenericjoint_fixed: (a: number, b: number, c: number, d: number) => number;
|
|
2260
|
+
readonly rawgenericjoint_generic: (a: number, b: number, c: number, d: number) => number;
|
|
2261
|
+
readonly rawgenericjoint_prismatic: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
2262
|
+
readonly rawgenericjoint_revolute: (a: number, b: number, c: number) => number;
|
|
2263
|
+
readonly rawgenericjoint_revoluteWithAxes: (a: number, b: number, c: number, d: number) => number;
|
|
2264
|
+
readonly rawgenericjoint_rope: (a: number, b: number, c: number) => number;
|
|
2265
|
+
readonly rawgenericjoint_spherical: (a: number, b: number) => number;
|
|
2266
|
+
readonly rawgenericjoint_spring: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
2267
|
+
readonly rawimpulsejointset_contains: (a: number, b: number) => number;
|
|
2268
|
+
readonly rawimpulsejointset_createJoint: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
2269
|
+
readonly rawimpulsejointset_forEachJointAttachedToRigidBody: (a: number, b: number, c: number) => void;
|
|
2270
|
+
readonly rawimpulsejointset_forEachJointHandle: (a: number, b: number) => void;
|
|
2271
|
+
readonly rawimpulsejointset_jointAnchor1: (a: number, b: number, c: number) => void;
|
|
2272
|
+
readonly rawimpulsejointset_jointAnchor2: (a: number, b: number, c: number) => void;
|
|
2273
|
+
readonly rawimpulsejointset_jointBodyHandle1: (a: number, b: number) => number;
|
|
2274
|
+
readonly rawimpulsejointset_jointBodyHandle2: (a: number, b: number) => number;
|
|
2275
|
+
readonly rawimpulsejointset_jointConfigureMotor: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
2276
|
+
readonly rawimpulsejointset_jointConfigureMotorModel: (a: number, b: number, c: number, d: number) => void;
|
|
2277
|
+
readonly rawimpulsejointset_jointConfigureMotorPosition: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2278
|
+
readonly rawimpulsejointset_jointConfigureMotorVelocity: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2279
|
+
readonly rawimpulsejointset_jointContactsEnabled: (a: number, b: number) => number;
|
|
2280
|
+
readonly rawimpulsejointset_jointFrameX1: (a: number, b: number, c: number) => void;
|
|
2281
|
+
readonly rawimpulsejointset_jointFrameX2: (a: number, b: number, c: number) => void;
|
|
2282
|
+
readonly rawimpulsejointset_jointLimitsEnabled: (a: number, b: number, c: number) => number;
|
|
2283
|
+
readonly rawimpulsejointset_jointLimitsMax: (a: number, b: number, c: number) => number;
|
|
2284
|
+
readonly rawimpulsejointset_jointLimitsMin: (a: number, b: number, c: number) => number;
|
|
2285
|
+
readonly rawimpulsejointset_jointSetAnchor1: (a: number, b: number, c: number) => void;
|
|
2286
|
+
readonly rawimpulsejointset_jointSetAnchor2: (a: number, b: number, c: number) => void;
|
|
2287
|
+
readonly rawimpulsejointset_jointSetContactsEnabled: (a: number, b: number, c: number) => void;
|
|
2288
|
+
readonly rawimpulsejointset_jointSetFrameX1: (a: number, b: number, c: number) => void;
|
|
2289
|
+
readonly rawimpulsejointset_jointSetFrameX2: (a: number, b: number, c: number) => void;
|
|
2290
|
+
readonly rawimpulsejointset_jointSetLimits: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2291
|
+
readonly rawimpulsejointset_jointSetLocalFrame1: (a: number, b: number, c: number, d: number) => void;
|
|
2292
|
+
readonly rawimpulsejointset_jointSetLocalFrame2: (a: number, b: number, c: number, d: number) => void;
|
|
2293
|
+
readonly rawimpulsejointset_jointSetMotorMaxForce: (a: number, b: number, c: number, d: number) => void;
|
|
2294
|
+
readonly rawimpulsejointset_jointType: (a: number, b: number) => number;
|
|
2295
|
+
readonly rawimpulsejointset_len: (a: number) => number;
|
|
2296
|
+
readonly rawimpulsejointset_new: () => number;
|
|
2297
|
+
readonly rawimpulsejointset_remove: (a: number, b: number, c: number) => void;
|
|
2298
|
+
readonly rawintegrationparameters_contactClustering: (a: number) => number;
|
|
2299
|
+
readonly rawintegrationparameters_contact_erp: (a: number) => number;
|
|
2300
|
+
readonly rawintegrationparameters_dt: (a: number) => number;
|
|
2301
|
+
readonly rawintegrationparameters_lengthUnit: (a: number) => number;
|
|
2302
|
+
readonly rawintegrationparameters_maxCcdSubsteps: (a: number) => number;
|
|
2303
|
+
readonly rawintegrationparameters_minCcdDt: (a: number) => number;
|
|
2304
|
+
readonly rawintegrationparameters_new: () => number;
|
|
2305
|
+
readonly rawintegrationparameters_normalizedAllowedLinearError: (a: number) => number;
|
|
2306
|
+
readonly rawintegrationparameters_normalizedPredictionDistance: (a: number) => number;
|
|
2307
|
+
readonly rawintegrationparameters_numInternalPgsIterations: (a: number) => number;
|
|
2308
|
+
readonly rawintegrationparameters_numSolverIterations: (a: number) => number;
|
|
2309
|
+
readonly rawintegrationparameters_set_contactClustering: (a: number, b: number) => void;
|
|
2310
|
+
readonly rawintegrationparameters_set_contact_natural_frequency: (a: number, b: number) => void;
|
|
2311
|
+
readonly rawintegrationparameters_set_dt: (a: number, b: number) => void;
|
|
2312
|
+
readonly rawintegrationparameters_set_lengthUnit: (a: number, b: number) => void;
|
|
2313
|
+
readonly rawintegrationparameters_set_maxCcdSubsteps: (a: number, b: number) => void;
|
|
2314
|
+
readonly rawintegrationparameters_set_minCcdDt: (a: number, b: number) => void;
|
|
2315
|
+
readonly rawintegrationparameters_set_normalizedAllowedLinearError: (a: number, b: number) => void;
|
|
2316
|
+
readonly rawintegrationparameters_set_normalizedPredictionDistance: (a: number, b: number) => void;
|
|
2317
|
+
readonly rawintegrationparameters_set_numInternalPgsIterations: (a: number, b: number) => void;
|
|
2318
|
+
readonly rawintegrationparameters_set_numSolverIterations: (a: number, b: number) => void;
|
|
2319
|
+
readonly rawintegrationparameters_set_softBodiesContactStiffening: (a: number, b: number) => void;
|
|
2320
|
+
readonly rawintegrationparameters_set_softBodiesFemLinearTolerance: (a: number, b: number) => void;
|
|
2321
|
+
readonly rawintegrationparameters_set_softBodiesFemMaxDenseDofs: (a: number, b: number) => void;
|
|
2322
|
+
readonly rawintegrationparameters_set_softBodiesFemMaxLinearIterations: (a: number, b: number) => void;
|
|
2323
|
+
readonly rawintegrationparameters_set_softBodiesMaxExtraSubsteps: (a: number, b: number) => void;
|
|
2324
|
+
readonly rawintegrationparameters_set_softBodiesRecovery: (a: number, b: number) => void;
|
|
2325
|
+
readonly rawintegrationparameters_set_softBodiesResweepStrain: (a: number, b: number) => void;
|
|
2326
|
+
readonly rawintegrationparameters_softBodiesContactStiffening: (a: number) => number;
|
|
2327
|
+
readonly rawintegrationparameters_softBodiesFemLinearTolerance: (a: number) => number;
|
|
2328
|
+
readonly rawintegrationparameters_softBodiesFemMaxDenseDofs: (a: number) => number;
|
|
2329
|
+
readonly rawintegrationparameters_softBodiesFemMaxLinearIterations: (a: number) => number;
|
|
2330
|
+
readonly rawintegrationparameters_softBodiesMaxExtraSubsteps: (a: number) => number;
|
|
2331
|
+
readonly rawintegrationparameters_softBodiesRecovery: (a: number) => number;
|
|
2332
|
+
readonly rawintegrationparameters_softBodiesResweepStrain: (a: number) => number;
|
|
2333
|
+
readonly rawislandmanager_forEachActiveRigidBodyHandle: (a: number, b: number) => void;
|
|
2334
|
+
readonly rawislandmanager_new: () => number;
|
|
2335
|
+
readonly rawkinematiccharactercontroller_autostepEnabled: (a: number) => number;
|
|
2336
|
+
readonly rawkinematiccharactercontroller_autostepIncludesDynamicBodies: (a: number) => number;
|
|
2337
|
+
readonly rawkinematiccharactercontroller_autostepMaxHeight: (a: number) => number;
|
|
2338
|
+
readonly rawkinematiccharactercontroller_autostepMinWidth: (a: number) => number;
|
|
2339
|
+
readonly rawkinematiccharactercontroller_computeColliderMovement: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => void;
|
|
2340
|
+
readonly rawkinematiccharactercontroller_computedCollision: (a: number, b: number, c: number) => number;
|
|
2341
|
+
readonly rawkinematiccharactercontroller_computedGrounded: (a: number) => number;
|
|
2342
|
+
readonly rawkinematiccharactercontroller_computedMovement: (a: number, b: number) => void;
|
|
2343
|
+
readonly rawkinematiccharactercontroller_disableAutostep: (a: number) => void;
|
|
2344
|
+
readonly rawkinematiccharactercontroller_disableSnapToGround: (a: number) => void;
|
|
2345
|
+
readonly rawkinematiccharactercontroller_enableAutostep: (a: number, b: number, c: number, d: number) => void;
|
|
2346
|
+
readonly rawkinematiccharactercontroller_enableSnapToGround: (a: number, b: number) => void;
|
|
2347
|
+
readonly rawkinematiccharactercontroller_maxSlopeClimbAngle: (a: number) => number;
|
|
2348
|
+
readonly rawkinematiccharactercontroller_minSlopeSlideAngle: (a: number) => number;
|
|
2349
|
+
readonly rawkinematiccharactercontroller_new: (a: number) => number;
|
|
2350
|
+
readonly rawkinematiccharactercontroller_normalNudgeFactor: (a: number) => number;
|
|
2351
|
+
readonly rawkinematiccharactercontroller_numComputedCollisions: (a: number) => number;
|
|
2352
|
+
readonly rawkinematiccharactercontroller_offset: (a: number) => number;
|
|
2353
|
+
readonly rawkinematiccharactercontroller_setMaxSlopeClimbAngle: (a: number, b: number) => void;
|
|
2354
|
+
readonly rawkinematiccharactercontroller_setMinSlopeSlideAngle: (a: number, b: number) => void;
|
|
2355
|
+
readonly rawkinematiccharactercontroller_setNormalNudgeFactor: (a: number, b: number) => void;
|
|
2356
|
+
readonly rawkinematiccharactercontroller_setOffset: (a: number, b: number) => void;
|
|
2357
|
+
readonly rawkinematiccharactercontroller_setSlideEnabled: (a: number, b: number) => void;
|
|
2358
|
+
readonly rawkinematiccharactercontroller_setUp: (a: number, b: number) => void;
|
|
2359
|
+
readonly rawkinematiccharactercontroller_slideEnabled: (a: number) => number;
|
|
2360
|
+
readonly rawkinematiccharactercontroller_snapToGroundDistance: (a: number) => number;
|
|
2361
|
+
readonly rawkinematiccharactercontroller_snapToGroundEnabled: (a: number) => number;
|
|
2362
|
+
readonly rawkinematiccharactercontroller_up: (a: number) => number;
|
|
2363
|
+
readonly rawmultibodyjointset_contains: (a: number, b: number) => number;
|
|
2364
|
+
readonly rawmultibodyjointset_createJoint: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
2365
|
+
readonly rawmultibodyjointset_forEachJointAttachedToRigidBody: (a: number, b: number, c: number) => void;
|
|
2366
|
+
readonly rawmultibodyjointset_forEachJointHandle: (a: number, b: number) => void;
|
|
2367
|
+
readonly rawmultibodyjointset_jointAnchor1: (a: number, b: number) => number;
|
|
2368
|
+
readonly rawmultibodyjointset_jointAnchor2: (a: number, b: number) => number;
|
|
2369
|
+
readonly rawmultibodyjointset_jointContactsEnabled: (a: number, b: number) => number;
|
|
2370
|
+
readonly rawmultibodyjointset_jointFrameX1: (a: number, b: number) => number;
|
|
2371
|
+
readonly rawmultibodyjointset_jointFrameX2: (a: number, b: number) => number;
|
|
2372
|
+
readonly rawmultibodyjointset_jointLimitsEnabled: (a: number, b: number, c: number) => number;
|
|
2373
|
+
readonly rawmultibodyjointset_jointLimitsMax: (a: number, b: number, c: number) => number;
|
|
2374
|
+
readonly rawmultibodyjointset_jointLimitsMin: (a: number, b: number, c: number) => number;
|
|
2375
|
+
readonly rawmultibodyjointset_jointSetContactsEnabled: (a: number, b: number, c: number) => void;
|
|
2376
|
+
readonly rawmultibodyjointset_jointType: (a: number, b: number) => number;
|
|
2377
|
+
readonly rawmultibodyjointset_new: () => number;
|
|
2378
|
+
readonly rawmultibodyjointset_remove: (a: number, b: number, c: number) => void;
|
|
2379
|
+
readonly rawnarrowphase_contact_pair: (a: number, b: number, c: number) => number;
|
|
2380
|
+
readonly rawnarrowphase_contact_pairs_with: (a: number, b: number, c: number) => void;
|
|
2381
|
+
readonly rawnarrowphase_intersection_pair: (a: number, b: number, c: number) => number;
|
|
2382
|
+
readonly rawnarrowphase_intersection_pairs_with: (a: number, b: number, c: number) => void;
|
|
2383
|
+
readonly rawnarrowphase_new: () => number;
|
|
2384
|
+
readonly rawphysicspipeline_is_profiler_enabled: (a: number) => number;
|
|
2385
|
+
readonly rawphysicspipeline_new: () => number;
|
|
2386
|
+
readonly rawphysicspipeline_set_profiler_enabled: (a: number, b: number) => void;
|
|
2387
|
+
readonly rawphysicspipeline_step: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
|
|
2388
|
+
readonly rawphysicspipeline_stepWithEvents: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number) => void;
|
|
2389
|
+
readonly rawphysicspipeline_timing_broad_phase: (a: number) => number;
|
|
2390
|
+
readonly rawphysicspipeline_timing_ccd: (a: number) => number;
|
|
2391
|
+
readonly rawphysicspipeline_timing_ccd_broad_phase: (a: number) => number;
|
|
2392
|
+
readonly rawphysicspipeline_timing_ccd_narrow_phase: (a: number) => number;
|
|
2393
|
+
readonly rawphysicspipeline_timing_ccd_solver: (a: number) => number;
|
|
2394
|
+
readonly rawphysicspipeline_timing_ccd_toi_computation: (a: number) => number;
|
|
2395
|
+
readonly rawphysicspipeline_timing_collision_detection: (a: number) => number;
|
|
2396
|
+
readonly rawphysicspipeline_timing_island_construction: (a: number) => number;
|
|
2397
|
+
readonly rawphysicspipeline_timing_narrow_phase: (a: number) => number;
|
|
2398
|
+
readonly rawphysicspipeline_timing_solver: (a: number) => number;
|
|
2399
|
+
readonly rawphysicspipeline_timing_step: (a: number) => number;
|
|
2400
|
+
readonly rawphysicspipeline_timing_user_changes: (a: number) => number;
|
|
2401
|
+
readonly rawphysicspipeline_timing_velocity_assembly: (a: number) => number;
|
|
2402
|
+
readonly rawphysicspipeline_timing_velocity_resolution: (a: number) => number;
|
|
2403
|
+
readonly rawphysicspipeline_timing_velocity_update: (a: number) => number;
|
|
2404
|
+
readonly rawphysicspipeline_timing_velocity_writeback: (a: number) => number;
|
|
2405
|
+
readonly rawpidcontroller_angular_correction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
2406
|
+
readonly rawpidcontroller_apply_angular_correction: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2407
|
+
readonly rawpidcontroller_apply_linear_correction: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2408
|
+
readonly rawpidcontroller_linear_correction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
2409
|
+
readonly rawpidcontroller_new: (a: number, b: number, c: number, d: number) => number;
|
|
2410
|
+
readonly rawpidcontroller_reset_integrals: (a: number) => void;
|
|
2411
|
+
readonly rawpidcontroller_set_axes_mask: (a: number, b: number) => void;
|
|
2412
|
+
readonly rawpidcontroller_set_kd: (a: number, b: number, c: number) => void;
|
|
2413
|
+
readonly rawpidcontroller_set_ki: (a: number, b: number, c: number) => void;
|
|
2414
|
+
readonly rawpidcontroller_set_kp: (a: number, b: number, c: number) => void;
|
|
2415
|
+
readonly rawpointcolliderprojection_colliderHandle: (a: number) => number;
|
|
2416
|
+
readonly rawpointcolliderprojection_featureId: (a: number) => number;
|
|
2417
|
+
readonly rawpointcolliderprojection_featureType: (a: number) => number;
|
|
2418
|
+
readonly rawpointcolliderprojection_isInside: (a: number) => number;
|
|
2419
|
+
readonly rawpointcolliderprojection_point: (a: number, b: number) => void;
|
|
2420
|
+
readonly rawpointprojection_isInside: (a: number) => number;
|
|
2421
|
+
readonly rawpointprojection_point: (a: number, b: number) => void;
|
|
2422
|
+
readonly rawraycolliderhit_colliderHandle: (a: number) => number;
|
|
2423
|
+
readonly rawraycolliderhit_timeOfImpact: (a: number) => number;
|
|
2424
|
+
readonly rawraycolliderintersection_colliderHandle: (a: number) => number;
|
|
2425
|
+
readonly rawraycolliderintersection_featureId: (a: number) => number;
|
|
2426
|
+
readonly rawraycolliderintersection_featureType: (a: number) => number;
|
|
2427
|
+
readonly rawraycolliderintersection_normal: (a: number, b: number) => void;
|
|
2428
|
+
readonly rawraycolliderintersection_time_of_impact: (a: number) => number;
|
|
2429
|
+
readonly rawrayintersection_featureId: (a: number) => number;
|
|
2430
|
+
readonly rawrayintersection_featureType: (a: number) => number;
|
|
2431
|
+
readonly rawrayintersection_normal: (a: number, b: number) => void;
|
|
2432
|
+
readonly rawrayintersection_time_of_impact: (a: number) => number;
|
|
2433
|
+
readonly rawrigidbodyset_contains: (a: number, b: number) => number;
|
|
2434
|
+
readonly rawrigidbodyset_createRigidBody: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number) => number;
|
|
2435
|
+
readonly rawrigidbodyset_forEachRigidBodyHandle: (a: number, b: number) => void;
|
|
2436
|
+
readonly rawrigidbodyset_len: (a: number) => number;
|
|
2437
|
+
readonly rawrigidbodyset_new: () => number;
|
|
2438
|
+
readonly rawrigidbodyset_propagateModifiedBodyPositionsToColliders: (a: number, b: number) => void;
|
|
2439
|
+
readonly rawrigidbodyset_rbAddForce: (a: number, b: number, c: number, d: number) => void;
|
|
2440
|
+
readonly rawrigidbodyset_rbAddForceAtPoint: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2441
|
+
readonly rawrigidbodyset_rbAddTorque: (a: number, b: number, c: number, d: number) => void;
|
|
2442
|
+
readonly rawrigidbodyset_rbAdditionalPgsIterations: (a: number, b: number) => number;
|
|
2443
|
+
readonly rawrigidbodyset_rbAdditionalSolverIterations: (a: number, b: number) => number;
|
|
2444
|
+
readonly rawrigidbodyset_rbAngularDamping: (a: number, b: number) => number;
|
|
2445
|
+
readonly rawrigidbodyset_rbAngvel: (a: number, b: number, c: number) => void;
|
|
2446
|
+
readonly rawrigidbodyset_rbApplyImpulse: (a: number, b: number, c: number, d: number) => void;
|
|
2447
|
+
readonly rawrigidbodyset_rbApplyImpulseAtPoint: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2448
|
+
readonly rawrigidbodyset_rbApplyTorqueImpulse: (a: number, b: number, c: number, d: number) => void;
|
|
2449
|
+
readonly rawrigidbodyset_rbBodyType: (a: number, b: number) => number;
|
|
2450
|
+
readonly rawrigidbodyset_rbCollider: (a: number, b: number, c: number) => number;
|
|
2451
|
+
readonly rawrigidbodyset_rbDominanceGroup: (a: number, b: number) => number;
|
|
2452
|
+
readonly rawrigidbodyset_rbEffectiveAngularInertia: (a: number, b: number, c: number) => void;
|
|
2453
|
+
readonly rawrigidbodyset_rbEffectiveInvMass: (a: number, b: number, c: number) => void;
|
|
2454
|
+
readonly rawrigidbodyset_rbEffectiveWorldInvInertia: (a: number, b: number, c: number) => void;
|
|
2455
|
+
readonly rawrigidbodyset_rbEnableCcd: (a: number, b: number, c: number) => void;
|
|
2456
|
+
readonly rawrigidbodyset_rbGravityScale: (a: number, b: number) => number;
|
|
2457
|
+
readonly rawrigidbodyset_rbInvMass: (a: number, b: number) => number;
|
|
2458
|
+
readonly rawrigidbodyset_rbInvPrincipalInertia: (a: number, b: number, c: number) => void;
|
|
2459
|
+
readonly rawrigidbodyset_rbIsCcdEnabled: (a: number, b: number) => number;
|
|
2460
|
+
readonly rawrigidbodyset_rbIsDynamic: (a: number, b: number) => number;
|
|
2461
|
+
readonly rawrigidbodyset_rbIsEnabled: (a: number, b: number) => number;
|
|
2462
|
+
readonly rawrigidbodyset_rbIsFixed: (a: number, b: number) => number;
|
|
2463
|
+
readonly rawrigidbodyset_rbIsKinematic: (a: number, b: number) => number;
|
|
2464
|
+
readonly rawrigidbodyset_rbIsMoving: (a: number, b: number) => number;
|
|
2465
|
+
readonly rawrigidbodyset_rbIsSleeping: (a: number, b: number) => number;
|
|
2466
|
+
readonly rawrigidbodyset_rbIsSoftFrame: (a: number, b: number) => number;
|
|
2467
|
+
readonly rawrigidbodyset_rbLinearDamping: (a: number, b: number) => number;
|
|
2468
|
+
readonly rawrigidbodyset_rbLinvel: (a: number, b: number, c: number) => void;
|
|
2469
|
+
readonly rawrigidbodyset_rbLocalCom: (a: number, b: number, c: number) => void;
|
|
2470
|
+
readonly rawrigidbodyset_rbLockRotations: (a: number, b: number, c: number, d: number) => void;
|
|
2471
|
+
readonly rawrigidbodyset_rbLockTranslations: (a: number, b: number, c: number, d: number) => void;
|
|
2472
|
+
readonly rawrigidbodyset_rbMass: (a: number, b: number) => number;
|
|
2473
|
+
readonly rawrigidbodyset_rbNextRotation: (a: number, b: number, c: number) => void;
|
|
2474
|
+
readonly rawrigidbodyset_rbNextTranslation: (a: number, b: number, c: number) => void;
|
|
2475
|
+
readonly rawrigidbodyset_rbNumColliders: (a: number, b: number) => number;
|
|
2476
|
+
readonly rawrigidbodyset_rbPrincipalInertia: (a: number, b: number, c: number) => void;
|
|
2477
|
+
readonly rawrigidbodyset_rbPrincipalInertiaLocalFrame: (a: number, b: number, c: number) => void;
|
|
2478
|
+
readonly rawrigidbodyset_rbRecomputeMassPropertiesFromColliders: (a: number, b: number, c: number) => void;
|
|
2479
|
+
readonly rawrigidbodyset_rbResetForces: (a: number, b: number, c: number) => void;
|
|
2480
|
+
readonly rawrigidbodyset_rbResetTorques: (a: number, b: number, c: number) => void;
|
|
2481
|
+
readonly rawrigidbodyset_rbRotation: (a: number, b: number, c: number) => void;
|
|
2482
|
+
readonly rawrigidbodyset_rbSetAdditionalMass: (a: number, b: number, c: number, d: number) => void;
|
|
2483
|
+
readonly rawrigidbodyset_rbSetAdditionalMassProperties: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
2484
|
+
readonly rawrigidbodyset_rbSetAdditionalPgsIterations: (a: number, b: number, c: number) => void;
|
|
2485
|
+
readonly rawrigidbodyset_rbSetAdditionalSolverIterations: (a: number, b: number, c: number) => void;
|
|
2486
|
+
readonly rawrigidbodyset_rbSetAngularDamping: (a: number, b: number, c: number) => void;
|
|
2487
|
+
readonly rawrigidbodyset_rbSetAngvel: (a: number, b: number, c: number, d: number) => void;
|
|
2488
|
+
readonly rawrigidbodyset_rbSetBodyType: (a: number, b: number, c: number, d: number) => void;
|
|
2489
|
+
readonly rawrigidbodyset_rbSetDominanceGroup: (a: number, b: number, c: number) => void;
|
|
2490
|
+
readonly rawrigidbodyset_rbSetEnabled: (a: number, b: number, c: number) => void;
|
|
2491
|
+
readonly rawrigidbodyset_rbSetEnabledRotations: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2492
|
+
readonly rawrigidbodyset_rbSetEnabledTranslations: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2493
|
+
readonly rawrigidbodyset_rbSetGravityScale: (a: number, b: number, c: number, d: number) => void;
|
|
2494
|
+
readonly rawrigidbodyset_rbSetLinearDamping: (a: number, b: number, c: number) => void;
|
|
2495
|
+
readonly rawrigidbodyset_rbSetLinvel: (a: number, b: number, c: number, d: number) => void;
|
|
2496
|
+
readonly rawrigidbodyset_rbSetNextKinematicRotation: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2497
|
+
readonly rawrigidbodyset_rbSetNextKinematicTranslation: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2498
|
+
readonly rawrigidbodyset_rbSetRotation: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
2499
|
+
readonly rawrigidbodyset_rbSetSoftCcdPrediction: (a: number, b: number, c: number) => void;
|
|
2500
|
+
readonly rawrigidbodyset_rbSetTranslation: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2501
|
+
readonly rawrigidbodyset_rbSetUserData: (a: number, b: number, c: number) => void;
|
|
2502
|
+
readonly rawrigidbodyset_rbSleep: (a: number, b: number) => void;
|
|
2503
|
+
readonly rawrigidbodyset_rbSoftBody: (a: number, b: number, c: number) => void;
|
|
2504
|
+
readonly rawrigidbodyset_rbSoftCcdPrediction: (a: number, b: number) => number;
|
|
2505
|
+
readonly rawrigidbodyset_rbSoftCluster: (a: number, b: number) => number;
|
|
2506
|
+
readonly rawrigidbodyset_rbTranslation: (a: number, b: number, c: number) => void;
|
|
2507
|
+
readonly rawrigidbodyset_rbUserData: (a: number, b: number) => number;
|
|
2508
|
+
readonly rawrigidbodyset_rbUserForce: (a: number, b: number, c: number) => void;
|
|
2509
|
+
readonly rawrigidbodyset_rbUserTorque: (a: number, b: number, c: number) => void;
|
|
2510
|
+
readonly rawrigidbodyset_rbVelocityAtPoint: (a: number, b: number, c: number, d: number) => void;
|
|
2511
|
+
readonly rawrigidbodyset_rbWakeUp: (a: number, b: number) => void;
|
|
2512
|
+
readonly rawrigidbodyset_rbWorldCom: (a: number, b: number, c: number) => void;
|
|
2513
|
+
readonly rawrigidbodyset_remove: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
2514
|
+
readonly rawrotation_identity: () => number;
|
|
2515
|
+
readonly rawrotation_new: (a: number, b: number, c: number, d: number) => number;
|
|
2516
|
+
readonly rawrotation_w: (a: number) => number;
|
|
2517
|
+
readonly rawrotation_x: (a: number) => number;
|
|
2518
|
+
readonly rawrotation_y: (a: number) => number;
|
|
2519
|
+
readonly rawrotation_z: (a: number) => number;
|
|
2520
|
+
readonly rawsdpmatrix3_elements: (a: number) => number;
|
|
2521
|
+
readonly rawserializationpipeline_deserializeAll: (a: number, b: number) => number;
|
|
2522
|
+
readonly rawserializationpipeline_new: () => number;
|
|
2523
|
+
readonly rawserializationpipeline_serializeAll: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => number;
|
|
2524
|
+
readonly rawshape_ball: (a: number) => number;
|
|
2525
|
+
readonly rawshape_capsule: (a: number, b: number) => number;
|
|
2526
|
+
readonly rawshape_castRay: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
2527
|
+
readonly rawshape_castRayAndGetNormal: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
2528
|
+
readonly rawshape_castShape: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => number;
|
|
2529
|
+
readonly rawshape_compound: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
2530
|
+
readonly rawshape_compoundFlags: (a: number) => number;
|
|
2531
|
+
readonly rawshape_compoundLen: (a: number) => number;
|
|
2532
|
+
readonly rawshape_compoundRotation: (a: number, b: number) => number;
|
|
2533
|
+
readonly rawshape_compoundShape: (a: number, b: number) => number;
|
|
2534
|
+
readonly rawshape_compoundTranslation: (a: number, b: number) => number;
|
|
2535
|
+
readonly rawshape_cone: (a: number, b: number) => number;
|
|
2536
|
+
readonly rawshape_contactShape: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
2537
|
+
readonly rawshape_containsPoint: (a: number, b: number, c: number, d: number) => number;
|
|
2538
|
+
readonly rawshape_convexDecomposition: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
2539
|
+
readonly rawshape_convexDecompositionWithParams: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
2540
|
+
readonly rawshape_convexHull: (a: number, b: number) => number;
|
|
2541
|
+
readonly rawshape_convexMesh: (a: number, b: number, c: number, d: number) => number;
|
|
2542
|
+
readonly rawshape_convexMeshData: (a: number) => number;
|
|
2543
|
+
readonly rawshape_cuboid: (a: number, b: number, c: number) => number;
|
|
2544
|
+
readonly rawshape_cylinder: (a: number, b: number) => number;
|
|
2545
|
+
readonly rawshape_halfExtents: (a: number) => number;
|
|
2546
|
+
readonly rawshape_halfHeight: (a: number) => number;
|
|
2547
|
+
readonly rawshape_halfspace: (a: number) => number;
|
|
2548
|
+
readonly rawshape_halfspaceNormal: (a: number) => number;
|
|
2549
|
+
readonly rawshape_heightFieldFlags: (a: number) => number;
|
|
2550
|
+
readonly rawshape_heightfield: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
2551
|
+
readonly rawshape_heightfieldHeights: (a: number, b: number) => void;
|
|
2552
|
+
readonly rawshape_heightfieldNCols: (a: number) => number;
|
|
2553
|
+
readonly rawshape_heightfieldNRows: (a: number) => number;
|
|
2554
|
+
readonly rawshape_heightfieldScale: (a: number) => number;
|
|
2555
|
+
readonly rawshape_indices: (a: number, b: number) => void;
|
|
2556
|
+
readonly rawshape_intersectsRay: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
2557
|
+
readonly rawshape_intersectsShape: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
2558
|
+
readonly rawshape_polyline: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
2559
|
+
readonly rawshape_polylineFlags: (a: number) => number;
|
|
2560
|
+
readonly rawshape_projectPoint: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
2561
|
+
readonly rawshape_radius: (a: number) => number;
|
|
2562
|
+
readonly rawshape_roundCone: (a: number, b: number, c: number) => number;
|
|
2563
|
+
readonly rawshape_roundConvexHull: (a: number, b: number, c: number) => number;
|
|
2564
|
+
readonly rawshape_roundConvexMesh: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
2565
|
+
readonly rawshape_roundCuboid: (a: number, b: number, c: number, d: number) => number;
|
|
2566
|
+
readonly rawshape_roundCylinder: (a: number, b: number, c: number) => number;
|
|
2567
|
+
readonly rawshape_roundRadius: (a: number) => number;
|
|
2568
|
+
readonly rawshape_roundTriangle: (a: number, b: number, c: number, d: number) => number;
|
|
2569
|
+
readonly rawshape_segment: (a: number, b: number) => number;
|
|
2570
|
+
readonly rawshape_shapeType: (a: number) => number;
|
|
2571
|
+
readonly rawshape_triMeshFlags: (a: number) => number;
|
|
2572
|
+
readonly rawshape_triangle: (a: number, b: number, c: number) => number;
|
|
2573
|
+
readonly rawshape_trimesh: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
2574
|
+
readonly rawshape_vertices: (a: number, b: number) => void;
|
|
2575
|
+
readonly rawshape_voxelData: (a: number, b: number) => void;
|
|
2576
|
+
readonly rawshape_voxelSize: (a: number) => number;
|
|
2577
|
+
readonly rawshape_voxels: (a: number, b: number, c: number) => number;
|
|
2578
|
+
readonly rawshape_voxelsFromPoints: (a: number, b: number, c: number) => number;
|
|
2579
|
+
readonly rawshapecasthit_getComponents: (a: number, b: number) => void;
|
|
2580
|
+
readonly rawshapecontact_getComponents: (a: number, b: number) => void;
|
|
2581
|
+
readonly rawsoftbodybuilder_addEdges: (a: number, b: number, c: number) => void;
|
|
2582
|
+
readonly rawsoftbodybuilder_append: (a: number, b: number) => void;
|
|
2583
|
+
readonly rawsoftbodybuilder_cellEdges: (a: number, b: number) => void;
|
|
2584
|
+
readonly rawsoftbodybuilder_cloth: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
2585
|
+
readonly rawsoftbodybuilder_clothAnisotropic: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => number;
|
|
2586
|
+
readonly rawsoftbodybuilder_clothTube: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
2587
|
+
readonly rawsoftbodybuilder_cuboid: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
2588
|
+
readonly rawsoftbodybuilder_material: (a: number) => number;
|
|
2589
|
+
readonly rawsoftbodybuilder_new: (a: number, b: number) => number;
|
|
2590
|
+
readonly rawsoftbodybuilder_numParticles: (a: number) => number;
|
|
2591
|
+
readonly rawsoftbodybuilder_particlePositions: (a: number, b: number) => void;
|
|
2592
|
+
readonly rawsoftbodybuilder_rope: (a: number, b: number, c: number) => number;
|
|
2593
|
+
readonly rawsoftbodybuilder_setAdditionalPgsIterations: (a: number, b: number) => void;
|
|
2594
|
+
readonly rawsoftbodybuilder_setAdditionalSolverIterations: (a: number, b: number) => void;
|
|
2595
|
+
readonly rawsoftbodybuilder_setBendEdges: (a: number, b: number, c: number) => void;
|
|
2596
|
+
readonly rawsoftbodybuilder_setCanSleep: (a: number, b: number) => void;
|
|
2597
|
+
readonly rawsoftbodybuilder_setCellModel: (a: number, b: number) => void;
|
|
2598
|
+
readonly rawsoftbodybuilder_setCells: (a: number, b: number, c: number) => void;
|
|
2599
|
+
readonly rawsoftbodybuilder_setDihedrals: (a: number, b: number, c: number) => void;
|
|
2600
|
+
readonly rawsoftbodybuilder_setDominanceGroup: (a: number, b: number) => void;
|
|
2601
|
+
readonly rawsoftbodybuilder_setEdgeSoftness: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
2602
|
+
readonly rawsoftbodybuilder_setEdgeTearResistance: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2603
|
+
readonly rawsoftbodybuilder_setEdges: (a: number, b: number, c: number) => void;
|
|
2604
|
+
readonly rawsoftbodybuilder_setGravityScale: (a: number, b: number) => void;
|
|
2605
|
+
readonly rawsoftbodybuilder_setLinearDamping: (a: number, b: number) => void;
|
|
2606
|
+
readonly rawsoftbodybuilder_setMass: (a: number, b: number) => void;
|
|
2607
|
+
readonly rawsoftbodybuilder_setMasses: (a: number, b: number, c: number) => void;
|
|
2608
|
+
readonly rawsoftbodybuilder_setMaterial: (a: number, b: number) => void;
|
|
2609
|
+
readonly rawsoftbodybuilder_setNoSurfaceCollider: (a: number) => void;
|
|
2610
|
+
readonly rawsoftbodybuilder_setOriented: (a: number, b: number) => void;
|
|
2611
|
+
readonly rawsoftbodybuilder_setParticleMass: (a: number, b: number) => void;
|
|
2612
|
+
readonly rawsoftbodybuilder_setParticleRadius: (a: number, b: number) => void;
|
|
2613
|
+
readonly rawsoftbodybuilder_setPinnedParticles: (a: number, b: number, c: number) => void;
|
|
2614
|
+
readonly rawsoftbodybuilder_setPositions: (a: number, b: number, c: number) => void;
|
|
2615
|
+
readonly rawsoftbodybuilder_setSelfContacts: (a: number, b: number) => void;
|
|
2616
|
+
readonly rawsoftbodybuilder_setShapeMatching: (a: number, b: number) => void;
|
|
2617
|
+
readonly rawsoftbodybuilder_setSkin: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2618
|
+
readonly rawsoftbodybuilder_setSkinCollision: (a: number, b: number) => void;
|
|
2619
|
+
readonly rawsoftbodybuilder_setSoftness: (a: number, b: number, c: number) => void;
|
|
2620
|
+
readonly rawsoftbodybuilder_setSolver: (a: number, b: number) => void;
|
|
2621
|
+
readonly rawsoftbodybuilder_setSurface: (a: number, b: number, c: number) => void;
|
|
2622
|
+
readonly rawsoftbodybuilder_setSurfaceCollider: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => void;
|
|
2623
|
+
readonly rawsoftbodybuilder_setTensionOnly: (a: number) => void;
|
|
2624
|
+
readonly rawsoftbodybuilder_setVolumeFactor: (a: number, b: number) => void;
|
|
2625
|
+
readonly rawsoftbodybuilder_setVolumePreservation: (a: number, b: number) => void;
|
|
2626
|
+
readonly rawsoftbodybuilder_setWire: (a: number, b: number, c: number) => void;
|
|
2627
|
+
readonly rawsoftbodybuilder_sphere: (a: number, b: number, c: number) => number;
|
|
2628
|
+
readonly rawsoftbodybuilder_surfaceDihedrals: (a: number, b: number) => void;
|
|
2629
|
+
readonly rawsoftbodybuilder_surfaceEdges: (a: number, b: number) => void;
|
|
2630
|
+
readonly rawsoftbodybuilder_translated: (a: number, b: number) => void;
|
|
2631
|
+
readonly rawsoftbodybuilder_trimesh: (a: number, b: number, c: number, d: number) => number;
|
|
2632
|
+
readonly rawsoftbodybuilder_volumetric: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
2633
|
+
readonly rawsoftbodymaterial_bendDampingRatio: (a: number) => number;
|
|
2634
|
+
readonly rawsoftbodymaterial_bendFrequency: (a: number) => number;
|
|
2635
|
+
readonly rawsoftbodymaterial_deformationDamping: (a: number) => number;
|
|
2636
|
+
readonly rawsoftbodymaterial_edgeDampingRatio: (a: number) => number;
|
|
2637
|
+
readonly rawsoftbodymaterial_edgeFrequency: (a: number) => number;
|
|
2638
|
+
readonly rawsoftbodymaterial_edgePlasticCreep: (a: number) => number;
|
|
2639
|
+
readonly rawsoftbodymaterial_edgePlasticFlow: (a: number) => number;
|
|
2640
|
+
readonly rawsoftbodymaterial_edgePlasticMax: (a: number) => number;
|
|
2641
|
+
readonly rawsoftbodymaterial_edgePlasticYield: (a: number) => number;
|
|
2642
|
+
readonly rawsoftbodymaterial_elasticDampingRatio: (a: number) => number;
|
|
2643
|
+
readonly rawsoftbodymaterial_interiorStrength: (a: number) => number;
|
|
2644
|
+
readonly rawsoftbodymaterial_maxTearsPerStep: (a: number) => number;
|
|
2645
|
+
readonly rawsoftbodymaterial_minPiece: (a: number) => number;
|
|
2646
|
+
readonly rawsoftbodymaterial_new: () => number;
|
|
2647
|
+
readonly rawsoftbodymaterial_plasticCreep: (a: number) => number;
|
|
2648
|
+
readonly rawsoftbodymaterial_plasticMax: (a: number) => number;
|
|
2649
|
+
readonly rawsoftbodymaterial_plasticYield: (a: number) => number;
|
|
2650
|
+
readonly rawsoftbodymaterial_poissonRatio: (a: number) => number;
|
|
2651
|
+
readonly rawsoftbodymaterial_set_bendDampingRatio: (a: number, b: number) => void;
|
|
2652
|
+
readonly rawsoftbodymaterial_set_bendFrequency: (a: number, b: number) => void;
|
|
2653
|
+
readonly rawsoftbodymaterial_set_deformationDamping: (a: number, b: number) => void;
|
|
2654
|
+
readonly rawsoftbodymaterial_set_edgeDampingRatio: (a: number, b: number) => void;
|
|
2655
|
+
readonly rawsoftbodymaterial_set_edgeFrequency: (a: number, b: number) => void;
|
|
2656
|
+
readonly rawsoftbodymaterial_set_edgePlasticCreep: (a: number, b: number) => void;
|
|
2657
|
+
readonly rawsoftbodymaterial_set_edgePlasticFlow: (a: number, b: number) => void;
|
|
2658
|
+
readonly rawsoftbodymaterial_set_edgePlasticMax: (a: number, b: number) => void;
|
|
2659
|
+
readonly rawsoftbodymaterial_set_edgePlasticYield: (a: number, b: number) => void;
|
|
2660
|
+
readonly rawsoftbodymaterial_set_elasticDampingRatio: (a: number, b: number) => void;
|
|
2661
|
+
readonly rawsoftbodymaterial_set_interiorStrength: (a: number, b: number) => void;
|
|
2662
|
+
readonly rawsoftbodymaterial_set_maxTearsPerStep: (a: number, b: number) => void;
|
|
2663
|
+
readonly rawsoftbodymaterial_set_minPiece: (a: number, b: number) => void;
|
|
2664
|
+
readonly rawsoftbodymaterial_set_plasticCreep: (a: number, b: number) => void;
|
|
2665
|
+
readonly rawsoftbodymaterial_set_plasticMax: (a: number, b: number) => void;
|
|
2666
|
+
readonly rawsoftbodymaterial_set_plasticYield: (a: number, b: number) => void;
|
|
2667
|
+
readonly rawsoftbodymaterial_set_poissonRatio: (a: number, b: number) => void;
|
|
2668
|
+
readonly rawsoftbodymaterial_set_shapeMatchingDampingRatio: (a: number, b: number) => void;
|
|
2669
|
+
readonly rawsoftbodymaterial_set_shapeMatchingFrequency: (a: number, b: number) => void;
|
|
2670
|
+
readonly rawsoftbodymaterial_set_tearForce: (a: number, b: number) => void;
|
|
2671
|
+
readonly rawsoftbodymaterial_set_tearSmoothing: (a: number, b: number) => void;
|
|
2672
|
+
readonly rawsoftbodymaterial_set_tearStrain: (a: number, b: number) => void;
|
|
2673
|
+
readonly rawsoftbodymaterial_set_volumeDampingRatio: (a: number, b: number) => void;
|
|
2674
|
+
readonly rawsoftbodymaterial_set_volumeFrequency: (a: number, b: number) => void;
|
|
2675
|
+
readonly rawsoftbodymaterial_set_youngModulus: (a: number, b: number) => void;
|
|
2676
|
+
readonly rawsoftbodymaterial_shapeMatchingDampingRatio: (a: number) => number;
|
|
2677
|
+
readonly rawsoftbodymaterial_shapeMatchingFrequency: (a: number) => number;
|
|
2678
|
+
readonly rawsoftbodymaterial_tearForce: (a: number) => number;
|
|
2679
|
+
readonly rawsoftbodymaterial_tearSmoothing: (a: number) => number;
|
|
2680
|
+
readonly rawsoftbodymaterial_tearStrain: (a: number) => number;
|
|
2681
|
+
readonly rawsoftbodymaterial_tears: (a: number) => number;
|
|
2682
|
+
readonly rawsoftbodymaterial_uniform: (a: number, b: number) => number;
|
|
2683
|
+
readonly rawsoftbodymaterial_volumeDampingRatio: (a: number) => number;
|
|
2684
|
+
readonly rawsoftbodymaterial_volumeFrequency: (a: number) => number;
|
|
2685
|
+
readonly rawsoftbodymaterial_youngModulus: (a: number) => number;
|
|
2686
|
+
readonly rawsoftbodyset_addCluster: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
2687
|
+
readonly rawsoftbodyset_contains: (a: number, b: number) => number;
|
|
2688
|
+
readonly rawsoftbodyset_cut: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
2689
|
+
readonly rawsoftbodyset_forEachSoftBodyHandle: (a: number, b: number) => void;
|
|
2690
|
+
readonly rawsoftbodyset_insert: (a: number, b: number, c: number, d: number) => number;
|
|
2691
|
+
readonly rawsoftbodyset_len: (a: number) => number;
|
|
2692
|
+
readonly rawsoftbodyset_new: () => number;
|
|
2693
|
+
readonly rawsoftbodyset_remove: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
2694
|
+
readonly rawsoftbodyset_removeCluster: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
2695
|
+
readonly rawsoftbodyset_sbAddForce: (a: number, b: number, c: number, d: number) => void;
|
|
2696
|
+
readonly rawsoftbodyset_sbAddParticleForce: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2697
|
+
readonly rawsoftbodyset_sbApplyImpulse: (a: number, b: number, c: number, d: number) => void;
|
|
2698
|
+
readonly rawsoftbodyset_sbApplyImpulseAtPoint: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2699
|
+
readonly rawsoftbodyset_sbApplyParticleImpulse: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2700
|
+
readonly rawsoftbodyset_sbApplyRadialImpulse: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2701
|
+
readonly rawsoftbodyset_sbAttachParticle: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2702
|
+
readonly rawsoftbodyset_sbAttachmentBody: (a: number, b: number, c: number) => number;
|
|
2703
|
+
readonly rawsoftbodyset_sbAttachmentParticle: (a: number, b: number, c: number) => number;
|
|
2704
|
+
readonly rawsoftbodyset_sbBoundary: (a: number, b: number, c: number) => void;
|
|
2705
|
+
readonly rawsoftbodyset_sbCellModel: (a: number, b: number) => number;
|
|
2706
|
+
readonly rawsoftbodyset_sbCellRestVolume: (a: number, b: number, c: number) => number;
|
|
2707
|
+
readonly rawsoftbodyset_sbCellStiffnessScale: (a: number, b: number, c: number) => number;
|
|
2708
|
+
readonly rawsoftbodyset_sbCellStress: (a: number, b: number, c: number) => number;
|
|
2709
|
+
readonly rawsoftbodyset_sbCellTearResistance: (a: number, b: number, c: number) => number;
|
|
2710
|
+
readonly rawsoftbodyset_sbCells: (a: number, b: number, c: number) => void;
|
|
2711
|
+
readonly rawsoftbodyset_sbCenterOfMass: (a: number, b: number, c: number) => void;
|
|
2712
|
+
readonly rawsoftbodyset_sbClusterParticles: (a: number, b: number, c: number, d: number) => void;
|
|
2713
|
+
readonly rawsoftbodyset_sbClusterProxy: (a: number, b: number, c: number, d: number) => void;
|
|
2714
|
+
readonly rawsoftbodyset_sbClusterShapeMatchingEnabled: (a: number, b: number, c: number) => number;
|
|
2715
|
+
readonly rawsoftbodyset_sbDetachParticle: (a: number, b: number, c: number) => number;
|
|
2716
|
+
readonly rawsoftbodyset_sbDihedralRestAngle: (a: number, b: number, c: number) => number;
|
|
2717
|
+
readonly rawsoftbodyset_sbDihedrals: (a: number, b: number, c: number) => void;
|
|
2718
|
+
readonly rawsoftbodyset_sbEdgeImpulse: (a: number, b: number, c: number) => number;
|
|
2719
|
+
readonly rawsoftbodyset_sbEdgeIsBend: (a: number, b: number, c: number) => number;
|
|
2720
|
+
readonly rawsoftbodyset_sbEdgePlasticStrain: (a: number, b: number, c: number) => number;
|
|
2721
|
+
readonly rawsoftbodyset_sbEdgeRestLength: (a: number, b: number, c: number) => number;
|
|
2722
|
+
readonly rawsoftbodyset_sbEdgeStress: (a: number, b: number, c: number) => number;
|
|
2723
|
+
readonly rawsoftbodyset_sbEdgeTearResistance: (a: number, b: number, c: number) => number;
|
|
2724
|
+
readonly rawsoftbodyset_sbEdges: (a: number, b: number, c: number) => void;
|
|
2725
|
+
readonly rawsoftbodyset_sbEnableClusterShapeMatching: (a: number, b: number, c: number, d: number) => void;
|
|
2726
|
+
readonly rawsoftbodyset_sbEnableVolumePreservation: (a: number, b: number, c: number) => void;
|
|
2727
|
+
readonly rawsoftbodyset_sbGravityScale: (a: number, b: number) => number;
|
|
2728
|
+
readonly rawsoftbodyset_sbHasPendingTears: (a: number, b: number) => number;
|
|
2729
|
+
readonly rawsoftbodyset_sbIsClusterLive: (a: number, b: number, c: number) => number;
|
|
2730
|
+
readonly rawsoftbodyset_sbIsEnabled: (a: number, b: number) => number;
|
|
2731
|
+
readonly rawsoftbodyset_sbIsParticleDamaged: (a: number, b: number, c: number) => number;
|
|
2732
|
+
readonly rawsoftbodyset_sbIsParticleOnSurface: (a: number, b: number, c: number) => number;
|
|
2733
|
+
readonly rawsoftbodyset_sbIsParticlePinned: (a: number, b: number, c: number) => number;
|
|
2734
|
+
readonly rawsoftbodyset_sbIsSleeping: (a: number, b: number) => number;
|
|
2735
|
+
readonly rawsoftbodyset_sbLinearDamping: (a: number, b: number) => number;
|
|
2736
|
+
readonly rawsoftbodyset_sbMass: (a: number, b: number) => number;
|
|
2737
|
+
readonly rawsoftbodyset_sbMaterial: (a: number, b: number) => number;
|
|
2738
|
+
readonly rawsoftbodyset_sbMeshCluster: (a: number, b: number, c: number) => number;
|
|
2739
|
+
readonly rawsoftbodyset_sbMeshCollider: (a: number, b: number, c: number, d: number) => void;
|
|
2740
|
+
readonly rawsoftbodyset_sbMeshCollisionEnabled: (a: number, b: number, c: number) => number;
|
|
2741
|
+
readonly rawsoftbodyset_sbMeshIndices: (a: number, b: number, c: number, d: number) => void;
|
|
2742
|
+
readonly rawsoftbodyset_sbMeshIsOriented: (a: number, b: number, c: number) => number;
|
|
2743
|
+
readonly rawsoftbodyset_sbMeshIsSkinned: (a: number, b: number, c: number) => number;
|
|
2744
|
+
readonly rawsoftbodyset_sbMeshOfCollider: (a: number, b: number, c: number) => number;
|
|
2745
|
+
readonly rawsoftbodyset_sbMeshVertices: (a: number, b: number, c: number, d: number) => void;
|
|
2746
|
+
readonly rawsoftbodyset_sbNumAttachments: (a: number, b: number) => number;
|
|
2747
|
+
readonly rawsoftbodyset_sbNumCells: (a: number, b: number) => number;
|
|
2748
|
+
readonly rawsoftbodyset_sbNumClusters: (a: number, b: number) => number;
|
|
2749
|
+
readonly rawsoftbodyset_sbNumDihedrals: (a: number, b: number) => number;
|
|
2750
|
+
readonly rawsoftbodyset_sbNumEdges: (a: number, b: number) => number;
|
|
2751
|
+
readonly rawsoftbodyset_sbNumMeshes: (a: number, b: number) => number;
|
|
2752
|
+
readonly rawsoftbodyset_sbNumParticles: (a: number, b: number) => number;
|
|
2753
|
+
readonly rawsoftbodyset_sbOrigin: (a: number, b: number, c: number) => void;
|
|
2754
|
+
readonly rawsoftbodyset_sbParticleMass: (a: number, b: number, c: number) => number;
|
|
2755
|
+
readonly rawsoftbodyset_sbParticlePosition: (a: number, b: number, c: number, d: number) => void;
|
|
2756
|
+
readonly rawsoftbodyset_sbParticlePositions: (a: number, b: number, c: number) => void;
|
|
2757
|
+
readonly rawsoftbodyset_sbParticleRadius: (a: number, b: number) => number;
|
|
2758
|
+
readonly rawsoftbodyset_sbParticleRestPosition: (a: number, b: number, c: number, d: number) => void;
|
|
2759
|
+
readonly rawsoftbodyset_sbParticleVelocities: (a: number, b: number, c: number) => void;
|
|
2760
|
+
readonly rawsoftbodyset_sbParticleVelocity: (a: number, b: number, c: number, d: number) => void;
|
|
2761
|
+
readonly rawsoftbodyset_sbPieces: (a: number, b: number, c: number) => void;
|
|
2762
|
+
readonly rawsoftbodyset_sbResetForces: (a: number, b: number, c: number) => void;
|
|
2763
|
+
readonly rawsoftbodyset_sbResetPlasticity: (a: number, b: number) => void;
|
|
2764
|
+
readonly rawsoftbodyset_sbRestVolume: (a: number, b: number) => number;
|
|
2765
|
+
readonly rawsoftbodyset_sbRootBody: (a: number, b: number) => number;
|
|
2766
|
+
readonly rawsoftbodyset_sbSetAdditionalPgsIterations: (a: number, b: number, c: number) => void;
|
|
2767
|
+
readonly rawsoftbodyset_sbSetClusterEdgeSoftness: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2768
|
+
readonly rawsoftbodyset_sbSetClusterKinematicTarget: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2769
|
+
readonly rawsoftbodyset_sbSetClusterPinned: (a: number, b: number, c: number, d: number) => void;
|
|
2770
|
+
readonly rawsoftbodyset_sbSetClusterStiffnessScale: (a: number, b: number, c: number, d: number) => void;
|
|
2771
|
+
readonly rawsoftbodyset_sbSetClusterTearResistance: (a: number, b: number, c: number, d: number) => void;
|
|
2772
|
+
readonly rawsoftbodyset_sbSetEnabled: (a: number, b: number, c: number) => void;
|
|
2773
|
+
readonly rawsoftbodyset_sbSetMaterial: (a: number, b: number, c: number) => void;
|
|
2774
|
+
readonly rawsoftbodyset_sbSetParticleKinematicTarget: (a: number, b: number, c: number, d: number) => void;
|
|
2775
|
+
readonly rawsoftbodyset_sbSetParticlePinned: (a: number, b: number, c: number, d: number) => void;
|
|
2776
|
+
readonly rawsoftbodyset_sbSetParticlePosition: (a: number, b: number, c: number, d: number) => void;
|
|
2777
|
+
readonly rawsoftbodyset_sbSetParticleVelocity: (a: number, b: number, c: number, d: number) => void;
|
|
2778
|
+
readonly rawsoftbodyset_sbSetSolver: (a: number, b: number, c: number) => void;
|
|
2779
|
+
readonly rawsoftbodyset_sbSetUserData: (a: number, b: number, c: number) => void;
|
|
2780
|
+
readonly rawsoftbodyset_sbSetVolumeFactor: (a: number, b: number, c: number) => void;
|
|
2781
|
+
readonly rawsoftbodyset_sbSolver: (a: number, b: number) => number;
|
|
2782
|
+
readonly rawsoftbodyset_sbTearCell: (a: number, b: number, c: number) => void;
|
|
2783
|
+
readonly rawsoftbodyset_sbTearEdge: (a: number, b: number, c: number) => void;
|
|
2784
|
+
readonly rawsoftbodyset_sbTopologyVersion: (a: number, b: number) => number;
|
|
2785
|
+
readonly rawsoftbodyset_sbUserData: (a: number, b: number) => number;
|
|
2786
|
+
readonly rawsoftbodyset_sbVolume: (a: number, b: number) => number;
|
|
2787
|
+
readonly rawsoftbodyset_sbVolumeFactor: (a: number, b: number) => number;
|
|
2788
|
+
readonly rawsoftbodyset_sbVolumePreservationEnabled: (a: number, b: number) => number;
|
|
2789
|
+
readonly rawsoftbodyset_sbWakeUp: (a: number, b: number) => void;
|
|
2790
|
+
readonly rawsoftbodyset_tear: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => number;
|
|
2791
|
+
readonly rawsoftbodyset_wakeUp: (a: number, b: number, c: number, d: number) => void;
|
|
2792
|
+
readonly rawsoftbodytearevent_clusterSplitCluster: (a: number, b: number) => number;
|
|
2793
|
+
readonly rawsoftbodytearevent_clusterSplitKeepsProxy: (a: number, b: number) => number;
|
|
2794
|
+
readonly rawsoftbodytearevent_clusterSplitProxy: (a: number, b: number) => number;
|
|
2795
|
+
readonly rawsoftbodytearevent_clusterSplitSoftBody: (a: number, b: number) => number;
|
|
2796
|
+
readonly rawsoftbodytearevent_clusterSplitSource: (a: number, b: number) => number;
|
|
2797
|
+
readonly rawsoftbodytearevent_insertedParticles: (a: number, b: number) => void;
|
|
2798
|
+
readonly rawsoftbodytearevent_movedJoint: (a: number, b: number) => number;
|
|
2799
|
+
readonly rawsoftbodytearevent_movedJointFrom: (a: number, b: number) => number;
|
|
2800
|
+
readonly rawsoftbodytearevent_movedJointTo: (a: number, b: number) => number;
|
|
2801
|
+
readonly rawsoftbodytearevent_numClusterSplits: (a: number) => number;
|
|
2802
|
+
readonly rawsoftbodytearevent_numMovedJoints: (a: number) => number;
|
|
2803
|
+
readonly rawsoftbodytearevent_numPieces: (a: number) => number;
|
|
2804
|
+
readonly rawsoftbodytearevent_particleDestinationBody: (a: number, b: number, c: number) => void;
|
|
2805
|
+
readonly rawsoftbodytearevent_particleDestinationIndex: (a: number, b: number) => number;
|
|
2806
|
+
readonly rawsoftbodytearevent_pieceClusters: (a: number, b: number, c: number) => void;
|
|
2807
|
+
readonly rawsoftbodytearevent_pieceParticles: (a: number, b: number, c: number) => void;
|
|
2808
|
+
readonly rawsoftbodytearevent_pieceSoftBody: (a: number, b: number) => number;
|
|
2809
|
+
readonly rawsoftbodytearevent_removedEdges: (a: number, b: number) => void;
|
|
2810
|
+
readonly rawsoftbodytearevent_seeds: (a: number, b: number) => void;
|
|
2811
|
+
readonly rawsoftbodytearevent_softBody: (a: number) => number;
|
|
2812
|
+
readonly rawsoftbodytearevent_splitParticles: (a: number, b: number) => void;
|
|
2813
|
+
readonly rawsoftbodytearevent_tornCells: (a: number, b: number) => void;
|
|
2814
|
+
readonly rawsoftbodytearevent_tornEdges: (a: number, b: number) => void;
|
|
2815
|
+
readonly rawsoftrecoverysettings_authoredVelocityMargin: (a: number) => number;
|
|
2816
|
+
readonly rawsoftrecoverysettings_crossBodyDetection: (a: number) => number;
|
|
2817
|
+
readonly rawsoftrecoverysettings_crossBodyExpelGate: (a: number) => number;
|
|
2818
|
+
readonly rawsoftrecoverysettings_crossingRepulsion: (a: number) => number;
|
|
2819
|
+
readonly rawsoftrecoverysettings_crossingRepulsionGuide: (a: number) => number;
|
|
2820
|
+
readonly rawsoftrecoverysettings_crossingRepulsionSelfGuide: (a: number) => number;
|
|
2821
|
+
readonly rawsoftrecoverysettings_detectionMotionGating: (a: number) => number;
|
|
2822
|
+
readonly rawsoftrecoverysettings_edgeSpeculation: (a: number) => number;
|
|
2823
|
+
readonly rawsoftrecoverysettings_edgeStandDown: (a: number) => number;
|
|
2824
|
+
readonly rawsoftrecoverysettings_invertedCellDetection: (a: number) => number;
|
|
2825
|
+
readonly rawsoftrecoverysettings_new: () => number;
|
|
2826
|
+
readonly rawsoftrecoverysettings_overlapConstraintPace: (a: number) => number;
|
|
2827
|
+
readonly rawsoftrecoverysettings_overlapConstraints: (a: number) => number;
|
|
2828
|
+
readonly rawsoftrecoverysettings_overlapEdgeStandDown: (a: number) => number;
|
|
2829
|
+
readonly rawsoftrecoverysettings_overlapKeptDepth: (a: number) => number;
|
|
2830
|
+
readonly rawsoftrecoverysettings_overlapMultiVolume: (a: number) => number;
|
|
2831
|
+
readonly rawsoftrecoverysettings_overlapNormalPush: (a: number) => number;
|
|
2832
|
+
readonly rawsoftrecoverysettings_overlapPatchConstraints: (a: number) => number;
|
|
2833
|
+
readonly rawsoftrecoverysettings_overlapPatience: (a: number) => number;
|
|
2834
|
+
readonly rawsoftrecoverysettings_overlapProgressMargin: (a: number) => number;
|
|
2835
|
+
readonly rawsoftrecoverysettings_overlapRigid: (a: number) => number;
|
|
2836
|
+
readonly rawsoftrecoverysettings_overlapSelfRegions: (a: number) => number;
|
|
2837
|
+
readonly rawsoftrecoverysettings_overlapSkinVolume: (a: number) => number;
|
|
2838
|
+
readonly rawsoftrecoverysettings_overlapSkipSelfTangled: (a: number) => number;
|
|
2839
|
+
readonly rawsoftrecoverysettings_overlapSplit: (a: number) => number;
|
|
2840
|
+
readonly rawsoftrecoverysettings_recoveryPace: (a: number) => number;
|
|
2841
|
+
readonly rawsoftrecoverysettings_selfCrossingDetection: (a: number) => number;
|
|
2842
|
+
readonly rawsoftrecoverysettings_selfStandDown: (a: number) => number;
|
|
2843
|
+
readonly rawsoftrecoverysettings_set_authoredVelocityMargin: (a: number, b: number) => void;
|
|
2844
|
+
readonly rawsoftrecoverysettings_set_crossBodyDetection: (a: number, b: number) => void;
|
|
2845
|
+
readonly rawsoftrecoverysettings_set_crossBodyExpelGate: (a: number, b: number) => void;
|
|
2846
|
+
readonly rawsoftrecoverysettings_set_crossingRepulsion: (a: number, b: number) => void;
|
|
2847
|
+
readonly rawsoftrecoverysettings_set_crossingRepulsionGuide: (a: number, b: number) => void;
|
|
2848
|
+
readonly rawsoftrecoverysettings_set_crossingRepulsionSelfGuide: (a: number, b: number) => void;
|
|
2849
|
+
readonly rawsoftrecoverysettings_set_detectionMotionGating: (a: number, b: number) => void;
|
|
2850
|
+
readonly rawsoftrecoverysettings_set_edgeSpeculation: (a: number, b: number) => void;
|
|
2851
|
+
readonly rawsoftrecoverysettings_set_edgeStandDown: (a: number, b: number) => void;
|
|
2852
|
+
readonly rawsoftrecoverysettings_set_invertedCellDetection: (a: number, b: number) => void;
|
|
2853
|
+
readonly rawsoftrecoverysettings_set_overlapConstraintPace: (a: number, b: number) => void;
|
|
2854
|
+
readonly rawsoftrecoverysettings_set_overlapConstraints: (a: number, b: number) => void;
|
|
2855
|
+
readonly rawsoftrecoverysettings_set_overlapEdgeStandDown: (a: number, b: number) => void;
|
|
2856
|
+
readonly rawsoftrecoverysettings_set_overlapKeptDepth: (a: number, b: number) => void;
|
|
2857
|
+
readonly rawsoftrecoverysettings_set_overlapMultiVolume: (a: number, b: number) => void;
|
|
2858
|
+
readonly rawsoftrecoverysettings_set_overlapNormalPush: (a: number, b: number) => void;
|
|
2859
|
+
readonly rawsoftrecoverysettings_set_overlapPatchConstraints: (a: number, b: number) => void;
|
|
2860
|
+
readonly rawsoftrecoverysettings_set_overlapPatience: (a: number, b: number) => void;
|
|
2861
|
+
readonly rawsoftrecoverysettings_set_overlapProgressMargin: (a: number, b: number) => void;
|
|
2862
|
+
readonly rawsoftrecoverysettings_set_overlapRigid: (a: number, b: number) => void;
|
|
2863
|
+
readonly rawsoftrecoverysettings_set_overlapSelfRegions: (a: number, b: number) => void;
|
|
2864
|
+
readonly rawsoftrecoverysettings_set_overlapSkinVolume: (a: number, b: number) => void;
|
|
2865
|
+
readonly rawsoftrecoverysettings_set_overlapSkipSelfTangled: (a: number, b: number) => void;
|
|
2866
|
+
readonly rawsoftrecoverysettings_set_overlapSplit: (a: number, b: number) => void;
|
|
2867
|
+
readonly rawsoftrecoverysettings_set_recoveryPace: (a: number, b: number) => void;
|
|
2868
|
+
readonly rawsoftrecoverysettings_set_selfCrossingDetection: (a: number, b: number) => void;
|
|
2869
|
+
readonly rawsoftrecoverysettings_set_selfStandDown: (a: number, b: number) => void;
|
|
2870
|
+
readonly rawvector_new: (a: number, b: number, c: number) => number;
|
|
2871
|
+
readonly rawvector_set_x: (a: number, b: number) => void;
|
|
2872
|
+
readonly rawvector_set_y: (a: number, b: number) => void;
|
|
2873
|
+
readonly rawvector_set_z: (a: number, b: number) => void;
|
|
2874
|
+
readonly rawvector_x: (a: number) => number;
|
|
2875
|
+
readonly rawvector_xyz: (a: number) => number;
|
|
2876
|
+
readonly rawvector_xzy: (a: number) => number;
|
|
2877
|
+
readonly rawvector_y: (a: number) => number;
|
|
2878
|
+
readonly rawvector_yxz: (a: number) => number;
|
|
2879
|
+
readonly rawvector_yzx: (a: number) => number;
|
|
2880
|
+
readonly rawvector_z: (a: number) => number;
|
|
2881
|
+
readonly rawvector_zero: () => number;
|
|
2882
|
+
readonly rawvector_zxy: (a: number) => number;
|
|
2883
|
+
readonly rawvector_zyx: (a: number) => number;
|
|
2884
|
+
readonly rawvhacdparameters_alpha: (a: number) => number;
|
|
2885
|
+
readonly rawvhacdparameters_beta: (a: number) => number;
|
|
2886
|
+
readonly rawvhacdparameters_concavity: (a: number) => number;
|
|
2887
|
+
readonly rawvhacdparameters_convex_hull_approximation: (a: number) => number;
|
|
2888
|
+
readonly rawvhacdparameters_convex_hull_downsampling: (a: number) => number;
|
|
2889
|
+
readonly rawvhacdparameters_max_convex_hulls: (a: number) => number;
|
|
2890
|
+
readonly rawvhacdparameters_new: () => number;
|
|
2891
|
+
readonly rawvhacdparameters_plane_downsampling: (a: number) => number;
|
|
2892
|
+
readonly rawvhacdparameters_resolution: (a: number) => number;
|
|
2893
|
+
readonly rawvhacdparameters_set_alpha: (a: number, b: number) => void;
|
|
2894
|
+
readonly rawvhacdparameters_set_beta: (a: number, b: number) => void;
|
|
2895
|
+
readonly rawvhacdparameters_set_concavity: (a: number, b: number) => void;
|
|
2896
|
+
readonly rawvhacdparameters_set_convex_hull_approximation: (a: number, b: number) => void;
|
|
2897
|
+
readonly rawvhacdparameters_set_convex_hull_downsampling: (a: number, b: number) => void;
|
|
2898
|
+
readonly rawvhacdparameters_set_max_convex_hulls: (a: number, b: number) => void;
|
|
2899
|
+
readonly rawvhacdparameters_set_plane_downsampling: (a: number, b: number) => void;
|
|
2900
|
+
readonly rawvhacdparameters_set_resolution: (a: number, b: number) => void;
|
|
2901
|
+
readonly reserve_memory: (a: number) => void;
|
|
2902
|
+
readonly version: (a: number) => void;
|
|
2903
|
+
readonly __wbindgen_export: (a: number) => void;
|
|
2904
|
+
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
2905
|
+
readonly __wbindgen_export2: (a: number, b: number, c: number) => void;
|
|
2906
|
+
readonly __wbindgen_export3: (a: number, b: number) => number;
|
|
2907
|
+
}
|
|
2908
|
+
|
|
2909
|
+
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
2910
|
+
|
|
2911
|
+
/**
|
|
2912
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
2913
|
+
* a precompiled `WebAssembly.Module`.
|
|
2914
|
+
*
|
|
2915
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
2916
|
+
*
|
|
2917
|
+
* @returns {InitOutput}
|
|
2918
|
+
*/
|
|
2919
|
+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
2920
|
+
|
|
2921
|
+
/**
|
|
2922
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
2923
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
2924
|
+
*
|
|
2925
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
2926
|
+
*
|
|
2927
|
+
* @returns {Promise<InitOutput>}
|
|
2928
|
+
*/
|
|
2929
|
+
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|