gdcore-tools 2.0.0-gd-v5.4.218-autobuild → 2.0.0-gd-v5.4.220-autobuild
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/dist/Runtime/Extensions/3D/CustomRuntimeObject3D.js +1 -1
- package/dist/Runtime/Extensions/3D/CustomRuntimeObject3D.js.map +2 -2
- package/dist/Runtime/Extensions/AnchorBehavior/anchorruntimebehavior.js +1 -1
- package/dist/Runtime/Extensions/AnchorBehavior/anchorruntimebehavior.js.map +2 -2
- package/dist/Runtime/Extensions/Physics2Behavior/JsExtension.js +19 -19
- package/dist/Runtime/Extensions/Physics2Behavior/physics2runtimebehavior.js +1 -1
- package/dist/Runtime/Extensions/Physics2Behavior/physics2runtimebehavior.js.map +2 -2
- package/dist/Runtime/Extensions/Physics2Behavior/physics2tools.js +1 -1
- package/dist/Runtime/Extensions/Physics2Behavior/physics2tools.js.map +2 -2
- package/dist/Runtime/Extensions/Physics3DBehavior/JsExtension.js +2442 -0
- package/dist/Runtime/Extensions/Physics3DBehavior/Physics3DRuntimeBehavior.js +2 -0
- package/dist/Runtime/Extensions/Physics3DBehavior/Physics3DRuntimeBehavior.js.map +7 -0
- package/dist/Runtime/Extensions/Physics3DBehavior/Physics3DTools.js +2 -0
- package/dist/Runtime/Extensions/Physics3DBehavior/Physics3DTools.js.map +7 -0
- package/dist/Runtime/Extensions/Physics3DBehavior/PhysicsCharacter3DRuntimeBehavior.js +2 -0
- package/dist/Runtime/Extensions/Physics3DBehavior/PhysicsCharacter3DRuntimeBehavior.js.map +7 -0
- package/dist/Runtime/Extensions/Physics3DBehavior/jolt-physics.d.ts +4874 -0
- package/dist/Runtime/Extensions/Physics3DBehavior/jolt-physics.wasm.js +2 -0
- package/dist/Runtime/Extensions/Physics3DBehavior/jolt-physics.wasm.js.map +7 -0
- package/dist/Runtime/Extensions/Physics3DBehavior/jolt-physics.wasm.wasm +0 -0
- package/dist/Runtime/Extensions/PlatformBehavior/platformerobjectruntimebehavior.js.map +2 -2
- package/dist/Runtime/Extensions/TileMap/helper/TileMapHelper.js +1 -1
- package/dist/Runtime/Extensions/TileMap/helper/TileMapHelper.js.map +1 -1
- package/dist/Runtime/Extensions/TileMap/simpletilemapruntimeobject.js +1 -1
- package/dist/Runtime/Extensions/TileMap/simpletilemapruntimeobject.js.map +2 -2
- package/dist/Runtime/RuntimeInstanceContainer.js +1 -1
- package/dist/Runtime/RuntimeInstanceContainer.js.map +2 -2
- package/dist/Runtime/RuntimeLayer.js +1 -1
- package/dist/Runtime/RuntimeLayer.js.map +2 -2
- package/dist/Runtime/layer.js +1 -1
- package/dist/Runtime/layer.js.map +2 -2
- package/dist/Runtime/pixi-renderers/pixi-image-manager.js +1 -1
- package/dist/Runtime/pixi-renderers/pixi-image-manager.js.map +2 -2
- package/dist/Runtime/pixi-renderers/runtimegame-pixi-renderer.js +1 -1
- package/dist/Runtime/pixi-renderers/runtimegame-pixi-renderer.js.map +2 -2
- package/dist/Runtime/runtimegame.js +1 -1
- package/dist/Runtime/runtimegame.js.map +2 -2
- package/dist/Runtime/types/global-types.d.ts +20 -3
- package/dist/Runtime/types/project-data.d.ts +1 -1
- package/dist/lib/libGD.cjs +1 -1
- package/dist/lib/libGD.wasm +0 -0
- package/gd.d.ts +17 -3
- package/package.json +1 -1
|
@@ -0,0 +1,4874 @@
|
|
|
1
|
+
declare namespace Jolt {
|
|
2
|
+
function destroy(obj: any): void;
|
|
3
|
+
function _malloc(size: number): number;
|
|
4
|
+
function _free(ptr: number): void;
|
|
5
|
+
function wrapPointer<C extends new (...args: any) => any>(
|
|
6
|
+
ptr: number,
|
|
7
|
+
Class: C
|
|
8
|
+
): InstanceType<C>;
|
|
9
|
+
function getPointer(obj: unknown): number;
|
|
10
|
+
function castObject<C extends new (...args: any) => any>(
|
|
11
|
+
object: unknown,
|
|
12
|
+
Class: C
|
|
13
|
+
): InstanceType<C>;
|
|
14
|
+
function compare(object1: unknown, object2: unknown): boolean;
|
|
15
|
+
const HEAP8: Int8Array;
|
|
16
|
+
const HEAP16: Int16Array;
|
|
17
|
+
const HEAP32: Int32Array;
|
|
18
|
+
const HEAPU8: Uint8Array;
|
|
19
|
+
const HEAPU16: Uint16Array;
|
|
20
|
+
const HEAPU32: Uint32Array;
|
|
21
|
+
const HEAPF32: Float32Array;
|
|
22
|
+
const HEAPF64: Float64Array;
|
|
23
|
+
class JPHString {
|
|
24
|
+
constructor(str: string, length: number);
|
|
25
|
+
c_str(): string;
|
|
26
|
+
size(): number;
|
|
27
|
+
}
|
|
28
|
+
class ArrayVec3 {
|
|
29
|
+
empty(): boolean;
|
|
30
|
+
size(): number;
|
|
31
|
+
at(inIndex: number): Vec3;
|
|
32
|
+
push_back(inValue: Vec3): void;
|
|
33
|
+
reserve(inSize: number): void;
|
|
34
|
+
resize(inSize: number): void;
|
|
35
|
+
clear(): void;
|
|
36
|
+
data(): Vec3MemRef;
|
|
37
|
+
}
|
|
38
|
+
class ArrayQuat {
|
|
39
|
+
empty(): boolean;
|
|
40
|
+
size(): number;
|
|
41
|
+
at(inIndex: number): Quat;
|
|
42
|
+
push_back(inValue: Quat): void;
|
|
43
|
+
reserve(inSize: number): void;
|
|
44
|
+
resize(inSize: number): void;
|
|
45
|
+
clear(): void;
|
|
46
|
+
data(): QuatMemRef;
|
|
47
|
+
}
|
|
48
|
+
class ArrayMat44 {
|
|
49
|
+
empty(): boolean;
|
|
50
|
+
size(): number;
|
|
51
|
+
at(inIndex: number): Mat44;
|
|
52
|
+
push_back(inValue: Mat44): void;
|
|
53
|
+
reserve(inSize: number): void;
|
|
54
|
+
resize(inSize: number): void;
|
|
55
|
+
clear(): void;
|
|
56
|
+
data(): Mat44MemRef;
|
|
57
|
+
}
|
|
58
|
+
const EBodyType_RigidBody: number;
|
|
59
|
+
const EBodyType_SoftBody: number;
|
|
60
|
+
type EBodyType = typeof EBodyType_RigidBody | typeof EBodyType_SoftBody;
|
|
61
|
+
function _emscripten_enum_EBodyType_EBodyType_RigidBody(): EBodyType;
|
|
62
|
+
function _emscripten_enum_EBodyType_EBodyType_SoftBody(): EBodyType;
|
|
63
|
+
const EMotionType_Static: number;
|
|
64
|
+
const EMotionType_Kinematic: number;
|
|
65
|
+
const EMotionType_Dynamic: number;
|
|
66
|
+
type EMotionType =
|
|
67
|
+
| typeof EMotionType_Static
|
|
68
|
+
| typeof EMotionType_Kinematic
|
|
69
|
+
| typeof EMotionType_Dynamic;
|
|
70
|
+
function _emscripten_enum_EMotionType_EMotionType_Static(): EMotionType;
|
|
71
|
+
function _emscripten_enum_EMotionType_EMotionType_Kinematic(): EMotionType;
|
|
72
|
+
function _emscripten_enum_EMotionType_EMotionType_Dynamic(): EMotionType;
|
|
73
|
+
const EMotionQuality_Discrete: number;
|
|
74
|
+
const EMotionQuality_LinearCast: number;
|
|
75
|
+
type EMotionQuality =
|
|
76
|
+
| typeof EMotionQuality_Discrete
|
|
77
|
+
| typeof EMotionQuality_LinearCast;
|
|
78
|
+
function _emscripten_enum_EMotionQuality_EMotionQuality_Discrete(): EMotionQuality;
|
|
79
|
+
function _emscripten_enum_EMotionQuality_EMotionQuality_LinearCast(): EMotionQuality;
|
|
80
|
+
const EActivation_Activate: number;
|
|
81
|
+
const EActivation_DontActivate: number;
|
|
82
|
+
type EActivation =
|
|
83
|
+
| typeof EActivation_Activate
|
|
84
|
+
| typeof EActivation_DontActivate;
|
|
85
|
+
function _emscripten_enum_EActivation_EActivation_Activate(): EActivation;
|
|
86
|
+
function _emscripten_enum_EActivation_EActivation_DontActivate(): EActivation;
|
|
87
|
+
const EShapeType_Convex: number;
|
|
88
|
+
const EShapeType_Compound: number;
|
|
89
|
+
const EShapeType_Decorated: number;
|
|
90
|
+
const EShapeType_Mesh: number;
|
|
91
|
+
const EShapeType_HeightField: number;
|
|
92
|
+
const EShapeType_Plane: number;
|
|
93
|
+
const EShapeType_Empty: number;
|
|
94
|
+
type EShapeType =
|
|
95
|
+
| typeof EShapeType_Convex
|
|
96
|
+
| typeof EShapeType_Compound
|
|
97
|
+
| typeof EShapeType_Decorated
|
|
98
|
+
| typeof EShapeType_Mesh
|
|
99
|
+
| typeof EShapeType_HeightField
|
|
100
|
+
| typeof EShapeType_Plane
|
|
101
|
+
| typeof EShapeType_Empty;
|
|
102
|
+
function _emscripten_enum_EShapeType_EShapeType_Convex(): EShapeType;
|
|
103
|
+
function _emscripten_enum_EShapeType_EShapeType_Compound(): EShapeType;
|
|
104
|
+
function _emscripten_enum_EShapeType_EShapeType_Decorated(): EShapeType;
|
|
105
|
+
function _emscripten_enum_EShapeType_EShapeType_Mesh(): EShapeType;
|
|
106
|
+
function _emscripten_enum_EShapeType_EShapeType_HeightField(): EShapeType;
|
|
107
|
+
function _emscripten_enum_EShapeType_EShapeType_Plane(): EShapeType;
|
|
108
|
+
function _emscripten_enum_EShapeType_EShapeType_Empty(): EShapeType;
|
|
109
|
+
const EShapeSubType_Sphere: number;
|
|
110
|
+
const EShapeSubType_Box: number;
|
|
111
|
+
const EShapeSubType_Capsule: number;
|
|
112
|
+
const EShapeSubType_TaperedCapsule: number;
|
|
113
|
+
const EShapeSubType_Cylinder: number;
|
|
114
|
+
const EShapeSubType_TaperedCylinder: number;
|
|
115
|
+
const EShapeSubType_ConvexHull: number;
|
|
116
|
+
const EShapeSubType_StaticCompound: number;
|
|
117
|
+
const EShapeSubType_MutableCompound: number;
|
|
118
|
+
const EShapeSubType_RotatedTranslated: number;
|
|
119
|
+
const EShapeSubType_Scaled: number;
|
|
120
|
+
const EShapeSubType_OffsetCenterOfMass: number;
|
|
121
|
+
const EShapeSubType_Mesh: number;
|
|
122
|
+
const EShapeSubType_HeightField: number;
|
|
123
|
+
const EShapeSubType_Plane: number;
|
|
124
|
+
const EShapeSubType_Empty: number;
|
|
125
|
+
type EShapeSubType =
|
|
126
|
+
| typeof EShapeSubType_Sphere
|
|
127
|
+
| typeof EShapeSubType_Box
|
|
128
|
+
| typeof EShapeSubType_Capsule
|
|
129
|
+
| typeof EShapeSubType_TaperedCapsule
|
|
130
|
+
| typeof EShapeSubType_Cylinder
|
|
131
|
+
| typeof EShapeSubType_TaperedCylinder
|
|
132
|
+
| typeof EShapeSubType_ConvexHull
|
|
133
|
+
| typeof EShapeSubType_StaticCompound
|
|
134
|
+
| typeof EShapeSubType_MutableCompound
|
|
135
|
+
| typeof EShapeSubType_RotatedTranslated
|
|
136
|
+
| typeof EShapeSubType_Scaled
|
|
137
|
+
| typeof EShapeSubType_OffsetCenterOfMass
|
|
138
|
+
| typeof EShapeSubType_Mesh
|
|
139
|
+
| typeof EShapeSubType_HeightField
|
|
140
|
+
| typeof EShapeSubType_Plane
|
|
141
|
+
| typeof EShapeSubType_Empty;
|
|
142
|
+
function _emscripten_enum_EShapeSubType_EShapeSubType_Sphere(): EShapeSubType;
|
|
143
|
+
function _emscripten_enum_EShapeSubType_EShapeSubType_Box(): EShapeSubType;
|
|
144
|
+
function _emscripten_enum_EShapeSubType_EShapeSubType_Capsule(): EShapeSubType;
|
|
145
|
+
function _emscripten_enum_EShapeSubType_EShapeSubType_TaperedCapsule(): EShapeSubType;
|
|
146
|
+
function _emscripten_enum_EShapeSubType_EShapeSubType_Cylinder(): EShapeSubType;
|
|
147
|
+
function _emscripten_enum_EShapeSubType_EShapeSubType_TaperedCylinder(): EShapeSubType;
|
|
148
|
+
function _emscripten_enum_EShapeSubType_EShapeSubType_ConvexHull(): EShapeSubType;
|
|
149
|
+
function _emscripten_enum_EShapeSubType_EShapeSubType_StaticCompound(): EShapeSubType;
|
|
150
|
+
function _emscripten_enum_EShapeSubType_EShapeSubType_MutableCompound(): EShapeSubType;
|
|
151
|
+
function _emscripten_enum_EShapeSubType_EShapeSubType_RotatedTranslated(): EShapeSubType;
|
|
152
|
+
function _emscripten_enum_EShapeSubType_EShapeSubType_Scaled(): EShapeSubType;
|
|
153
|
+
function _emscripten_enum_EShapeSubType_EShapeSubType_OffsetCenterOfMass(): EShapeSubType;
|
|
154
|
+
function _emscripten_enum_EShapeSubType_EShapeSubType_Mesh(): EShapeSubType;
|
|
155
|
+
function _emscripten_enum_EShapeSubType_EShapeSubType_HeightField(): EShapeSubType;
|
|
156
|
+
function _emscripten_enum_EShapeSubType_EShapeSubType_Plane(): EShapeSubType;
|
|
157
|
+
function _emscripten_enum_EShapeSubType_EShapeSubType_Empty(): EShapeSubType;
|
|
158
|
+
const EConstraintSpace_LocalToBodyCOM: number;
|
|
159
|
+
const EConstraintSpace_WorldSpace: number;
|
|
160
|
+
type EConstraintSpace =
|
|
161
|
+
| typeof EConstraintSpace_LocalToBodyCOM
|
|
162
|
+
| typeof EConstraintSpace_WorldSpace;
|
|
163
|
+
function _emscripten_enum_EConstraintSpace_EConstraintSpace_LocalToBodyCOM(): EConstraintSpace;
|
|
164
|
+
function _emscripten_enum_EConstraintSpace_EConstraintSpace_WorldSpace(): EConstraintSpace;
|
|
165
|
+
const ESpringMode_FrequencyAndDamping: number;
|
|
166
|
+
const ESpringMode_StiffnessAndDamping: number;
|
|
167
|
+
type ESpringMode =
|
|
168
|
+
| typeof ESpringMode_FrequencyAndDamping
|
|
169
|
+
| typeof ESpringMode_StiffnessAndDamping;
|
|
170
|
+
function _emscripten_enum_ESpringMode_ESpringMode_FrequencyAndDamping(): ESpringMode;
|
|
171
|
+
function _emscripten_enum_ESpringMode_ESpringMode_StiffnessAndDamping(): ESpringMode;
|
|
172
|
+
const EOverrideMassProperties_CalculateMassAndInertia: number;
|
|
173
|
+
const EOverrideMassProperties_CalculateInertia: number;
|
|
174
|
+
const EOverrideMassProperties_MassAndInertiaProvided: number;
|
|
175
|
+
type EOverrideMassProperties =
|
|
176
|
+
| typeof EOverrideMassProperties_CalculateMassAndInertia
|
|
177
|
+
| typeof EOverrideMassProperties_CalculateInertia
|
|
178
|
+
| typeof EOverrideMassProperties_MassAndInertiaProvided;
|
|
179
|
+
function _emscripten_enum_EOverrideMassProperties_EOverrideMassProperties_CalculateMassAndInertia(): EOverrideMassProperties;
|
|
180
|
+
function _emscripten_enum_EOverrideMassProperties_EOverrideMassProperties_CalculateInertia(): EOverrideMassProperties;
|
|
181
|
+
function _emscripten_enum_EOverrideMassProperties_EOverrideMassProperties_MassAndInertiaProvided(): EOverrideMassProperties;
|
|
182
|
+
const EAllowedDOFs_TranslationX: number;
|
|
183
|
+
const EAllowedDOFs_TranslationY: number;
|
|
184
|
+
const EAllowedDOFs_TranslationZ: number;
|
|
185
|
+
const EAllowedDOFs_RotationX: number;
|
|
186
|
+
const EAllowedDOFs_RotationY: number;
|
|
187
|
+
const EAllowedDOFs_RotationZ: number;
|
|
188
|
+
const EAllowedDOFs_Plane2D: number;
|
|
189
|
+
const EAllowedDOFs_All: number;
|
|
190
|
+
type EAllowedDOFs =
|
|
191
|
+
| typeof EAllowedDOFs_TranslationX
|
|
192
|
+
| typeof EAllowedDOFs_TranslationY
|
|
193
|
+
| typeof EAllowedDOFs_TranslationZ
|
|
194
|
+
| typeof EAllowedDOFs_RotationX
|
|
195
|
+
| typeof EAllowedDOFs_RotationY
|
|
196
|
+
| typeof EAllowedDOFs_RotationZ
|
|
197
|
+
| typeof EAllowedDOFs_Plane2D
|
|
198
|
+
| typeof EAllowedDOFs_All;
|
|
199
|
+
function _emscripten_enum_EAllowedDOFs_EAllowedDOFs_TranslationX(): EAllowedDOFs;
|
|
200
|
+
function _emscripten_enum_EAllowedDOFs_EAllowedDOFs_TranslationY(): EAllowedDOFs;
|
|
201
|
+
function _emscripten_enum_EAllowedDOFs_EAllowedDOFs_TranslationZ(): EAllowedDOFs;
|
|
202
|
+
function _emscripten_enum_EAllowedDOFs_EAllowedDOFs_RotationX(): EAllowedDOFs;
|
|
203
|
+
function _emscripten_enum_EAllowedDOFs_EAllowedDOFs_RotationY(): EAllowedDOFs;
|
|
204
|
+
function _emscripten_enum_EAllowedDOFs_EAllowedDOFs_RotationZ(): EAllowedDOFs;
|
|
205
|
+
function _emscripten_enum_EAllowedDOFs_EAllowedDOFs_Plane2D(): EAllowedDOFs;
|
|
206
|
+
function _emscripten_enum_EAllowedDOFs_EAllowedDOFs_All(): EAllowedDOFs;
|
|
207
|
+
const EStateRecorderState_None: number;
|
|
208
|
+
const EStateRecorderState_Global: number;
|
|
209
|
+
const EStateRecorderState_Bodies: number;
|
|
210
|
+
const EStateRecorderState_Contacts: number;
|
|
211
|
+
const EStateRecorderState_Constraints: number;
|
|
212
|
+
const EStateRecorderState_All: number;
|
|
213
|
+
type EStateRecorderState =
|
|
214
|
+
| typeof EStateRecorderState_None
|
|
215
|
+
| typeof EStateRecorderState_Global
|
|
216
|
+
| typeof EStateRecorderState_Bodies
|
|
217
|
+
| typeof EStateRecorderState_Contacts
|
|
218
|
+
| typeof EStateRecorderState_Constraints
|
|
219
|
+
| typeof EStateRecorderState_All;
|
|
220
|
+
function _emscripten_enum_EStateRecorderState_EStateRecorderState_None(): EStateRecorderState;
|
|
221
|
+
function _emscripten_enum_EStateRecorderState_EStateRecorderState_Global(): EStateRecorderState;
|
|
222
|
+
function _emscripten_enum_EStateRecorderState_EStateRecorderState_Bodies(): EStateRecorderState;
|
|
223
|
+
function _emscripten_enum_EStateRecorderState_EStateRecorderState_Contacts(): EStateRecorderState;
|
|
224
|
+
function _emscripten_enum_EStateRecorderState_EStateRecorderState_Constraints(): EStateRecorderState;
|
|
225
|
+
function _emscripten_enum_EStateRecorderState_EStateRecorderState_All(): EStateRecorderState;
|
|
226
|
+
const EBackFaceMode_IgnoreBackFaces: number;
|
|
227
|
+
const EBackFaceMode_CollideWithBackFaces: number;
|
|
228
|
+
type EBackFaceMode =
|
|
229
|
+
| typeof EBackFaceMode_IgnoreBackFaces
|
|
230
|
+
| typeof EBackFaceMode_CollideWithBackFaces;
|
|
231
|
+
function _emscripten_enum_EBackFaceMode_EBackFaceMode_IgnoreBackFaces(): EBackFaceMode;
|
|
232
|
+
function _emscripten_enum_EBackFaceMode_EBackFaceMode_CollideWithBackFaces(): EBackFaceMode;
|
|
233
|
+
const EGroundState_OnGround: number;
|
|
234
|
+
const EGroundState_OnSteepGround: number;
|
|
235
|
+
const EGroundState_NotSupported: number;
|
|
236
|
+
const EGroundState_InAir: number;
|
|
237
|
+
type EGroundState =
|
|
238
|
+
| typeof EGroundState_OnGround
|
|
239
|
+
| typeof EGroundState_OnSteepGround
|
|
240
|
+
| typeof EGroundState_NotSupported
|
|
241
|
+
| typeof EGroundState_InAir;
|
|
242
|
+
function _emscripten_enum_EGroundState_EGroundState_OnGround(): EGroundState;
|
|
243
|
+
function _emscripten_enum_EGroundState_EGroundState_OnSteepGround(): EGroundState;
|
|
244
|
+
function _emscripten_enum_EGroundState_EGroundState_NotSupported(): EGroundState;
|
|
245
|
+
function _emscripten_enum_EGroundState_EGroundState_InAir(): EGroundState;
|
|
246
|
+
const ValidateResult_AcceptAllContactsForThisBodyPair: number;
|
|
247
|
+
const ValidateResult_AcceptContact: number;
|
|
248
|
+
const ValidateResult_RejectContact: number;
|
|
249
|
+
const ValidateResult_RejectAllContactsForThisBodyPair: number;
|
|
250
|
+
type ValidateResult =
|
|
251
|
+
| typeof ValidateResult_AcceptAllContactsForThisBodyPair
|
|
252
|
+
| typeof ValidateResult_AcceptContact
|
|
253
|
+
| typeof ValidateResult_RejectContact
|
|
254
|
+
| typeof ValidateResult_RejectAllContactsForThisBodyPair;
|
|
255
|
+
function _emscripten_enum_ValidateResult_ValidateResult_AcceptAllContactsForThisBodyPair(): ValidateResult;
|
|
256
|
+
function _emscripten_enum_ValidateResult_ValidateResult_AcceptContact(): ValidateResult;
|
|
257
|
+
function _emscripten_enum_ValidateResult_ValidateResult_RejectContact(): ValidateResult;
|
|
258
|
+
function _emscripten_enum_ValidateResult_ValidateResult_RejectAllContactsForThisBodyPair(): ValidateResult;
|
|
259
|
+
const SoftBodyValidateResult_AcceptContact: number;
|
|
260
|
+
const SoftBodyValidateResult_RejectContact: number;
|
|
261
|
+
type SoftBodyValidateResult =
|
|
262
|
+
| typeof SoftBodyValidateResult_AcceptContact
|
|
263
|
+
| typeof SoftBodyValidateResult_RejectContact;
|
|
264
|
+
function _emscripten_enum_SoftBodyValidateResult_SoftBodyValidateResult_AcceptContact(): SoftBodyValidateResult;
|
|
265
|
+
function _emscripten_enum_SoftBodyValidateResult_SoftBodyValidateResult_RejectContact(): SoftBodyValidateResult;
|
|
266
|
+
const EActiveEdgeMode_CollideOnlyWithActive: number;
|
|
267
|
+
const EActiveEdgeMode_CollideWithAll: number;
|
|
268
|
+
type EActiveEdgeMode =
|
|
269
|
+
| typeof EActiveEdgeMode_CollideOnlyWithActive
|
|
270
|
+
| typeof EActiveEdgeMode_CollideWithAll;
|
|
271
|
+
function _emscripten_enum_EActiveEdgeMode_EActiveEdgeMode_CollideOnlyWithActive(): EActiveEdgeMode;
|
|
272
|
+
function _emscripten_enum_EActiveEdgeMode_EActiveEdgeMode_CollideWithAll(): EActiveEdgeMode;
|
|
273
|
+
const ECollectFacesMode_CollectFaces: number;
|
|
274
|
+
const ECollectFacesMode_NoFaces: number;
|
|
275
|
+
type ECollectFacesMode =
|
|
276
|
+
| typeof ECollectFacesMode_CollectFaces
|
|
277
|
+
| typeof ECollectFacesMode_NoFaces;
|
|
278
|
+
function _emscripten_enum_ECollectFacesMode_ECollectFacesMode_CollectFaces(): ECollectFacesMode;
|
|
279
|
+
function _emscripten_enum_ECollectFacesMode_ECollectFacesMode_NoFaces(): ECollectFacesMode;
|
|
280
|
+
const SixDOFConstraintSettings_EAxis_TranslationX: number;
|
|
281
|
+
const SixDOFConstraintSettings_EAxis_TranslationY: number;
|
|
282
|
+
const SixDOFConstraintSettings_EAxis_TranslationZ: number;
|
|
283
|
+
const SixDOFConstraintSettings_EAxis_RotationX: number;
|
|
284
|
+
const SixDOFConstraintSettings_EAxis_RotationY: number;
|
|
285
|
+
const SixDOFConstraintSettings_EAxis_RotationZ: number;
|
|
286
|
+
type SixDOFConstraintSettings_EAxis =
|
|
287
|
+
| typeof SixDOFConstraintSettings_EAxis_TranslationX
|
|
288
|
+
| typeof SixDOFConstraintSettings_EAxis_TranslationY
|
|
289
|
+
| typeof SixDOFConstraintSettings_EAxis_TranslationZ
|
|
290
|
+
| typeof SixDOFConstraintSettings_EAxis_RotationX
|
|
291
|
+
| typeof SixDOFConstraintSettings_EAxis_RotationY
|
|
292
|
+
| typeof SixDOFConstraintSettings_EAxis_RotationZ;
|
|
293
|
+
function _emscripten_enum_SixDOFConstraintSettings_EAxis_SixDOFConstraintSettings_EAxis_TranslationX(): SixDOFConstraintSettings_EAxis;
|
|
294
|
+
function _emscripten_enum_SixDOFConstraintSettings_EAxis_SixDOFConstraintSettings_EAxis_TranslationY(): SixDOFConstraintSettings_EAxis;
|
|
295
|
+
function _emscripten_enum_SixDOFConstraintSettings_EAxis_SixDOFConstraintSettings_EAxis_TranslationZ(): SixDOFConstraintSettings_EAxis;
|
|
296
|
+
function _emscripten_enum_SixDOFConstraintSettings_EAxis_SixDOFConstraintSettings_EAxis_RotationX(): SixDOFConstraintSettings_EAxis;
|
|
297
|
+
function _emscripten_enum_SixDOFConstraintSettings_EAxis_SixDOFConstraintSettings_EAxis_RotationY(): SixDOFConstraintSettings_EAxis;
|
|
298
|
+
function _emscripten_enum_SixDOFConstraintSettings_EAxis_SixDOFConstraintSettings_EAxis_RotationZ(): SixDOFConstraintSettings_EAxis;
|
|
299
|
+
const EConstraintType_Constraint: number;
|
|
300
|
+
const EConstraintType_TwoBodyConstraint: number;
|
|
301
|
+
type EConstraintType =
|
|
302
|
+
| typeof EConstraintType_Constraint
|
|
303
|
+
| typeof EConstraintType_TwoBodyConstraint;
|
|
304
|
+
function _emscripten_enum_EConstraintType_EConstraintType_Constraint(): EConstraintType;
|
|
305
|
+
function _emscripten_enum_EConstraintType_EConstraintType_TwoBodyConstraint(): EConstraintType;
|
|
306
|
+
const EConstraintSubType_Fixed: number;
|
|
307
|
+
const EConstraintSubType_Point: number;
|
|
308
|
+
const EConstraintSubType_Hinge: number;
|
|
309
|
+
const EConstraintSubType_Slider: number;
|
|
310
|
+
const EConstraintSubType_Distance: number;
|
|
311
|
+
const EConstraintSubType_Cone: number;
|
|
312
|
+
const EConstraintSubType_SwingTwist: number;
|
|
313
|
+
const EConstraintSubType_SixDOF: number;
|
|
314
|
+
const EConstraintSubType_Path: number;
|
|
315
|
+
const EConstraintSubType_Vehicle: number;
|
|
316
|
+
const EConstraintSubType_RackAndPinion: number;
|
|
317
|
+
const EConstraintSubType_Gear: number;
|
|
318
|
+
const EConstraintSubType_Pulley: number;
|
|
319
|
+
type EConstraintSubType =
|
|
320
|
+
| typeof EConstraintSubType_Fixed
|
|
321
|
+
| typeof EConstraintSubType_Point
|
|
322
|
+
| typeof EConstraintSubType_Hinge
|
|
323
|
+
| typeof EConstraintSubType_Slider
|
|
324
|
+
| typeof EConstraintSubType_Distance
|
|
325
|
+
| typeof EConstraintSubType_Cone
|
|
326
|
+
| typeof EConstraintSubType_SwingTwist
|
|
327
|
+
| typeof EConstraintSubType_SixDOF
|
|
328
|
+
| typeof EConstraintSubType_Path
|
|
329
|
+
| typeof EConstraintSubType_Vehicle
|
|
330
|
+
| typeof EConstraintSubType_RackAndPinion
|
|
331
|
+
| typeof EConstraintSubType_Gear
|
|
332
|
+
| typeof EConstraintSubType_Pulley;
|
|
333
|
+
function _emscripten_enum_EConstraintSubType_EConstraintSubType_Fixed(): EConstraintSubType;
|
|
334
|
+
function _emscripten_enum_EConstraintSubType_EConstraintSubType_Point(): EConstraintSubType;
|
|
335
|
+
function _emscripten_enum_EConstraintSubType_EConstraintSubType_Hinge(): EConstraintSubType;
|
|
336
|
+
function _emscripten_enum_EConstraintSubType_EConstraintSubType_Slider(): EConstraintSubType;
|
|
337
|
+
function _emscripten_enum_EConstraintSubType_EConstraintSubType_Distance(): EConstraintSubType;
|
|
338
|
+
function _emscripten_enum_EConstraintSubType_EConstraintSubType_Cone(): EConstraintSubType;
|
|
339
|
+
function _emscripten_enum_EConstraintSubType_EConstraintSubType_SwingTwist(): EConstraintSubType;
|
|
340
|
+
function _emscripten_enum_EConstraintSubType_EConstraintSubType_SixDOF(): EConstraintSubType;
|
|
341
|
+
function _emscripten_enum_EConstraintSubType_EConstraintSubType_Path(): EConstraintSubType;
|
|
342
|
+
function _emscripten_enum_EConstraintSubType_EConstraintSubType_Vehicle(): EConstraintSubType;
|
|
343
|
+
function _emscripten_enum_EConstraintSubType_EConstraintSubType_RackAndPinion(): EConstraintSubType;
|
|
344
|
+
function _emscripten_enum_EConstraintSubType_EConstraintSubType_Gear(): EConstraintSubType;
|
|
345
|
+
function _emscripten_enum_EConstraintSubType_EConstraintSubType_Pulley(): EConstraintSubType;
|
|
346
|
+
const EMotorState_Off: number;
|
|
347
|
+
const EMotorState_Velocity: number;
|
|
348
|
+
const EMotorState_Position: number;
|
|
349
|
+
type EMotorState =
|
|
350
|
+
| typeof EMotorState_Off
|
|
351
|
+
| typeof EMotorState_Velocity
|
|
352
|
+
| typeof EMotorState_Position;
|
|
353
|
+
function _emscripten_enum_EMotorState_EMotorState_Off(): EMotorState;
|
|
354
|
+
function _emscripten_enum_EMotorState_EMotorState_Velocity(): EMotorState;
|
|
355
|
+
function _emscripten_enum_EMotorState_EMotorState_Position(): EMotorState;
|
|
356
|
+
const ETransmissionMode_Auto: number;
|
|
357
|
+
const ETransmissionMode_Manual: number;
|
|
358
|
+
type ETransmissionMode =
|
|
359
|
+
| typeof ETransmissionMode_Auto
|
|
360
|
+
| typeof ETransmissionMode_Manual;
|
|
361
|
+
function _emscripten_enum_ETransmissionMode_ETransmissionMode_Auto(): ETransmissionMode;
|
|
362
|
+
function _emscripten_enum_ETransmissionMode_ETransmissionMode_Manual(): ETransmissionMode;
|
|
363
|
+
const ETireFrictionDirection_Longitudinal: number;
|
|
364
|
+
const ETireFrictionDirection_Lateral: number;
|
|
365
|
+
type ETireFrictionDirection =
|
|
366
|
+
| typeof ETireFrictionDirection_Longitudinal
|
|
367
|
+
| typeof ETireFrictionDirection_Lateral;
|
|
368
|
+
function _emscripten_enum_ETireFrictionDirection_ETireFrictionDirection_Longitudinal(): ETireFrictionDirection;
|
|
369
|
+
function _emscripten_enum_ETireFrictionDirection_ETireFrictionDirection_Lateral(): ETireFrictionDirection;
|
|
370
|
+
const ESwingType_Cone: number;
|
|
371
|
+
const ESwingType_Pyramid: number;
|
|
372
|
+
type ESwingType = typeof ESwingType_Cone | typeof ESwingType_Pyramid;
|
|
373
|
+
function _emscripten_enum_ESwingType_ESwingType_Cone(): ESwingType;
|
|
374
|
+
function _emscripten_enum_ESwingType_ESwingType_Pyramid(): ESwingType;
|
|
375
|
+
const EPathRotationConstraintType_Free: number;
|
|
376
|
+
const EPathRotationConstraintType_ConstrainAroundTangent: number;
|
|
377
|
+
const EPathRotationConstraintType_ConstrainAroundNormal: number;
|
|
378
|
+
const EPathRotationConstraintType_ConstrainAroundBinormal: number;
|
|
379
|
+
const EPathRotationConstraintType_ConstrainToPath: number;
|
|
380
|
+
const EPathRotationConstraintType_FullyConstrained: number;
|
|
381
|
+
type EPathRotationConstraintType =
|
|
382
|
+
| typeof EPathRotationConstraintType_Free
|
|
383
|
+
| typeof EPathRotationConstraintType_ConstrainAroundTangent
|
|
384
|
+
| typeof EPathRotationConstraintType_ConstrainAroundNormal
|
|
385
|
+
| typeof EPathRotationConstraintType_ConstrainAroundBinormal
|
|
386
|
+
| typeof EPathRotationConstraintType_ConstrainToPath
|
|
387
|
+
| typeof EPathRotationConstraintType_FullyConstrained;
|
|
388
|
+
function _emscripten_enum_EPathRotationConstraintType_EPathRotationConstraintType_Free(): EPathRotationConstraintType;
|
|
389
|
+
function _emscripten_enum_EPathRotationConstraintType_EPathRotationConstraintType_ConstrainAroundTangent(): EPathRotationConstraintType;
|
|
390
|
+
function _emscripten_enum_EPathRotationConstraintType_EPathRotationConstraintType_ConstrainAroundNormal(): EPathRotationConstraintType;
|
|
391
|
+
function _emscripten_enum_EPathRotationConstraintType_EPathRotationConstraintType_ConstrainAroundBinormal(): EPathRotationConstraintType;
|
|
392
|
+
function _emscripten_enum_EPathRotationConstraintType_EPathRotationConstraintType_ConstrainToPath(): EPathRotationConstraintType;
|
|
393
|
+
function _emscripten_enum_EPathRotationConstraintType_EPathRotationConstraintType_FullyConstrained(): EPathRotationConstraintType;
|
|
394
|
+
const SoftBodySharedSettings_EBendType_None: number;
|
|
395
|
+
const SoftBodySharedSettings_EBendType_Distance: number;
|
|
396
|
+
const SoftBodySharedSettings_EBendType_Dihedral: number;
|
|
397
|
+
type SoftBodySharedSettings_EBendType =
|
|
398
|
+
| typeof SoftBodySharedSettings_EBendType_None
|
|
399
|
+
| typeof SoftBodySharedSettings_EBendType_Distance
|
|
400
|
+
| typeof SoftBodySharedSettings_EBendType_Dihedral;
|
|
401
|
+
function _emscripten_enum_SoftBodySharedSettings_EBendType_SoftBodySharedSettings_EBendType_None(): SoftBodySharedSettings_EBendType;
|
|
402
|
+
function _emscripten_enum_SoftBodySharedSettings_EBendType_SoftBodySharedSettings_EBendType_Distance(): SoftBodySharedSettings_EBendType;
|
|
403
|
+
function _emscripten_enum_SoftBodySharedSettings_EBendType_SoftBodySharedSettings_EBendType_Dihedral(): SoftBodySharedSettings_EBendType;
|
|
404
|
+
const SoftBodySharedSettings_ELRAType_None: number;
|
|
405
|
+
const SoftBodySharedSettings_ELRAType_EuclideanDistance: number;
|
|
406
|
+
const SoftBodySharedSettings_ELRAType_GeodesicDistance: number;
|
|
407
|
+
type SoftBodySharedSettings_ELRAType =
|
|
408
|
+
| typeof SoftBodySharedSettings_ELRAType_None
|
|
409
|
+
| typeof SoftBodySharedSettings_ELRAType_EuclideanDistance
|
|
410
|
+
| typeof SoftBodySharedSettings_ELRAType_GeodesicDistance;
|
|
411
|
+
function _emscripten_enum_SoftBodySharedSettings_ELRAType_SoftBodySharedSettings_ELRAType_None(): SoftBodySharedSettings_ELRAType;
|
|
412
|
+
function _emscripten_enum_SoftBodySharedSettings_ELRAType_SoftBodySharedSettings_ELRAType_EuclideanDistance(): SoftBodySharedSettings_ELRAType;
|
|
413
|
+
function _emscripten_enum_SoftBodySharedSettings_ELRAType_SoftBodySharedSettings_ELRAType_GeodesicDistance(): SoftBodySharedSettings_ELRAType;
|
|
414
|
+
class Vec3MemRef {}
|
|
415
|
+
class QuatMemRef {}
|
|
416
|
+
class Mat44MemRef {}
|
|
417
|
+
class FloatMemRef {}
|
|
418
|
+
class Uint8MemRef {}
|
|
419
|
+
class UintMemRef {}
|
|
420
|
+
class Vec3 {
|
|
421
|
+
constructor();
|
|
422
|
+
constructor(inV: Float3);
|
|
423
|
+
constructor(inX: number, inY: number, inZ: number);
|
|
424
|
+
sZero(): Vec3;
|
|
425
|
+
sAxisX(): Vec3;
|
|
426
|
+
sAxisY(): Vec3;
|
|
427
|
+
sAxisZ(): Vec3;
|
|
428
|
+
sReplicate(inValue: number): Vec3;
|
|
429
|
+
sMin(inLHS: Vec3, inRHS: Vec3): Vec3;
|
|
430
|
+
sMax(inLHS: Vec3, inRHS: Vec3): Vec3;
|
|
431
|
+
sClamp(inValue: Vec3, inMin: Vec3, inMax: Vec3): Vec3;
|
|
432
|
+
sUnitSpherical(inTheta: number, inPhi: number): Vec3;
|
|
433
|
+
GetComponent(inCoordinate: number): number;
|
|
434
|
+
Equals(inV: Vec3): boolean;
|
|
435
|
+
NotEquals(inV: Vec3): boolean;
|
|
436
|
+
LengthSq(): number;
|
|
437
|
+
Length(): number;
|
|
438
|
+
Normalized(): Vec3;
|
|
439
|
+
NormalizedOr(inZeroValue: Vec3): Vec3;
|
|
440
|
+
GetNormalizedPerpendicular(): Vec3;
|
|
441
|
+
GetX(): number;
|
|
442
|
+
GetY(): number;
|
|
443
|
+
GetZ(): number;
|
|
444
|
+
SetX(inX: number): void;
|
|
445
|
+
SetY(inY: number): void;
|
|
446
|
+
SetZ(inZ: number): void;
|
|
447
|
+
Set(inX: number, inY: number, inZ: number): void;
|
|
448
|
+
SetComponent(inCoordinate: number, inValue: number): void;
|
|
449
|
+
IsNearZero(inMaxDistSq?: number): boolean;
|
|
450
|
+
IsClose(inV: Vec3, inMaxDistSq?: number): boolean;
|
|
451
|
+
IsNormalized(inTolerance?: number): boolean;
|
|
452
|
+
GetLowestComponentIndex(): number;
|
|
453
|
+
GetHighestComponentIndex(): number;
|
|
454
|
+
Abs(): Vec3;
|
|
455
|
+
Reciprocal(): Vec3;
|
|
456
|
+
Cross(inRHS: Vec3): Vec3;
|
|
457
|
+
Dot(inRHS: Vec3): number;
|
|
458
|
+
Add(inV: Vec3): Vec3;
|
|
459
|
+
Sub(inV: Vec3): Vec3;
|
|
460
|
+
Mul(inV: number): Vec3;
|
|
461
|
+
Div(inV: number): Vec3;
|
|
462
|
+
ReduceMin(): number;
|
|
463
|
+
ReduceMax(): number;
|
|
464
|
+
Sqrt(): Vec3;
|
|
465
|
+
GetSign(): Vec3;
|
|
466
|
+
}
|
|
467
|
+
class RVec3 {
|
|
468
|
+
constructor();
|
|
469
|
+
constructor(inX: number, inY: number, inZ: number);
|
|
470
|
+
sZero(): RVec3;
|
|
471
|
+
sAxisX(): RVec3;
|
|
472
|
+
sAxisY(): RVec3;
|
|
473
|
+
sAxisZ(): RVec3;
|
|
474
|
+
sReplicate(inValue: number): RVec3;
|
|
475
|
+
sMin(inLHS: RVec3, inRHS: RVec3): RVec3;
|
|
476
|
+
sMax(inLHS: RVec3, inRHS: RVec3): RVec3;
|
|
477
|
+
sClamp(inValue: RVec3, inMin: RVec3, inMax: RVec3): RVec3;
|
|
478
|
+
GetComponent(inCoordinate: number): number;
|
|
479
|
+
Equals(inV: RVec3): boolean;
|
|
480
|
+
NotEquals(inV: RVec3): boolean;
|
|
481
|
+
LengthSq(): number;
|
|
482
|
+
Length(): number;
|
|
483
|
+
Normalized(): RVec3;
|
|
484
|
+
GetX(): number;
|
|
485
|
+
GetY(): number;
|
|
486
|
+
GetZ(): number;
|
|
487
|
+
SetX(inX: number): void;
|
|
488
|
+
SetY(inY: number): void;
|
|
489
|
+
SetZ(inZ: number): void;
|
|
490
|
+
Set(inX: number, inY: number, inZ: number): void;
|
|
491
|
+
SetComponent(inCoordinate: number, inValue: number): void;
|
|
492
|
+
IsNearZero(inMaxDistSq?: number): boolean;
|
|
493
|
+
IsClose(inV: RVec3, inMaxDistSq?: number): boolean;
|
|
494
|
+
IsNormalized(inTolerance?: number): boolean;
|
|
495
|
+
Abs(): RVec3;
|
|
496
|
+
Reciprocal(): RVec3;
|
|
497
|
+
Cross(inRHS: RVec3): RVec3;
|
|
498
|
+
Dot(inRHS: RVec3): number;
|
|
499
|
+
Add(inV: Vec3): RVec3;
|
|
500
|
+
Sub(inV: Vec3): RVec3;
|
|
501
|
+
Mul(inV: number): RVec3;
|
|
502
|
+
Div(inV: number): RVec3;
|
|
503
|
+
Sqrt(): RVec3;
|
|
504
|
+
GetSign(): RVec3;
|
|
505
|
+
}
|
|
506
|
+
class Vec4 {
|
|
507
|
+
constructor();
|
|
508
|
+
constructor(inV: Vec4);
|
|
509
|
+
constructor(inV: Vec3, inW: number);
|
|
510
|
+
constructor(inX: number, inY: number, inZ: number, inW: number);
|
|
511
|
+
GetX(): number;
|
|
512
|
+
GetY(): number;
|
|
513
|
+
GetZ(): number;
|
|
514
|
+
GetW(): number;
|
|
515
|
+
SetX(inX: number): void;
|
|
516
|
+
SetY(inY: number): void;
|
|
517
|
+
SetZ(inZ: number): void;
|
|
518
|
+
SetW(inW: number): void;
|
|
519
|
+
Set(inX: number, inY: number, inZ: number, inW: number): void;
|
|
520
|
+
GetComponent(inCoordinate: number): number;
|
|
521
|
+
}
|
|
522
|
+
class Vector2 {
|
|
523
|
+
constructor();
|
|
524
|
+
SetZero(): void;
|
|
525
|
+
IsZero(): void;
|
|
526
|
+
IsClose(inV: Vector2, inMaxDistSq?: number): void;
|
|
527
|
+
IsNormalized(inTolerance?: number): void;
|
|
528
|
+
Normalized(): Vector2;
|
|
529
|
+
GetComponent(inCoordinate: number): number;
|
|
530
|
+
Add(inV: Vector2): Vector2;
|
|
531
|
+
Sub(inV: Vector2): Vector2;
|
|
532
|
+
Mul(inV: number): Vector2;
|
|
533
|
+
Div(inV: number): Vector2;
|
|
534
|
+
Dot(inRHS: Vector2): number;
|
|
535
|
+
}
|
|
536
|
+
class Quat {
|
|
537
|
+
constructor();
|
|
538
|
+
constructor(inX: number, inY: number, inZ: number, inW: number);
|
|
539
|
+
sZero(): Quat;
|
|
540
|
+
sIdentity(): Quat;
|
|
541
|
+
sRotation(inRotation: Vec3, inAngle: number): Quat;
|
|
542
|
+
sFromTo(inFrom: Vec3, inTo: Vec3): Quat;
|
|
543
|
+
Equals(inQ: Quat): boolean;
|
|
544
|
+
NotEquals(inQ: Quat): boolean;
|
|
545
|
+
MulQuat(inQ: Quat): Quat;
|
|
546
|
+
MulVec3(inV: Vec3): Vec3;
|
|
547
|
+
MulFloat(inV: number): Quat;
|
|
548
|
+
IsClose(inQ: Quat, inMaxDistSq?: number): boolean;
|
|
549
|
+
IsNormalized(inTolerance?: number): boolean;
|
|
550
|
+
Length(): number;
|
|
551
|
+
LengthSq(): number;
|
|
552
|
+
Normalized(): Quat;
|
|
553
|
+
sEulerAngles(inInput: Vec3): Quat;
|
|
554
|
+
GetEulerAngles(): Vec3;
|
|
555
|
+
GetX(): number;
|
|
556
|
+
GetY(): number;
|
|
557
|
+
GetZ(): number;
|
|
558
|
+
GetW(): number;
|
|
559
|
+
GetXYZ(): Vec3;
|
|
560
|
+
SetX(inX: number): void;
|
|
561
|
+
SetY(inY: number): void;
|
|
562
|
+
SetZ(inZ: number): void;
|
|
563
|
+
SetW(inW: number): void;
|
|
564
|
+
Set(inX: number, inY: number, inZ: number, inW: number): void;
|
|
565
|
+
InverseRotate(inV: Vec3): Vec3;
|
|
566
|
+
RotateAxisX(): Vec3;
|
|
567
|
+
RotateAxisY(): Vec3;
|
|
568
|
+
RotateAxisZ(): Vec3;
|
|
569
|
+
Dot(inQ: Quat): number;
|
|
570
|
+
Conjugated(): Quat;
|
|
571
|
+
Inversed(): Quat;
|
|
572
|
+
EnsureWPositive(): Quat;
|
|
573
|
+
GetPerpendicular(): Quat;
|
|
574
|
+
GetRotationAngle(inAxis: Vec3): number;
|
|
575
|
+
GetTwist(inAxis: Vec3): Quat;
|
|
576
|
+
GetSwingTwist(outSwing: Quat, outTwist: Quat): void;
|
|
577
|
+
LERP(inDestination: Quat, inFraction: number): Quat;
|
|
578
|
+
SLERP(inDestination: Quat, inFraction: number): Quat;
|
|
579
|
+
}
|
|
580
|
+
class Float3 {
|
|
581
|
+
constructor(inX: number, inY: number, inZ: number);
|
|
582
|
+
Equals(inV: Float3): boolean;
|
|
583
|
+
NotEquals(inV: Float3): boolean;
|
|
584
|
+
get_x(): number;
|
|
585
|
+
set_x(x: number): void;
|
|
586
|
+
x: number;
|
|
587
|
+
get_y(): number;
|
|
588
|
+
set_y(y: number): void;
|
|
589
|
+
y: number;
|
|
590
|
+
get_z(): number;
|
|
591
|
+
set_z(z: number): void;
|
|
592
|
+
z: number;
|
|
593
|
+
}
|
|
594
|
+
class Mat44 {
|
|
595
|
+
constructor();
|
|
596
|
+
sZero(): Mat44;
|
|
597
|
+
sIdentity(): Mat44;
|
|
598
|
+
sRotationX(inX: number): Mat44;
|
|
599
|
+
sRotationY(inY: number): Mat44;
|
|
600
|
+
sRotationZ(inZ: number): Mat44;
|
|
601
|
+
sRotation(inQ: Quat): Mat44;
|
|
602
|
+
sTranslation(inTranslation: Vec3): Mat44;
|
|
603
|
+
sRotationTranslation(inRotation: Quat, inTranslation: Vec3): Mat44;
|
|
604
|
+
sInverseRotationTranslation(inRotation: Quat, inTranslation: Vec3): Mat44;
|
|
605
|
+
sScale(inScale: number): Mat44;
|
|
606
|
+
sPerspective(
|
|
607
|
+
inFovY: number,
|
|
608
|
+
inAspect: number,
|
|
609
|
+
inNear: number,
|
|
610
|
+
inFar: number
|
|
611
|
+
): Mat44;
|
|
612
|
+
GetAxisX(): Vec3;
|
|
613
|
+
GetAxisY(): Vec3;
|
|
614
|
+
GetAxisZ(): Vec3;
|
|
615
|
+
GetRotation(): Mat44;
|
|
616
|
+
GetQuaternion(): Quat;
|
|
617
|
+
GetTranslation(): Vec3;
|
|
618
|
+
IsClose(inM: Mat44, inMaxDistSq?: number): boolean;
|
|
619
|
+
Multiply3x3(inV: Vec3): Vec3;
|
|
620
|
+
Multiply3x3Transposed(inV: Vec3): Vec3;
|
|
621
|
+
Transposed(): Mat44;
|
|
622
|
+
Transposed3x3(): Mat44;
|
|
623
|
+
Inversed(): Mat44;
|
|
624
|
+
InversedRotationTranslation(): Mat44;
|
|
625
|
+
GetDeterminant3x3(): number;
|
|
626
|
+
Inversed3x3(): Mat44;
|
|
627
|
+
GetDirectionPreservingMatrix(): Mat44;
|
|
628
|
+
PreTranslated(inTranslation: Vec3): Mat44;
|
|
629
|
+
PostTranslated(inTranslation: Vec3): Mat44;
|
|
630
|
+
PreScaled(inScale: Vec3): Mat44;
|
|
631
|
+
PostScaled(inScale: Vec3): Mat44;
|
|
632
|
+
SetColumn3(inCol: number, inV: Vec3): void;
|
|
633
|
+
SetAxisX(inV: Vec3): void;
|
|
634
|
+
SetAxisY(inV: Vec3): void;
|
|
635
|
+
SetAxisZ(inV: Vec3): void;
|
|
636
|
+
SetTranslation(inV: Vec3): void;
|
|
637
|
+
SetColumn4(inCol: number, inV: Vec4): void;
|
|
638
|
+
GetColumn4(inCol: number): Vec4;
|
|
639
|
+
}
|
|
640
|
+
class RMat44 {
|
|
641
|
+
constructor();
|
|
642
|
+
sZero(): RMat44;
|
|
643
|
+
sIdentity(): RMat44;
|
|
644
|
+
sRotation(inQ: Quat): RMat44;
|
|
645
|
+
sTranslation(inTranslation: RVec3): RMat44;
|
|
646
|
+
sRotationTranslation(inRotation: Quat, inTranslation: RVec3): RMat44;
|
|
647
|
+
sInverseRotationTranslation(inRotation: Quat, inTranslation: RVec3): RMat44;
|
|
648
|
+
GetAxisX(): Vec3;
|
|
649
|
+
GetAxisY(): Vec3;
|
|
650
|
+
GetAxisZ(): Vec3;
|
|
651
|
+
GetRotation(): Mat44;
|
|
652
|
+
GetQuaternion(): Quat;
|
|
653
|
+
GetTranslation(): RVec3;
|
|
654
|
+
IsClose(inM: RMat44, inMaxDistSq?: number): boolean;
|
|
655
|
+
Multiply3x3(inV: Vec3): Vec3;
|
|
656
|
+
Multiply3x3Transposed(inV: Vec3): Vec3;
|
|
657
|
+
Transposed3x3(): Mat44;
|
|
658
|
+
Inversed(): RMat44;
|
|
659
|
+
InversedRotationTranslation(): RMat44;
|
|
660
|
+
PreTranslated(inTranslation: Vec3): RMat44;
|
|
661
|
+
PostTranslated(inTranslation: Vec3): RMat44;
|
|
662
|
+
PreScaled(inScale: Vec3): RMat44;
|
|
663
|
+
PostScaled(inScale: Vec3): RMat44;
|
|
664
|
+
SetColumn3(inCol: number, inV: Vec3): void;
|
|
665
|
+
SetAxisX(inV: Vec3): void;
|
|
666
|
+
SetAxisY(inV: Vec3): void;
|
|
667
|
+
SetAxisZ(inV: Vec3): void;
|
|
668
|
+
SetTranslation(inV: RVec3): void;
|
|
669
|
+
SetColumn4(inCol: number, inV: Vec4): void;
|
|
670
|
+
GetColumn4(inCol: number): Vec4;
|
|
671
|
+
}
|
|
672
|
+
class AABox {
|
|
673
|
+
constructor();
|
|
674
|
+
constructor(inMin: Vec3, inMax: Vec3);
|
|
675
|
+
sBiggest(): AABox;
|
|
676
|
+
get_mMin(): Vec3;
|
|
677
|
+
set_mMin(mMin: Vec3): void;
|
|
678
|
+
mMin: Vec3;
|
|
679
|
+
get_mMax(): Vec3;
|
|
680
|
+
set_mMax(mMax: Vec3): void;
|
|
681
|
+
mMax: Vec3;
|
|
682
|
+
Overlaps(inOther: AABox): boolean;
|
|
683
|
+
}
|
|
684
|
+
class OrientedBox {
|
|
685
|
+
constructor();
|
|
686
|
+
constructor(inOrientation: Mat44, inHalfExtents: Vec3);
|
|
687
|
+
get_mOrientation(): Mat44;
|
|
688
|
+
set_mOrientation(mOrientation: Mat44): void;
|
|
689
|
+
mOrientation: Mat44;
|
|
690
|
+
get_mHalfExtents(): Vec3;
|
|
691
|
+
set_mHalfExtents(mHalfExtents: Vec3): void;
|
|
692
|
+
mHalfExtents: Vec3;
|
|
693
|
+
}
|
|
694
|
+
class RayCast {
|
|
695
|
+
constructor();
|
|
696
|
+
constructor(inOrigin: Vec3, inDirection: Vec3);
|
|
697
|
+
Transformed(inTransform: Mat44): RayCast;
|
|
698
|
+
Translated(inTranslation: Vec3): RayCast;
|
|
699
|
+
GetPointOnRay(inFraction: number): Vec3;
|
|
700
|
+
get_mOrigin(): Vec3;
|
|
701
|
+
set_mOrigin(mOrigin: Vec3): void;
|
|
702
|
+
mOrigin: Vec3;
|
|
703
|
+
get_mDirection(): Vec3;
|
|
704
|
+
set_mDirection(mDirection: Vec3): void;
|
|
705
|
+
mDirection: Vec3;
|
|
706
|
+
}
|
|
707
|
+
class RRayCast {
|
|
708
|
+
constructor();
|
|
709
|
+
constructor(inOrigin: RVec3, inDirection: Vec3);
|
|
710
|
+
Transformed(inTransform: RMat44): RRayCast;
|
|
711
|
+
Translated(inTranslation: RVec3): RRayCast;
|
|
712
|
+
GetPointOnRay(inFraction: number): RVec3;
|
|
713
|
+
get_mOrigin(): RVec3;
|
|
714
|
+
set_mOrigin(mOrigin: RVec3): void;
|
|
715
|
+
mOrigin: RVec3;
|
|
716
|
+
get_mDirection(): Vec3;
|
|
717
|
+
set_mDirection(mDirection: Vec3): void;
|
|
718
|
+
mDirection: Vec3;
|
|
719
|
+
}
|
|
720
|
+
class BroadPhaseCastResult {
|
|
721
|
+
constructor();
|
|
722
|
+
Reset(): void;
|
|
723
|
+
get_mBodyID(): BodyID;
|
|
724
|
+
set_mBodyID(mBodyID: BodyID): void;
|
|
725
|
+
mBodyID: BodyID;
|
|
726
|
+
get_mFraction(): number;
|
|
727
|
+
set_mFraction(mFraction: number): void;
|
|
728
|
+
mFraction: number;
|
|
729
|
+
}
|
|
730
|
+
class RayCastResult extends BroadPhaseCastResult {
|
|
731
|
+
constructor();
|
|
732
|
+
get_mSubShapeID2(): SubShapeID;
|
|
733
|
+
set_mSubShapeID2(mSubShapeID2: SubShapeID): void;
|
|
734
|
+
mSubShapeID2: SubShapeID;
|
|
735
|
+
}
|
|
736
|
+
class AABoxCast {
|
|
737
|
+
constructor();
|
|
738
|
+
get_mBox(): AABox;
|
|
739
|
+
set_mBox(mBox: AABox): void;
|
|
740
|
+
mBox: AABox;
|
|
741
|
+
get_mDirection(): Vec3;
|
|
742
|
+
set_mDirection(mDirection: Vec3): void;
|
|
743
|
+
mDirection: Vec3;
|
|
744
|
+
}
|
|
745
|
+
class ShapeCast {
|
|
746
|
+
constructor(
|
|
747
|
+
inShape: Shape,
|
|
748
|
+
inScale: Vec3,
|
|
749
|
+
inCenterOfMassStart: Mat44,
|
|
750
|
+
inDirection: Vec3
|
|
751
|
+
);
|
|
752
|
+
get_mShape(): Shape;
|
|
753
|
+
set_mShape(mShape: Shape): void;
|
|
754
|
+
readonly mShape: Shape;
|
|
755
|
+
get_mScale(): Vec3;
|
|
756
|
+
set_mScale(mScale: Vec3): void;
|
|
757
|
+
readonly mScale: Vec3;
|
|
758
|
+
get_mCenterOfMassStart(): Mat44;
|
|
759
|
+
set_mCenterOfMassStart(mCenterOfMassStart: Mat44): void;
|
|
760
|
+
readonly mCenterOfMassStart: Mat44;
|
|
761
|
+
get_mDirection(): Vec3;
|
|
762
|
+
set_mDirection(mDirection: Vec3): void;
|
|
763
|
+
readonly mDirection: Vec3;
|
|
764
|
+
GetPointOnRay(inFraction: number): Vec3;
|
|
765
|
+
}
|
|
766
|
+
class RShapeCast {
|
|
767
|
+
constructor(
|
|
768
|
+
inShape: Shape,
|
|
769
|
+
inScale: Vec3,
|
|
770
|
+
inCenterOfMassStart: RMat44,
|
|
771
|
+
inDirection: Vec3
|
|
772
|
+
);
|
|
773
|
+
get_mShape(): Shape;
|
|
774
|
+
set_mShape(mShape: Shape): void;
|
|
775
|
+
readonly mShape: Shape;
|
|
776
|
+
get_mScale(): Vec3;
|
|
777
|
+
set_mScale(mScale: Vec3): void;
|
|
778
|
+
readonly mScale: Vec3;
|
|
779
|
+
get_mCenterOfMassStart(): RMat44;
|
|
780
|
+
set_mCenterOfMassStart(mCenterOfMassStart: RMat44): void;
|
|
781
|
+
readonly mCenterOfMassStart: RMat44;
|
|
782
|
+
get_mDirection(): Vec3;
|
|
783
|
+
set_mDirection(mDirection: Vec3): void;
|
|
784
|
+
readonly mDirection: Vec3;
|
|
785
|
+
GetPointOnRay(inFraction: number): RVec3;
|
|
786
|
+
}
|
|
787
|
+
class Plane {
|
|
788
|
+
constructor(inNormal: Vec3, inConstant: number);
|
|
789
|
+
GetNormal(): Vec3;
|
|
790
|
+
SetNormal(inNormal: Vec3): void;
|
|
791
|
+
GetConstant(): number;
|
|
792
|
+
SetConstant(inConstant: number): void;
|
|
793
|
+
sFromPointAndNormal(inPoint: Vec3, inNormal: Vec3): Plane;
|
|
794
|
+
sFromPointsCCW(inPoint1: Vec3, inPoint2: Vec3, inPoint3: Vec3): Plane;
|
|
795
|
+
Offset(inDistance: number): Plane;
|
|
796
|
+
Scaled(inScale: Vec3): Plane;
|
|
797
|
+
GetTransformed(inTransform: Mat44): Plane;
|
|
798
|
+
ProjectPointOnPlane(inPoint: Vec3): Vec3;
|
|
799
|
+
SignedDistance(inPoint: Vec3): number;
|
|
800
|
+
}
|
|
801
|
+
class TransformedShape {
|
|
802
|
+
constructor();
|
|
803
|
+
CastRay(inRay: RRayCast, ioHit: RayCastResult): void;
|
|
804
|
+
CastRay(
|
|
805
|
+
inRay: RRayCast,
|
|
806
|
+
inRayCastSettings: RayCastSettings,
|
|
807
|
+
ioCollector: CastRayCollector,
|
|
808
|
+
inShapeFilter: ShapeFilter
|
|
809
|
+
): void;
|
|
810
|
+
CollidePoint(
|
|
811
|
+
inPoint: RVec3,
|
|
812
|
+
ioCollector: CollidePointCollector,
|
|
813
|
+
inShapeFilter: ShapeFilter
|
|
814
|
+
): void;
|
|
815
|
+
CollideShape(
|
|
816
|
+
inShape: Shape,
|
|
817
|
+
inShapeScale: Vec3,
|
|
818
|
+
inCenterOfMassTransform: RMat44,
|
|
819
|
+
inCollideShapeSettings: CollideShapeSettings,
|
|
820
|
+
inBaseOffset: RVec3,
|
|
821
|
+
ioCollector: CollideShapeCollector,
|
|
822
|
+
inShapeFilter: ShapeFilter
|
|
823
|
+
): void;
|
|
824
|
+
CastShape(
|
|
825
|
+
inShapeCast: RShapeCast,
|
|
826
|
+
inShapeCastSettings: ShapeCastSettings,
|
|
827
|
+
inBaseOffset: RVec3,
|
|
828
|
+
ioCollector: CastShapeCollector,
|
|
829
|
+
inShapeFilter: ShapeFilter
|
|
830
|
+
): void;
|
|
831
|
+
CollectTransformedShapes(
|
|
832
|
+
inBox: AABox,
|
|
833
|
+
ioCollector: TransformedShapeCollector,
|
|
834
|
+
inShapeFilter: ShapeFilter
|
|
835
|
+
): void;
|
|
836
|
+
GetShapeScale(): Vec3;
|
|
837
|
+
SetShapeScale(inScale: Vec3): void;
|
|
838
|
+
GetCenterOfMassTransform(): RMat44;
|
|
839
|
+
GetInverseCenterOfMassTransform(): RMat44;
|
|
840
|
+
SetWorldTransform(inPosition: RVec3, inRotation: Quat, inScale: Vec3): void;
|
|
841
|
+
SetWorldTransform(inTransform: RMat44): void;
|
|
842
|
+
GetWorldTransform(): RMat44;
|
|
843
|
+
GetWorldSpaceBounds(): AABox;
|
|
844
|
+
GetWorldSpaceSurfaceNormal(
|
|
845
|
+
inSubShapeID: SubShapeID,
|
|
846
|
+
inPosition: RVec3
|
|
847
|
+
): Vec3;
|
|
848
|
+
GetMaterial(inSubShapeID: SubShapeID): PhysicsMaterial;
|
|
849
|
+
get_mShapePositionCOM(): RVec3;
|
|
850
|
+
set_mShapePositionCOM(mShapePositionCOM: RVec3): void;
|
|
851
|
+
mShapePositionCOM: RVec3;
|
|
852
|
+
get_mShapeRotation(): Quat;
|
|
853
|
+
set_mShapeRotation(mShapeRotation: Quat): void;
|
|
854
|
+
mShapeRotation: Quat;
|
|
855
|
+
get_mShape(): Shape;
|
|
856
|
+
set_mShape(mShape: Shape): void;
|
|
857
|
+
mShape: Shape;
|
|
858
|
+
get_mShapeScale(): Float3;
|
|
859
|
+
set_mShapeScale(mShapeScale: Float3): void;
|
|
860
|
+
mShapeScale: Float3;
|
|
861
|
+
get_mBodyID(): BodyID;
|
|
862
|
+
set_mBodyID(mBodyID: BodyID): void;
|
|
863
|
+
mBodyID: BodyID;
|
|
864
|
+
}
|
|
865
|
+
class PhysicsMaterial {
|
|
866
|
+
constructor();
|
|
867
|
+
GetRefCount(): number;
|
|
868
|
+
AddRef(): void;
|
|
869
|
+
Release(): void;
|
|
870
|
+
}
|
|
871
|
+
class PhysicsMaterialList {
|
|
872
|
+
constructor();
|
|
873
|
+
empty(): boolean;
|
|
874
|
+
size(): number;
|
|
875
|
+
at(inIndex: number): PhysicsMaterial;
|
|
876
|
+
push_back(inMaterial: PhysicsMaterial): void;
|
|
877
|
+
reserve(inSize: number): void;
|
|
878
|
+
resize(inSize: number): void;
|
|
879
|
+
clear(): void;
|
|
880
|
+
}
|
|
881
|
+
class Triangle {
|
|
882
|
+
constructor();
|
|
883
|
+
constructor(
|
|
884
|
+
inV1: Vec3,
|
|
885
|
+
inV2: Vec3,
|
|
886
|
+
inV3: Vec3,
|
|
887
|
+
inMaterialIndex?: number,
|
|
888
|
+
inUserData?: number
|
|
889
|
+
);
|
|
890
|
+
get_mV(index: number): Float3;
|
|
891
|
+
set_mV(index: number, mV: Float3): void;
|
|
892
|
+
mV: Float3;
|
|
893
|
+
get_mMaterialIndex(): number;
|
|
894
|
+
set_mMaterialIndex(mMaterialIndex: number): void;
|
|
895
|
+
mMaterialIndex: number;
|
|
896
|
+
get_mUserData(): number;
|
|
897
|
+
set_mUserData(mUserData: number): void;
|
|
898
|
+
mUserData: number;
|
|
899
|
+
}
|
|
900
|
+
class TriangleList {
|
|
901
|
+
constructor();
|
|
902
|
+
empty(): boolean;
|
|
903
|
+
size(): number;
|
|
904
|
+
at(inIndex: number): Triangle;
|
|
905
|
+
push_back(inTriangle: Triangle): void;
|
|
906
|
+
reserve(inSize: number): void;
|
|
907
|
+
resize(inSize: number): void;
|
|
908
|
+
clear(): void;
|
|
909
|
+
}
|
|
910
|
+
class VertexList {
|
|
911
|
+
constructor();
|
|
912
|
+
empty(): boolean;
|
|
913
|
+
size(): number;
|
|
914
|
+
at(inIndex: number): Float3;
|
|
915
|
+
push_back(inVertex: Float3): void;
|
|
916
|
+
reserve(inSize: number): void;
|
|
917
|
+
resize(inSize: number): void;
|
|
918
|
+
clear(): void;
|
|
919
|
+
}
|
|
920
|
+
class IndexedTriangle {
|
|
921
|
+
constructor();
|
|
922
|
+
constructor(
|
|
923
|
+
inI1: number,
|
|
924
|
+
inI2: number,
|
|
925
|
+
inI3: number,
|
|
926
|
+
inMaterialIndex: number,
|
|
927
|
+
inUserData?: number
|
|
928
|
+
);
|
|
929
|
+
get_mIdx(index: number): number;
|
|
930
|
+
set_mIdx(index: number, mIdx: number): void;
|
|
931
|
+
mIdx: number;
|
|
932
|
+
get_mMaterialIndex(): number;
|
|
933
|
+
set_mMaterialIndex(mMaterialIndex: number): void;
|
|
934
|
+
mMaterialIndex: number;
|
|
935
|
+
get_mUserData(): number;
|
|
936
|
+
set_mUserData(mUserData: number): void;
|
|
937
|
+
mUserData: number;
|
|
938
|
+
}
|
|
939
|
+
class IndexedTriangleList {
|
|
940
|
+
constructor();
|
|
941
|
+
empty(): boolean;
|
|
942
|
+
size(): number;
|
|
943
|
+
at(inIndex: number): IndexedTriangle;
|
|
944
|
+
push_back(inTriangle: IndexedTriangle): void;
|
|
945
|
+
reserve(inSize: number): void;
|
|
946
|
+
resize(inSize: number): void;
|
|
947
|
+
clear(): void;
|
|
948
|
+
}
|
|
949
|
+
class ShapeResult {
|
|
950
|
+
IsValid(): boolean;
|
|
951
|
+
HasError(): boolean;
|
|
952
|
+
GetError(): JPHString;
|
|
953
|
+
Get(): Shape;
|
|
954
|
+
Clear(): void;
|
|
955
|
+
}
|
|
956
|
+
class ShapeSettings {
|
|
957
|
+
GetRefCount(): number;
|
|
958
|
+
AddRef(): void;
|
|
959
|
+
Release(): void;
|
|
960
|
+
Create(): ShapeResult;
|
|
961
|
+
ClearCachedResult(): void;
|
|
962
|
+
get_mUserData(): number;
|
|
963
|
+
set_mUserData(mUserData: number): void;
|
|
964
|
+
mUserData: number;
|
|
965
|
+
}
|
|
966
|
+
class Shape {
|
|
967
|
+
GetRefCount(): number;
|
|
968
|
+
AddRef(): void;
|
|
969
|
+
Release(): void;
|
|
970
|
+
GetType(): EShapeType;
|
|
971
|
+
GetSubType(): EShapeSubType;
|
|
972
|
+
MustBeStatic(): boolean;
|
|
973
|
+
GetLocalBounds(): AABox;
|
|
974
|
+
GetWorldSpaceBounds(inCenterOfMassTransform: Mat44, inScale: Vec3): AABox;
|
|
975
|
+
GetCenterOfMass(): Vec3;
|
|
976
|
+
GetUserData(): number;
|
|
977
|
+
SetUserData(inUserData: number): void;
|
|
978
|
+
GetSubShapeIDBitsRecursive(): number;
|
|
979
|
+
GetInnerRadius(): number;
|
|
980
|
+
GetMassProperties(): MassProperties;
|
|
981
|
+
GetLeafShape(inSubShapeID: SubShapeID, outRemainder: SubShapeID): Shape;
|
|
982
|
+
GetMaterial(inSubShapeID: SubShapeID): PhysicsMaterial;
|
|
983
|
+
GetSurfaceNormal(
|
|
984
|
+
inSubShapeID: SubShapeID,
|
|
985
|
+
inLocalSurfacePosition: Vec3
|
|
986
|
+
): Vec3;
|
|
987
|
+
GetSubShapeUserData(inSubShapeID: SubShapeID): number;
|
|
988
|
+
GetSubShapeTransformedShape(
|
|
989
|
+
inSubShapeID: SubShapeID,
|
|
990
|
+
inPositionCOM: Vec3,
|
|
991
|
+
inRotation: Quat,
|
|
992
|
+
inScale: Vec3,
|
|
993
|
+
outRemainder: SubShapeID
|
|
994
|
+
): TransformedShape;
|
|
995
|
+
GetVolume(): number;
|
|
996
|
+
IsValidScale(inScale: Vec3): boolean;
|
|
997
|
+
MakeScaleValid(inScale: Vec3): Vec3;
|
|
998
|
+
ScaleShape(inScale: Vec3): ShapeResult;
|
|
999
|
+
}
|
|
1000
|
+
class ShapeGetTriangles {
|
|
1001
|
+
constructor(
|
|
1002
|
+
inShape: Shape,
|
|
1003
|
+
inBox: AABox,
|
|
1004
|
+
inPositionCOM: Vec3,
|
|
1005
|
+
inRotation: Quat,
|
|
1006
|
+
inScale: Vec3
|
|
1007
|
+
);
|
|
1008
|
+
GetNumTriangles(): number;
|
|
1009
|
+
GetVerticesSize(): number;
|
|
1010
|
+
GetVerticesData(): any;
|
|
1011
|
+
GetMaterial(inTriangle: number): PhysicsMaterial;
|
|
1012
|
+
}
|
|
1013
|
+
class ConvexShapeSettings extends ShapeSettings {
|
|
1014
|
+
get_mMaterial(): PhysicsMaterial;
|
|
1015
|
+
set_mMaterial(mMaterial: PhysicsMaterial): void;
|
|
1016
|
+
mMaterial: PhysicsMaterial;
|
|
1017
|
+
get_mDensity(): number;
|
|
1018
|
+
set_mDensity(mDensity: number): void;
|
|
1019
|
+
mDensity: number;
|
|
1020
|
+
}
|
|
1021
|
+
class ConvexShape extends Shape {
|
|
1022
|
+
GetDensity(): number;
|
|
1023
|
+
SetDensity(inDensity: number): void;
|
|
1024
|
+
}
|
|
1025
|
+
class SphereShapeSettings extends ConvexShapeSettings {
|
|
1026
|
+
constructor(inRadius: number, inMaterial?: PhysicsMaterial);
|
|
1027
|
+
get_mRadius(): number;
|
|
1028
|
+
set_mRadius(mRadius: number): void;
|
|
1029
|
+
mRadius: number;
|
|
1030
|
+
}
|
|
1031
|
+
class SphereShape extends ConvexShape {
|
|
1032
|
+
constructor(inRadius: number, inMaterial?: PhysicsMaterial);
|
|
1033
|
+
GetRadius(): number;
|
|
1034
|
+
}
|
|
1035
|
+
class BoxShapeSettings extends ConvexShapeSettings {
|
|
1036
|
+
constructor(
|
|
1037
|
+
inHalfExtent: Vec3,
|
|
1038
|
+
inConvexRadius?: number,
|
|
1039
|
+
inMaterial?: PhysicsMaterial
|
|
1040
|
+
);
|
|
1041
|
+
get_mHalfExtent(): Vec3;
|
|
1042
|
+
set_mHalfExtent(mHalfExtent: Vec3): void;
|
|
1043
|
+
mHalfExtent: Vec3;
|
|
1044
|
+
get_mConvexRadius(): number;
|
|
1045
|
+
set_mConvexRadius(mConvexRadius: number): void;
|
|
1046
|
+
mConvexRadius: number;
|
|
1047
|
+
}
|
|
1048
|
+
class BoxShape extends ConvexShape {
|
|
1049
|
+
constructor(
|
|
1050
|
+
inHalfExtent: Vec3,
|
|
1051
|
+
inConvexRadius?: number,
|
|
1052
|
+
inMaterial?: PhysicsMaterial
|
|
1053
|
+
);
|
|
1054
|
+
GetHalfExtent(): Vec3;
|
|
1055
|
+
}
|
|
1056
|
+
class CylinderShapeSettings extends ConvexShapeSettings {
|
|
1057
|
+
constructor(
|
|
1058
|
+
inHalfHeight: number,
|
|
1059
|
+
inRadius: number,
|
|
1060
|
+
inConvexRadius?: number,
|
|
1061
|
+
inMaterial?: PhysicsMaterial
|
|
1062
|
+
);
|
|
1063
|
+
get_mHalfHeight(): number;
|
|
1064
|
+
set_mHalfHeight(mHalfHeight: number): void;
|
|
1065
|
+
mHalfHeight: number;
|
|
1066
|
+
get_mRadius(): number;
|
|
1067
|
+
set_mRadius(mRadius: number): void;
|
|
1068
|
+
mRadius: number;
|
|
1069
|
+
get_mConvexRadius(): number;
|
|
1070
|
+
set_mConvexRadius(mConvexRadius: number): void;
|
|
1071
|
+
mConvexRadius: number;
|
|
1072
|
+
}
|
|
1073
|
+
class CylinderShape extends ConvexShape {
|
|
1074
|
+
constructor(
|
|
1075
|
+
inHalfHeight: number,
|
|
1076
|
+
inRadius: number,
|
|
1077
|
+
inConvexRadius: number,
|
|
1078
|
+
inMaterial?: PhysicsMaterial
|
|
1079
|
+
);
|
|
1080
|
+
GetRadius(): number;
|
|
1081
|
+
GetHalfHeight(): number;
|
|
1082
|
+
}
|
|
1083
|
+
class TaperedCylinderShapeSettings extends ConvexShapeSettings {
|
|
1084
|
+
constructor(
|
|
1085
|
+
inHalfHeightOfTaperedCylinder: number,
|
|
1086
|
+
inTopRadius: number,
|
|
1087
|
+
inBottomRadius: number,
|
|
1088
|
+
inConvexRadius?: number,
|
|
1089
|
+
inMaterial?: PhysicsMaterial
|
|
1090
|
+
);
|
|
1091
|
+
get_mHalfHeight(): number;
|
|
1092
|
+
set_mHalfHeight(mHalfHeight: number): void;
|
|
1093
|
+
mHalfHeight: number;
|
|
1094
|
+
get_mTopRadius(): number;
|
|
1095
|
+
set_mTopRadius(mTopRadius: number): void;
|
|
1096
|
+
mTopRadius: number;
|
|
1097
|
+
get_mBottomRadius(): number;
|
|
1098
|
+
set_mBottomRadius(mBottomRadius: number): void;
|
|
1099
|
+
mBottomRadius: number;
|
|
1100
|
+
get_mConvexRadius(): number;
|
|
1101
|
+
set_mConvexRadius(mConvexRadius: number): void;
|
|
1102
|
+
mConvexRadius: number;
|
|
1103
|
+
}
|
|
1104
|
+
class TaperedCylinderShape extends ConvexShape {
|
|
1105
|
+
GetHalfHeight(): number;
|
|
1106
|
+
GetTopRadius(): number;
|
|
1107
|
+
GetBottomRadius(): number;
|
|
1108
|
+
GetConvexRadius(): number;
|
|
1109
|
+
}
|
|
1110
|
+
class CapsuleShapeSettings extends ConvexShapeSettings {
|
|
1111
|
+
constructor(
|
|
1112
|
+
inHalfHeight: number,
|
|
1113
|
+
inRadius: number,
|
|
1114
|
+
inMaterial?: PhysicsMaterial
|
|
1115
|
+
);
|
|
1116
|
+
get_mRadius(): number;
|
|
1117
|
+
set_mRadius(mRadius: number): void;
|
|
1118
|
+
mRadius: number;
|
|
1119
|
+
get_mHalfHeightOfCylinder(): number;
|
|
1120
|
+
set_mHalfHeightOfCylinder(mHalfHeightOfCylinder: number): void;
|
|
1121
|
+
mHalfHeightOfCylinder: number;
|
|
1122
|
+
}
|
|
1123
|
+
class CapsuleShape extends ConvexShape {
|
|
1124
|
+
constructor(
|
|
1125
|
+
inHalfHeight: number,
|
|
1126
|
+
inRadius: number,
|
|
1127
|
+
inMaterial?: PhysicsMaterial
|
|
1128
|
+
);
|
|
1129
|
+
GetRadius(): number;
|
|
1130
|
+
GetHalfHeightOfCylinder(): number;
|
|
1131
|
+
}
|
|
1132
|
+
class TaperedCapsuleShapeSettings extends ConvexShapeSettings {
|
|
1133
|
+
constructor(
|
|
1134
|
+
inHalfHeightOfTaperedCylinder: number,
|
|
1135
|
+
inTopRadius: number,
|
|
1136
|
+
inBottomRadius: number,
|
|
1137
|
+
inMaterial?: PhysicsMaterial
|
|
1138
|
+
);
|
|
1139
|
+
get_mHalfHeightOfTaperedCylinder(): number;
|
|
1140
|
+
set_mHalfHeightOfTaperedCylinder(
|
|
1141
|
+
mHalfHeightOfTaperedCylinder: number
|
|
1142
|
+
): void;
|
|
1143
|
+
mHalfHeightOfTaperedCylinder: number;
|
|
1144
|
+
get_mTopRadius(): number;
|
|
1145
|
+
set_mTopRadius(mTopRadius: number): void;
|
|
1146
|
+
mTopRadius: number;
|
|
1147
|
+
get_mBottomRadius(): number;
|
|
1148
|
+
set_mBottomRadius(mBottomRadius: number): void;
|
|
1149
|
+
mBottomRadius: number;
|
|
1150
|
+
}
|
|
1151
|
+
class TaperedCapsuleShape extends ConvexShape {
|
|
1152
|
+
GetHalfHeight(): number;
|
|
1153
|
+
GetTopRadius(): number;
|
|
1154
|
+
GetBottomRadius(): number;
|
|
1155
|
+
}
|
|
1156
|
+
class ConvexHullShapeSettings extends ConvexShapeSettings {
|
|
1157
|
+
constructor();
|
|
1158
|
+
get_mPoints(): ArrayVec3;
|
|
1159
|
+
set_mPoints(mPoints: ArrayVec3): void;
|
|
1160
|
+
mPoints: ArrayVec3;
|
|
1161
|
+
get_mMaxConvexRadius(): number;
|
|
1162
|
+
set_mMaxConvexRadius(mMaxConvexRadius: number): void;
|
|
1163
|
+
mMaxConvexRadius: number;
|
|
1164
|
+
get_mMaxErrorConvexRadius(): number;
|
|
1165
|
+
set_mMaxErrorConvexRadius(mMaxErrorConvexRadius: number): void;
|
|
1166
|
+
mMaxErrorConvexRadius: number;
|
|
1167
|
+
get_mHullTolerance(): number;
|
|
1168
|
+
set_mHullTolerance(mHullTolerance: number): void;
|
|
1169
|
+
mHullTolerance: number;
|
|
1170
|
+
}
|
|
1171
|
+
class ConvexHullShape extends ConvexShape {}
|
|
1172
|
+
class CompoundShapeSettings extends ShapeSettings {
|
|
1173
|
+
AddShape(
|
|
1174
|
+
inPosition: Vec3,
|
|
1175
|
+
inRotation: Quat,
|
|
1176
|
+
inShape: ShapeSettings,
|
|
1177
|
+
inUserData: number
|
|
1178
|
+
): void;
|
|
1179
|
+
}
|
|
1180
|
+
class CompoundShapeSubShape {
|
|
1181
|
+
GetPositionCOM(): Vec3;
|
|
1182
|
+
GetRotation(): Quat;
|
|
1183
|
+
get_mShape(): Shape;
|
|
1184
|
+
set_mShape(mShape: Shape): void;
|
|
1185
|
+
mShape: Shape;
|
|
1186
|
+
get_mUserData(): number;
|
|
1187
|
+
set_mUserData(mUserData: number): void;
|
|
1188
|
+
mUserData: number;
|
|
1189
|
+
}
|
|
1190
|
+
class CompoundShape extends Shape {
|
|
1191
|
+
GetNumSubShapes(): number;
|
|
1192
|
+
GetSubShape(inIdx: number): CompoundShapeSubShape;
|
|
1193
|
+
}
|
|
1194
|
+
class StaticCompoundShapeSettings extends CompoundShapeSettings {
|
|
1195
|
+
constructor();
|
|
1196
|
+
}
|
|
1197
|
+
class StaticCompoundShape extends CompoundShape {}
|
|
1198
|
+
class MutableCompoundShapeSettings extends CompoundShapeSettings {
|
|
1199
|
+
constructor();
|
|
1200
|
+
}
|
|
1201
|
+
class MutableCompoundShape extends CompoundShape {
|
|
1202
|
+
AddShape(
|
|
1203
|
+
inPosition: Vec3,
|
|
1204
|
+
inRotation: Quat,
|
|
1205
|
+
inShape: Shape,
|
|
1206
|
+
inUserData: number
|
|
1207
|
+
): number;
|
|
1208
|
+
RemoveShape(inIndex: number): void;
|
|
1209
|
+
ModifyShape(inIndex: number, inPosition: Vec3, inRotation: Quat): void;
|
|
1210
|
+
ModifyShape(
|
|
1211
|
+
inIndex: number,
|
|
1212
|
+
inPosition: Vec3,
|
|
1213
|
+
inRotation: Quat,
|
|
1214
|
+
inShape: Shape
|
|
1215
|
+
): void;
|
|
1216
|
+
ModifyShapes(
|
|
1217
|
+
inStartIndex: number,
|
|
1218
|
+
inNumber: number,
|
|
1219
|
+
inPositions: Vec3MemRef,
|
|
1220
|
+
inRotations: QuatMemRef
|
|
1221
|
+
): void;
|
|
1222
|
+
AdjustCenterOfMass(): void;
|
|
1223
|
+
}
|
|
1224
|
+
class DecoratedShapeSettings extends ShapeSettings {}
|
|
1225
|
+
class DecoratedShape extends Shape {
|
|
1226
|
+
GetInnerShape(): Shape;
|
|
1227
|
+
}
|
|
1228
|
+
class ScaledShapeSettings extends DecoratedShapeSettings {
|
|
1229
|
+
constructor(inShape: ShapeSettings, inScale: Vec3);
|
|
1230
|
+
get_mScale(): Vec3;
|
|
1231
|
+
set_mScale(mScale: Vec3): void;
|
|
1232
|
+
mScale: Vec3;
|
|
1233
|
+
}
|
|
1234
|
+
class ScaledShape extends DecoratedShape {
|
|
1235
|
+
constructor(inShape: Shape, inScale: Vec3);
|
|
1236
|
+
GetScale(): Vec3;
|
|
1237
|
+
}
|
|
1238
|
+
class OffsetCenterOfMassShapeSettings extends DecoratedShapeSettings {
|
|
1239
|
+
constructor(inOffset: Vec3, inShape: ShapeSettings);
|
|
1240
|
+
get_mOffset(): Vec3;
|
|
1241
|
+
set_mOffset(mOffset: Vec3): void;
|
|
1242
|
+
mOffset: Vec3;
|
|
1243
|
+
}
|
|
1244
|
+
class OffsetCenterOfMassShape extends DecoratedShape {
|
|
1245
|
+
constructor(inShape: Shape, inOffset: Vec3);
|
|
1246
|
+
}
|
|
1247
|
+
class RotatedTranslatedShapeSettings extends DecoratedShapeSettings {
|
|
1248
|
+
constructor(inPosition: Vec3, inRotation: Quat, inShape: ShapeSettings);
|
|
1249
|
+
get_mPosition(): Vec3;
|
|
1250
|
+
set_mPosition(mPosition: Vec3): void;
|
|
1251
|
+
mPosition: Vec3;
|
|
1252
|
+
get_mRotation(): Quat;
|
|
1253
|
+
set_mRotation(mRotation: Quat): void;
|
|
1254
|
+
mRotation: Quat;
|
|
1255
|
+
}
|
|
1256
|
+
class RotatedTranslatedShape extends DecoratedShape {
|
|
1257
|
+
GetRotation(): Quat;
|
|
1258
|
+
GetPosition(): Vec3;
|
|
1259
|
+
}
|
|
1260
|
+
class MeshShapeSettings extends ShapeSettings {
|
|
1261
|
+
constructor();
|
|
1262
|
+
constructor(
|
|
1263
|
+
inTriangleList: TriangleList,
|
|
1264
|
+
inMaterialList?: PhysicsMaterialList
|
|
1265
|
+
);
|
|
1266
|
+
constructor(
|
|
1267
|
+
inVertices: VertexList,
|
|
1268
|
+
inTriangles: IndexedTriangleList,
|
|
1269
|
+
inMaterialList: PhysicsMaterialList
|
|
1270
|
+
);
|
|
1271
|
+
Sanitize(): void;
|
|
1272
|
+
get_mTriangleVertices(): VertexList;
|
|
1273
|
+
set_mTriangleVertices(mTriangleVertices: VertexList): void;
|
|
1274
|
+
mTriangleVertices: VertexList;
|
|
1275
|
+
get_mIndexedTriangles(): IndexedTriangleList;
|
|
1276
|
+
set_mIndexedTriangles(mIndexedTriangles: IndexedTriangleList): void;
|
|
1277
|
+
mIndexedTriangles: IndexedTriangleList;
|
|
1278
|
+
get_mMaterials(): PhysicsMaterialList;
|
|
1279
|
+
set_mMaterials(mMaterials: PhysicsMaterialList): void;
|
|
1280
|
+
mMaterials: PhysicsMaterialList;
|
|
1281
|
+
get_mMaxTrianglesPerLeaf(): number;
|
|
1282
|
+
set_mMaxTrianglesPerLeaf(mMaxTrianglesPerLeaf: number): void;
|
|
1283
|
+
mMaxTrianglesPerLeaf: number;
|
|
1284
|
+
get_mActiveEdgeCosThresholdAngle(): number;
|
|
1285
|
+
set_mActiveEdgeCosThresholdAngle(
|
|
1286
|
+
mActiveEdgeCosThresholdAngle: number
|
|
1287
|
+
): void;
|
|
1288
|
+
mActiveEdgeCosThresholdAngle: number;
|
|
1289
|
+
get_mPerTriangleUserData(): boolean;
|
|
1290
|
+
set_mPerTriangleUserData(mPerTriangleUserData: boolean): void;
|
|
1291
|
+
mPerTriangleUserData: boolean;
|
|
1292
|
+
}
|
|
1293
|
+
class MeshShape extends Shape {
|
|
1294
|
+
GetTriangleUserData(inSubShapeID: SubShapeID): number;
|
|
1295
|
+
}
|
|
1296
|
+
class HeightFieldShapeConstantValues {
|
|
1297
|
+
get_cNoCollisionValue(): number;
|
|
1298
|
+
set_cNoCollisionValue(cNoCollisionValue: number): void;
|
|
1299
|
+
readonly cNoCollisionValue: number;
|
|
1300
|
+
}
|
|
1301
|
+
class HeightFieldShapeSettings extends ShapeSettings {
|
|
1302
|
+
constructor();
|
|
1303
|
+
get_mOffset(): Vec3;
|
|
1304
|
+
set_mOffset(mOffset: Vec3): void;
|
|
1305
|
+
mOffset: Vec3;
|
|
1306
|
+
get_mScale(): Vec3;
|
|
1307
|
+
set_mScale(mScale: Vec3): void;
|
|
1308
|
+
mScale: Vec3;
|
|
1309
|
+
get_mSampleCount(): number;
|
|
1310
|
+
set_mSampleCount(mSampleCount: number): void;
|
|
1311
|
+
mSampleCount: number;
|
|
1312
|
+
get_mMinHeightValue(): number;
|
|
1313
|
+
set_mMinHeightValue(mMinHeightValue: number): void;
|
|
1314
|
+
mMinHeightValue: number;
|
|
1315
|
+
get_mMaxHeightValue(): number;
|
|
1316
|
+
set_mMaxHeightValue(mMaxHeightValue: number): void;
|
|
1317
|
+
mMaxHeightValue: number;
|
|
1318
|
+
get_mMaterialsCapacity(): number;
|
|
1319
|
+
set_mMaterialsCapacity(mMaterialsCapacity: number): void;
|
|
1320
|
+
mMaterialsCapacity: number;
|
|
1321
|
+
get_mBlockSize(): number;
|
|
1322
|
+
set_mBlockSize(mBlockSize: number): void;
|
|
1323
|
+
mBlockSize: number;
|
|
1324
|
+
get_mBitsPerSample(): number;
|
|
1325
|
+
set_mBitsPerSample(mBitsPerSample: number): void;
|
|
1326
|
+
mBitsPerSample: number;
|
|
1327
|
+
get_mHeightSamples(): ArrayFloat;
|
|
1328
|
+
set_mHeightSamples(mHeightSamples: ArrayFloat): void;
|
|
1329
|
+
mHeightSamples: ArrayFloat;
|
|
1330
|
+
get_mMaterialIndices(): ArrayUint8;
|
|
1331
|
+
set_mMaterialIndices(mMaterialIndices: ArrayUint8): void;
|
|
1332
|
+
mMaterialIndices: ArrayUint8;
|
|
1333
|
+
get_mMaterials(): PhysicsMaterialList;
|
|
1334
|
+
set_mMaterials(mMaterials: PhysicsMaterialList): void;
|
|
1335
|
+
mMaterials: PhysicsMaterialList;
|
|
1336
|
+
get_mActiveEdgeCosThresholdAngle(): number;
|
|
1337
|
+
set_mActiveEdgeCosThresholdAngle(
|
|
1338
|
+
mActiveEdgeCosThresholdAngle: number
|
|
1339
|
+
): void;
|
|
1340
|
+
mActiveEdgeCosThresholdAngle: number;
|
|
1341
|
+
}
|
|
1342
|
+
class HeightFieldShape extends Shape {
|
|
1343
|
+
GetSampleCount(): number;
|
|
1344
|
+
GetBlockSize(): number;
|
|
1345
|
+
GetPosition(inX: number, inY: number): Vec3;
|
|
1346
|
+
IsNoCollision(inX: number, inY: number): boolean;
|
|
1347
|
+
GetMinHeightValue(): number;
|
|
1348
|
+
GetMaxHeightValue(): number;
|
|
1349
|
+
GetHeights(
|
|
1350
|
+
inX: number,
|
|
1351
|
+
inY: number,
|
|
1352
|
+
inSizeX: number,
|
|
1353
|
+
inSizeY: number,
|
|
1354
|
+
outHeights: FloatMemRef,
|
|
1355
|
+
inHeightsStride: number
|
|
1356
|
+
): void;
|
|
1357
|
+
SetHeights(
|
|
1358
|
+
inX: number,
|
|
1359
|
+
inY: number,
|
|
1360
|
+
inSizeX: number,
|
|
1361
|
+
inSizeY: number,
|
|
1362
|
+
inHeights: FloatMemRef,
|
|
1363
|
+
inHeightsStride: number,
|
|
1364
|
+
inAllocator: TempAllocator,
|
|
1365
|
+
inActiveEdgeCosThresholdAngle?: number
|
|
1366
|
+
): void;
|
|
1367
|
+
GetMaterials(
|
|
1368
|
+
inX: number,
|
|
1369
|
+
inY: number,
|
|
1370
|
+
inSizeX: number,
|
|
1371
|
+
inSizeY: number,
|
|
1372
|
+
outMaterials: Uint8MemRef,
|
|
1373
|
+
inMaterialsStride: number
|
|
1374
|
+
): void;
|
|
1375
|
+
SetMaterials(
|
|
1376
|
+
inX: number,
|
|
1377
|
+
inY: number,
|
|
1378
|
+
inSizeX: number,
|
|
1379
|
+
inSizeY: number,
|
|
1380
|
+
inMaterials: Uint8MemRef,
|
|
1381
|
+
inMaterialsStride: number,
|
|
1382
|
+
inMaterialList: PhysicsMaterialList,
|
|
1383
|
+
inAllocator: TempAllocator
|
|
1384
|
+
): boolean;
|
|
1385
|
+
}
|
|
1386
|
+
class PlaneShapeSettings extends ShapeSettings {
|
|
1387
|
+
constructor(
|
|
1388
|
+
inPlane: Plane,
|
|
1389
|
+
inMaterial?: PhysicsMaterial,
|
|
1390
|
+
inHalfExtent?: number
|
|
1391
|
+
);
|
|
1392
|
+
get_mPlane(): Plane;
|
|
1393
|
+
set_mPlane(mPlane: Plane): void;
|
|
1394
|
+
mPlane: Plane;
|
|
1395
|
+
get_mMaterial(): PhysicsMaterial;
|
|
1396
|
+
set_mMaterial(mMaterial: PhysicsMaterial): void;
|
|
1397
|
+
mMaterial: PhysicsMaterial;
|
|
1398
|
+
get_mHalfExtent(): number;
|
|
1399
|
+
set_mHalfExtent(mHalfExtent: number): void;
|
|
1400
|
+
mHalfExtent: number;
|
|
1401
|
+
}
|
|
1402
|
+
class PlaneShape extends Shape {
|
|
1403
|
+
constructor(
|
|
1404
|
+
inPlane: Plane,
|
|
1405
|
+
inMaterial?: PhysicsMaterial,
|
|
1406
|
+
inHalfExtent?: number
|
|
1407
|
+
);
|
|
1408
|
+
GetPlane(): Plane;
|
|
1409
|
+
GetHalfExtent(): number;
|
|
1410
|
+
}
|
|
1411
|
+
class EmptyShapeSettings extends ShapeSettings {
|
|
1412
|
+
constructor();
|
|
1413
|
+
get_mCenterOfMass(): Vec3;
|
|
1414
|
+
set_mCenterOfMass(mCenterOfMass: Vec3): void;
|
|
1415
|
+
mCenterOfMass: Vec3;
|
|
1416
|
+
}
|
|
1417
|
+
class EmptyShape extends Shape {
|
|
1418
|
+
constructor(inCenterOfMass?: Vec3);
|
|
1419
|
+
}
|
|
1420
|
+
class ConstraintSettings {
|
|
1421
|
+
GetRefCount(): number;
|
|
1422
|
+
AddRef(): void;
|
|
1423
|
+
Release(): void;
|
|
1424
|
+
get_mEnabled(): boolean;
|
|
1425
|
+
set_mEnabled(mEnabled: boolean): void;
|
|
1426
|
+
mEnabled: boolean;
|
|
1427
|
+
get_mNumVelocityStepsOverride(): number;
|
|
1428
|
+
set_mNumVelocityStepsOverride(mNumVelocityStepsOverride: number): void;
|
|
1429
|
+
mNumVelocityStepsOverride: number;
|
|
1430
|
+
get_mNumPositionStepsOverride(): number;
|
|
1431
|
+
set_mNumPositionStepsOverride(mNumPositionStepsOverride: number): void;
|
|
1432
|
+
mNumPositionStepsOverride: number;
|
|
1433
|
+
}
|
|
1434
|
+
class Constraint {
|
|
1435
|
+
GetRefCount(): number;
|
|
1436
|
+
AddRef(): void;
|
|
1437
|
+
Release(): void;
|
|
1438
|
+
GetType(): EConstraintType;
|
|
1439
|
+
GetSubType(): EConstraintSubType;
|
|
1440
|
+
GetConstraintPriority(): number;
|
|
1441
|
+
SetConstraintPriority(inPriority: number): void;
|
|
1442
|
+
SetNumVelocityStepsOverride(inN: number): void;
|
|
1443
|
+
GetNumVelocityStepsOverride(): number;
|
|
1444
|
+
SetNumPositionStepsOverride(inN: number): void;
|
|
1445
|
+
GetNumPositionStepsOverride(): number;
|
|
1446
|
+
SetEnabled(inEnabled: boolean): void;
|
|
1447
|
+
GetEnabled(): boolean;
|
|
1448
|
+
IsActive(): boolean;
|
|
1449
|
+
GetUserData(): number;
|
|
1450
|
+
SetUserData(inUserData: number): void;
|
|
1451
|
+
ResetWarmStart(): void;
|
|
1452
|
+
}
|
|
1453
|
+
class TwoBodyConstraintSettings extends ConstraintSettings {
|
|
1454
|
+
Create(inBody1: Body, inBody2: Body): Constraint;
|
|
1455
|
+
}
|
|
1456
|
+
class TwoBodyConstraint extends Constraint {
|
|
1457
|
+
GetBody1(): Body;
|
|
1458
|
+
GetBody2(): Body;
|
|
1459
|
+
GetConstraintToBody1Matrix(): Mat44;
|
|
1460
|
+
GetConstraintToBody2Matrix(): Mat44;
|
|
1461
|
+
}
|
|
1462
|
+
class FixedConstraintSettings extends TwoBodyConstraintSettings {
|
|
1463
|
+
constructor();
|
|
1464
|
+
get_mSpace(): EConstraintSpace;
|
|
1465
|
+
set_mSpace(mSpace: EConstraintSpace): void;
|
|
1466
|
+
mSpace: EConstraintSpace;
|
|
1467
|
+
get_mAutoDetectPoint(): boolean;
|
|
1468
|
+
set_mAutoDetectPoint(mAutoDetectPoint: boolean): void;
|
|
1469
|
+
mAutoDetectPoint: boolean;
|
|
1470
|
+
get_mPoint1(): RVec3;
|
|
1471
|
+
set_mPoint1(mPoint1: RVec3): void;
|
|
1472
|
+
mPoint1: RVec3;
|
|
1473
|
+
get_mAxisX1(): Vec3;
|
|
1474
|
+
set_mAxisX1(mAxisX1: Vec3): void;
|
|
1475
|
+
mAxisX1: Vec3;
|
|
1476
|
+
get_mAxisY1(): Vec3;
|
|
1477
|
+
set_mAxisY1(mAxisY1: Vec3): void;
|
|
1478
|
+
mAxisY1: Vec3;
|
|
1479
|
+
get_mPoint2(): RVec3;
|
|
1480
|
+
set_mPoint2(mPoint2: RVec3): void;
|
|
1481
|
+
mPoint2: RVec3;
|
|
1482
|
+
get_mAxisX2(): Vec3;
|
|
1483
|
+
set_mAxisX2(mAxisX2: Vec3): void;
|
|
1484
|
+
mAxisX2: Vec3;
|
|
1485
|
+
get_mAxisY2(): Vec3;
|
|
1486
|
+
set_mAxisY2(mAxisY2: Vec3): void;
|
|
1487
|
+
mAxisY2: Vec3;
|
|
1488
|
+
}
|
|
1489
|
+
class SpringSettings {
|
|
1490
|
+
constructor();
|
|
1491
|
+
HasStiffness(): boolean;
|
|
1492
|
+
get_mMode(): ESpringMode;
|
|
1493
|
+
set_mMode(mMode: ESpringMode): void;
|
|
1494
|
+
mMode: ESpringMode;
|
|
1495
|
+
get_mFrequency(): number;
|
|
1496
|
+
set_mFrequency(mFrequency: number): void;
|
|
1497
|
+
mFrequency: number;
|
|
1498
|
+
get_mStiffness(): number;
|
|
1499
|
+
set_mStiffness(mStiffness: number): void;
|
|
1500
|
+
mStiffness: number;
|
|
1501
|
+
get_mDamping(): number;
|
|
1502
|
+
set_mDamping(mDamping: number): void;
|
|
1503
|
+
mDamping: number;
|
|
1504
|
+
}
|
|
1505
|
+
class MotorSettings {
|
|
1506
|
+
constructor();
|
|
1507
|
+
get_mSpringSettings(): SpringSettings;
|
|
1508
|
+
set_mSpringSettings(mSpringSettings: SpringSettings): void;
|
|
1509
|
+
mSpringSettings: SpringSettings;
|
|
1510
|
+
get_mMinForceLimit(): number;
|
|
1511
|
+
set_mMinForceLimit(mMinForceLimit: number): void;
|
|
1512
|
+
mMinForceLimit: number;
|
|
1513
|
+
get_mMaxForceLimit(): number;
|
|
1514
|
+
set_mMaxForceLimit(mMaxForceLimit: number): void;
|
|
1515
|
+
mMaxForceLimit: number;
|
|
1516
|
+
get_mMinTorqueLimit(): number;
|
|
1517
|
+
set_mMinTorqueLimit(mMinTorqueLimit: number): void;
|
|
1518
|
+
mMinTorqueLimit: number;
|
|
1519
|
+
get_mMaxTorqueLimit(): number;
|
|
1520
|
+
set_mMaxTorqueLimit(mMaxTorqueLimit: number): void;
|
|
1521
|
+
mMaxTorqueLimit: number;
|
|
1522
|
+
}
|
|
1523
|
+
class DistanceConstraintSettings extends TwoBodyConstraintSettings {
|
|
1524
|
+
constructor();
|
|
1525
|
+
get_mSpace(): EConstraintSpace;
|
|
1526
|
+
set_mSpace(mSpace: EConstraintSpace): void;
|
|
1527
|
+
mSpace: EConstraintSpace;
|
|
1528
|
+
get_mPoint1(): RVec3;
|
|
1529
|
+
set_mPoint1(mPoint1: RVec3): void;
|
|
1530
|
+
mPoint1: RVec3;
|
|
1531
|
+
get_mPoint2(): RVec3;
|
|
1532
|
+
set_mPoint2(mPoint2: RVec3): void;
|
|
1533
|
+
mPoint2: RVec3;
|
|
1534
|
+
get_mMinDistance(): number;
|
|
1535
|
+
set_mMinDistance(mMinDistance: number): void;
|
|
1536
|
+
mMinDistance: number;
|
|
1537
|
+
get_mMaxDistance(): number;
|
|
1538
|
+
set_mMaxDistance(mMaxDistance: number): void;
|
|
1539
|
+
mMaxDistance: number;
|
|
1540
|
+
get_mLimitsSpringSettings(): SpringSettings;
|
|
1541
|
+
set_mLimitsSpringSettings(mLimitsSpringSettings: SpringSettings): void;
|
|
1542
|
+
mLimitsSpringSettings: SpringSettings;
|
|
1543
|
+
}
|
|
1544
|
+
class DistanceConstraint extends TwoBodyConstraint {
|
|
1545
|
+
SetDistance(inMinDistance: number, inMaxDistance: number): void;
|
|
1546
|
+
GetMinDistance(): number;
|
|
1547
|
+
GetMaxDistance(): number;
|
|
1548
|
+
GetLimitsSpringSettings(): SpringSettings;
|
|
1549
|
+
SetLimitsSpringSettings(inSettings: SpringSettings): void;
|
|
1550
|
+
GetTotalLambdaPosition(): number;
|
|
1551
|
+
}
|
|
1552
|
+
class PointConstraintSettings extends TwoBodyConstraintSettings {
|
|
1553
|
+
constructor();
|
|
1554
|
+
get_mSpace(): EConstraintSpace;
|
|
1555
|
+
set_mSpace(mSpace: EConstraintSpace): void;
|
|
1556
|
+
mSpace: EConstraintSpace;
|
|
1557
|
+
get_mPoint1(): RVec3;
|
|
1558
|
+
set_mPoint1(mPoint1: RVec3): void;
|
|
1559
|
+
mPoint1: RVec3;
|
|
1560
|
+
get_mPoint2(): RVec3;
|
|
1561
|
+
set_mPoint2(mPoint2: RVec3): void;
|
|
1562
|
+
mPoint2: RVec3;
|
|
1563
|
+
}
|
|
1564
|
+
class PointConstraint extends TwoBodyConstraint {
|
|
1565
|
+
GetLocalSpacePoint1(): Vec3;
|
|
1566
|
+
GetLocalSpacePoint2(): Vec3;
|
|
1567
|
+
GetTotalLambdaPosition(): Vec3;
|
|
1568
|
+
}
|
|
1569
|
+
class HingeConstraintSettings extends TwoBodyConstraintSettings {
|
|
1570
|
+
constructor();
|
|
1571
|
+
get_mSpace(): EConstraintSpace;
|
|
1572
|
+
set_mSpace(mSpace: EConstraintSpace): void;
|
|
1573
|
+
mSpace: EConstraintSpace;
|
|
1574
|
+
get_mPoint1(): RVec3;
|
|
1575
|
+
set_mPoint1(mPoint1: RVec3): void;
|
|
1576
|
+
mPoint1: RVec3;
|
|
1577
|
+
get_mHingeAxis1(): Vec3;
|
|
1578
|
+
set_mHingeAxis1(mHingeAxis1: Vec3): void;
|
|
1579
|
+
mHingeAxis1: Vec3;
|
|
1580
|
+
get_mNormalAxis1(): Vec3;
|
|
1581
|
+
set_mNormalAxis1(mNormalAxis1: Vec3): void;
|
|
1582
|
+
mNormalAxis1: Vec3;
|
|
1583
|
+
get_mPoint2(): RVec3;
|
|
1584
|
+
set_mPoint2(mPoint2: RVec3): void;
|
|
1585
|
+
mPoint2: RVec3;
|
|
1586
|
+
get_mHingeAxis2(): Vec3;
|
|
1587
|
+
set_mHingeAxis2(mHingeAxis2: Vec3): void;
|
|
1588
|
+
mHingeAxis2: Vec3;
|
|
1589
|
+
get_mNormalAxis2(): Vec3;
|
|
1590
|
+
set_mNormalAxis2(mNormalAxis2: Vec3): void;
|
|
1591
|
+
mNormalAxis2: Vec3;
|
|
1592
|
+
get_mLimitsMin(): number;
|
|
1593
|
+
set_mLimitsMin(mLimitsMin: number): void;
|
|
1594
|
+
mLimitsMin: number;
|
|
1595
|
+
get_mLimitsMax(): number;
|
|
1596
|
+
set_mLimitsMax(mLimitsMax: number): void;
|
|
1597
|
+
mLimitsMax: number;
|
|
1598
|
+
get_mLimitsSpringSettings(): SpringSettings;
|
|
1599
|
+
set_mLimitsSpringSettings(mLimitsSpringSettings: SpringSettings): void;
|
|
1600
|
+
mLimitsSpringSettings: SpringSettings;
|
|
1601
|
+
get_mMaxFrictionTorque(): number;
|
|
1602
|
+
set_mMaxFrictionTorque(mMaxFrictionTorque: number): void;
|
|
1603
|
+
mMaxFrictionTorque: number;
|
|
1604
|
+
get_mMotorSettings(): MotorSettings;
|
|
1605
|
+
set_mMotorSettings(mMotorSettings: MotorSettings): void;
|
|
1606
|
+
mMotorSettings: MotorSettings;
|
|
1607
|
+
}
|
|
1608
|
+
class HingeConstraint extends TwoBodyConstraint {
|
|
1609
|
+
GetLocalSpacePoint1(): Vec3;
|
|
1610
|
+
GetLocalSpacePoint2(): Vec3;
|
|
1611
|
+
GetLocalSpaceHingeAxis1(): Vec3;
|
|
1612
|
+
GetLocalSpaceHingeAxis2(): Vec3;
|
|
1613
|
+
GetLocalSpaceNormalAxis1(): Vec3;
|
|
1614
|
+
GetLocalSpaceNormalAxis2(): Vec3;
|
|
1615
|
+
GetCurrentAngle(): number;
|
|
1616
|
+
SetMaxFrictionTorque(inFrictionTorque: number): void;
|
|
1617
|
+
GetMaxFrictionTorque(): number;
|
|
1618
|
+
GetMotorSettings(): MotorSettings;
|
|
1619
|
+
SetMotorState(inState: EMotorState): void;
|
|
1620
|
+
GetMotorState(): EMotorState;
|
|
1621
|
+
SetTargetAngularVelocity(inAngularVelocity: number): void;
|
|
1622
|
+
GetTargetAngularVelocity(): number;
|
|
1623
|
+
SetTargetAngle(inAngle: number): void;
|
|
1624
|
+
GetTargetAngle(): number;
|
|
1625
|
+
SetLimits(inLimitsMin: number, inLimitsMax: number): void;
|
|
1626
|
+
GetLimitsMin(): number;
|
|
1627
|
+
GetLimitsMax(): number;
|
|
1628
|
+
HasLimits(): boolean;
|
|
1629
|
+
GetLimitsSpringSettings(): SpringSettings;
|
|
1630
|
+
SetLimitsSpringSettings(inLimitsSpringSettings: SpringSettings): void;
|
|
1631
|
+
GetTotalLambdaPosition(): Vec3;
|
|
1632
|
+
GetTotalLambdaRotation(): Vector2;
|
|
1633
|
+
GetTotalLambdaRotationLimits(): number;
|
|
1634
|
+
GetTotalLambdaMotor(): number;
|
|
1635
|
+
}
|
|
1636
|
+
class ConeConstraintSettings extends TwoBodyConstraintSettings {
|
|
1637
|
+
constructor();
|
|
1638
|
+
get_mSpace(): EConstraintSpace;
|
|
1639
|
+
set_mSpace(mSpace: EConstraintSpace): void;
|
|
1640
|
+
mSpace: EConstraintSpace;
|
|
1641
|
+
get_mPoint1(): RVec3;
|
|
1642
|
+
set_mPoint1(mPoint1: RVec3): void;
|
|
1643
|
+
mPoint1: RVec3;
|
|
1644
|
+
get_mTwistAxis1(): Vec3;
|
|
1645
|
+
set_mTwistAxis1(mTwistAxis1: Vec3): void;
|
|
1646
|
+
mTwistAxis1: Vec3;
|
|
1647
|
+
get_mPoint2(): RVec3;
|
|
1648
|
+
set_mPoint2(mPoint2: RVec3): void;
|
|
1649
|
+
mPoint2: RVec3;
|
|
1650
|
+
get_mTwistAxis2(): Vec3;
|
|
1651
|
+
set_mTwistAxis2(mTwistAxis2: Vec3): void;
|
|
1652
|
+
mTwistAxis2: Vec3;
|
|
1653
|
+
get_mHalfConeAngle(): number;
|
|
1654
|
+
set_mHalfConeAngle(mHalfConeAngle: number): void;
|
|
1655
|
+
mHalfConeAngle: number;
|
|
1656
|
+
}
|
|
1657
|
+
class ConeConstraint extends TwoBodyConstraint {
|
|
1658
|
+
SetHalfConeAngle(inHalfConeAngle: number): void;
|
|
1659
|
+
GetCosHalfConeAngle(): number;
|
|
1660
|
+
GetTotalLambdaPosition(): Vec3;
|
|
1661
|
+
GetTotalLambdaRotation(): number;
|
|
1662
|
+
}
|
|
1663
|
+
class SliderConstraintSettings extends TwoBodyConstraintSettings {
|
|
1664
|
+
constructor();
|
|
1665
|
+
get_mSpace(): EConstraintSpace;
|
|
1666
|
+
set_mSpace(mSpace: EConstraintSpace): void;
|
|
1667
|
+
mSpace: EConstraintSpace;
|
|
1668
|
+
get_mAutoDetectPoint(): boolean;
|
|
1669
|
+
set_mAutoDetectPoint(mAutoDetectPoint: boolean): void;
|
|
1670
|
+
mAutoDetectPoint: boolean;
|
|
1671
|
+
get_mPoint1(): RVec3;
|
|
1672
|
+
set_mPoint1(mPoint1: RVec3): void;
|
|
1673
|
+
mPoint1: RVec3;
|
|
1674
|
+
get_mSliderAxis1(): Vec3;
|
|
1675
|
+
set_mSliderAxis1(mSliderAxis1: Vec3): void;
|
|
1676
|
+
mSliderAxis1: Vec3;
|
|
1677
|
+
get_mNormalAxis1(): Vec3;
|
|
1678
|
+
set_mNormalAxis1(mNormalAxis1: Vec3): void;
|
|
1679
|
+
mNormalAxis1: Vec3;
|
|
1680
|
+
get_mPoint2(): RVec3;
|
|
1681
|
+
set_mPoint2(mPoint2: RVec3): void;
|
|
1682
|
+
mPoint2: RVec3;
|
|
1683
|
+
get_mSliderAxis2(): Vec3;
|
|
1684
|
+
set_mSliderAxis2(mSliderAxis2: Vec3): void;
|
|
1685
|
+
mSliderAxis2: Vec3;
|
|
1686
|
+
get_mNormalAxis2(): Vec3;
|
|
1687
|
+
set_mNormalAxis2(mNormalAxis2: Vec3): void;
|
|
1688
|
+
mNormalAxis2: Vec3;
|
|
1689
|
+
get_mLimitsMin(): number;
|
|
1690
|
+
set_mLimitsMin(mLimitsMin: number): void;
|
|
1691
|
+
mLimitsMin: number;
|
|
1692
|
+
get_mLimitsMax(): number;
|
|
1693
|
+
set_mLimitsMax(mLimitsMax: number): void;
|
|
1694
|
+
mLimitsMax: number;
|
|
1695
|
+
get_mLimitsSpringSettings(): SpringSettings;
|
|
1696
|
+
set_mLimitsSpringSettings(mLimitsSpringSettings: SpringSettings): void;
|
|
1697
|
+
mLimitsSpringSettings: SpringSettings;
|
|
1698
|
+
get_mMaxFrictionForce(): number;
|
|
1699
|
+
set_mMaxFrictionForce(mMaxFrictionForce: number): void;
|
|
1700
|
+
mMaxFrictionForce: number;
|
|
1701
|
+
get_mMotorSettings(): MotorSettings;
|
|
1702
|
+
set_mMotorSettings(mMotorSettings: MotorSettings): void;
|
|
1703
|
+
mMotorSettings: MotorSettings;
|
|
1704
|
+
}
|
|
1705
|
+
class SliderConstraint extends TwoBodyConstraint {
|
|
1706
|
+
GetCurrentPosition(): number;
|
|
1707
|
+
SetMaxFrictionForce(inFrictionForce: number): void;
|
|
1708
|
+
GetMaxFrictionForce(): number;
|
|
1709
|
+
GetMotorSettings(): MotorSettings;
|
|
1710
|
+
SetMotorState(inState: EMotorState): void;
|
|
1711
|
+
GetMotorState(): EMotorState;
|
|
1712
|
+
SetTargetVelocity(inVelocity: number): void;
|
|
1713
|
+
GetTargetVelocity(): number;
|
|
1714
|
+
SetTargetPosition(inPosition: number): void;
|
|
1715
|
+
GetTargetPosition(): number;
|
|
1716
|
+
SetLimits(inLimitsMin: number, inLimitsMax: number): void;
|
|
1717
|
+
GetLimitsMin(): number;
|
|
1718
|
+
GetLimitsMax(): number;
|
|
1719
|
+
HasLimits(): boolean;
|
|
1720
|
+
GetLimitsSpringSettings(): SpringSettings;
|
|
1721
|
+
SetLimitsSpringSettings(inLimitsSpringSettings: SpringSettings): void;
|
|
1722
|
+
GetTotalLambdaPosition(): Vector2;
|
|
1723
|
+
GetTotalLambdaPositionLimits(): number;
|
|
1724
|
+
GetTotalLambdaRotation(): Vec3;
|
|
1725
|
+
GetTotalLambdaMotor(): number;
|
|
1726
|
+
}
|
|
1727
|
+
class SwingTwistConstraintSettings extends TwoBodyConstraintSettings {
|
|
1728
|
+
constructor();
|
|
1729
|
+
get_mSpace(): EConstraintSpace;
|
|
1730
|
+
set_mSpace(mSpace: EConstraintSpace): void;
|
|
1731
|
+
mSpace: EConstraintSpace;
|
|
1732
|
+
get_mPosition1(): RVec3;
|
|
1733
|
+
set_mPosition1(mPosition1: RVec3): void;
|
|
1734
|
+
mPosition1: RVec3;
|
|
1735
|
+
get_mTwistAxis1(): Vec3;
|
|
1736
|
+
set_mTwistAxis1(mTwistAxis1: Vec3): void;
|
|
1737
|
+
mTwistAxis1: Vec3;
|
|
1738
|
+
get_mPlaneAxis1(): Vec3;
|
|
1739
|
+
set_mPlaneAxis1(mPlaneAxis1: Vec3): void;
|
|
1740
|
+
mPlaneAxis1: Vec3;
|
|
1741
|
+
get_mPosition2(): RVec3;
|
|
1742
|
+
set_mPosition2(mPosition2: RVec3): void;
|
|
1743
|
+
mPosition2: RVec3;
|
|
1744
|
+
get_mTwistAxis2(): Vec3;
|
|
1745
|
+
set_mTwistAxis2(mTwistAxis2: Vec3): void;
|
|
1746
|
+
mTwistAxis2: Vec3;
|
|
1747
|
+
get_mPlaneAxis2(): Vec3;
|
|
1748
|
+
set_mPlaneAxis2(mPlaneAxis2: Vec3): void;
|
|
1749
|
+
mPlaneAxis2: Vec3;
|
|
1750
|
+
get_mSwingType(): ESwingType;
|
|
1751
|
+
set_mSwingType(mSwingType: ESwingType): void;
|
|
1752
|
+
mSwingType: ESwingType;
|
|
1753
|
+
get_mNormalHalfConeAngle(): number;
|
|
1754
|
+
set_mNormalHalfConeAngle(mNormalHalfConeAngle: number): void;
|
|
1755
|
+
mNormalHalfConeAngle: number;
|
|
1756
|
+
get_mPlaneHalfConeAngle(): number;
|
|
1757
|
+
set_mPlaneHalfConeAngle(mPlaneHalfConeAngle: number): void;
|
|
1758
|
+
mPlaneHalfConeAngle: number;
|
|
1759
|
+
get_mTwistMinAngle(): number;
|
|
1760
|
+
set_mTwistMinAngle(mTwistMinAngle: number): void;
|
|
1761
|
+
mTwistMinAngle: number;
|
|
1762
|
+
get_mTwistMaxAngle(): number;
|
|
1763
|
+
set_mTwistMaxAngle(mTwistMaxAngle: number): void;
|
|
1764
|
+
mTwistMaxAngle: number;
|
|
1765
|
+
get_mMaxFrictionTorque(): number;
|
|
1766
|
+
set_mMaxFrictionTorque(mMaxFrictionTorque: number): void;
|
|
1767
|
+
mMaxFrictionTorque: number;
|
|
1768
|
+
get_mSwingMotorSettings(): MotorSettings;
|
|
1769
|
+
set_mSwingMotorSettings(mSwingMotorSettings: MotorSettings): void;
|
|
1770
|
+
mSwingMotorSettings: MotorSettings;
|
|
1771
|
+
get_mTwistMotorSettings(): MotorSettings;
|
|
1772
|
+
set_mTwistMotorSettings(mTwistMotorSettings: MotorSettings): void;
|
|
1773
|
+
mTwistMotorSettings: MotorSettings;
|
|
1774
|
+
}
|
|
1775
|
+
class SwingTwistConstraint extends TwoBodyConstraint {
|
|
1776
|
+
GetLocalSpacePosition1(): Vec3;
|
|
1777
|
+
GetLocalSpacePosition2(): Vec3;
|
|
1778
|
+
GetConstraintToBody1(): Quat;
|
|
1779
|
+
GetConstraintToBody2(): Quat;
|
|
1780
|
+
GetNormalHalfConeAngle(): number;
|
|
1781
|
+
SetNormalHalfConeAngle(inAngle: number): void;
|
|
1782
|
+
GetPlaneHalfConeAngle(): number;
|
|
1783
|
+
SetPlaneHalfConeAngle(inAngle: number): void;
|
|
1784
|
+
GetTwistMinAngle(): number;
|
|
1785
|
+
SetTwistMinAngle(inAngle: number): void;
|
|
1786
|
+
GetTwistMaxAngle(): number;
|
|
1787
|
+
SetTwistMaxAngle(inAngle: number): void;
|
|
1788
|
+
GetSwingMotorSettings(): MotorSettings;
|
|
1789
|
+
GetTwistMotorSettings(): MotorSettings;
|
|
1790
|
+
SetMaxFrictionTorque(inFrictionTorque: number): void;
|
|
1791
|
+
GetMaxFrictionTorque(): number;
|
|
1792
|
+
SetSwingMotorState(inState: EMotorState): void;
|
|
1793
|
+
GetSwingMotorState(): EMotorState;
|
|
1794
|
+
SetTwistMotorState(inState: EMotorState): void;
|
|
1795
|
+
GetTwistMotorState(): EMotorState;
|
|
1796
|
+
SetTargetAngularVelocityCS(inAngularVelocity: Vec3): void;
|
|
1797
|
+
GetTargetAngularVelocityCS(): Vec3;
|
|
1798
|
+
SetTargetOrientationCS(inOrientation: Quat): void;
|
|
1799
|
+
GetTargetOrientationCS(): Quat;
|
|
1800
|
+
SetTargetOrientationBS(inOrientation: Quat): void;
|
|
1801
|
+
GetRotationInConstraintSpace(): Quat;
|
|
1802
|
+
GetTotalLambdaPosition(): Vec3;
|
|
1803
|
+
GetTotalLambdaTwist(): number;
|
|
1804
|
+
GetTotalLambdaSwingY(): number;
|
|
1805
|
+
GetTotalLambdaSwingZ(): number;
|
|
1806
|
+
GetTotalLambdaMotor(): Vec3;
|
|
1807
|
+
}
|
|
1808
|
+
class SixDOFConstraintSettings extends TwoBodyConstraintSettings {
|
|
1809
|
+
constructor();
|
|
1810
|
+
MakeFreeAxis(inAxis: SixDOFConstraintSettings_EAxis): void;
|
|
1811
|
+
IsFreeAxis(inAxis: SixDOFConstraintSettings_EAxis): boolean;
|
|
1812
|
+
MakeFixedAxis(inAxis: SixDOFConstraintSettings_EAxis): void;
|
|
1813
|
+
IsFixedAxis(inAxis: SixDOFConstraintSettings_EAxis): boolean;
|
|
1814
|
+
SetLimitedAxis(
|
|
1815
|
+
inAxis: SixDOFConstraintSettings_EAxis,
|
|
1816
|
+
inMin: number,
|
|
1817
|
+
inMax: number
|
|
1818
|
+
): void;
|
|
1819
|
+
get_mSpace(): EConstraintSpace;
|
|
1820
|
+
set_mSpace(mSpace: EConstraintSpace): void;
|
|
1821
|
+
mSpace: EConstraintSpace;
|
|
1822
|
+
get_mPosition1(): RVec3;
|
|
1823
|
+
set_mPosition1(mPosition1: RVec3): void;
|
|
1824
|
+
mPosition1: RVec3;
|
|
1825
|
+
get_mAxisX1(): Vec3;
|
|
1826
|
+
set_mAxisX1(mAxisX1: Vec3): void;
|
|
1827
|
+
mAxisX1: Vec3;
|
|
1828
|
+
get_mAxisY1(): Vec3;
|
|
1829
|
+
set_mAxisY1(mAxisY1: Vec3): void;
|
|
1830
|
+
mAxisY1: Vec3;
|
|
1831
|
+
get_mPosition2(): RVec3;
|
|
1832
|
+
set_mPosition2(mPosition2: RVec3): void;
|
|
1833
|
+
mPosition2: RVec3;
|
|
1834
|
+
get_mAxisX2(): Vec3;
|
|
1835
|
+
set_mAxisX2(mAxisX2: Vec3): void;
|
|
1836
|
+
mAxisX2: Vec3;
|
|
1837
|
+
get_mAxisY2(): Vec3;
|
|
1838
|
+
set_mAxisY2(mAxisY2: Vec3): void;
|
|
1839
|
+
mAxisY2: Vec3;
|
|
1840
|
+
get_mMaxFriction(index: number): number;
|
|
1841
|
+
set_mMaxFriction(index: number, mMaxFriction: number): void;
|
|
1842
|
+
mMaxFriction: number;
|
|
1843
|
+
get_mSwingType(): ESwingType;
|
|
1844
|
+
set_mSwingType(mSwingType: ESwingType): void;
|
|
1845
|
+
mSwingType: ESwingType;
|
|
1846
|
+
get_mLimitMin(index: number): number;
|
|
1847
|
+
set_mLimitMin(index: number, mLimitMin: number): void;
|
|
1848
|
+
mLimitMin: number;
|
|
1849
|
+
get_mLimitMax(index: number): number;
|
|
1850
|
+
set_mLimitMax(index: number, mLimitMax: number): void;
|
|
1851
|
+
mLimitMax: number;
|
|
1852
|
+
get_mLimitsSpringSettings(index: number): SpringSettings;
|
|
1853
|
+
set_mLimitsSpringSettings(
|
|
1854
|
+
index: number,
|
|
1855
|
+
mLimitsSpringSettings: SpringSettings
|
|
1856
|
+
): void;
|
|
1857
|
+
mLimitsSpringSettings: SpringSettings;
|
|
1858
|
+
get_mMotorSettings(index: number): MotorSettings;
|
|
1859
|
+
set_mMotorSettings(index: number, mMotorSettings: MotorSettings): void;
|
|
1860
|
+
mMotorSettings: MotorSettings;
|
|
1861
|
+
}
|
|
1862
|
+
class SixDOFConstraint extends TwoBodyConstraint {
|
|
1863
|
+
SetTranslationLimits(inLimitMin: Vec3, inLimitMax: Vec3): void;
|
|
1864
|
+
SetRotationLimits(inLimitMin: Vec3, inLimitMax: Vec3): void;
|
|
1865
|
+
GetLimitsMin(inAxis: SixDOFConstraintSettings_EAxis): number;
|
|
1866
|
+
GetLimitsMax(inAxis: SixDOFConstraintSettings_EAxis): number;
|
|
1867
|
+
GetTranslationLimitsMin(): Vec3;
|
|
1868
|
+
GetTranslationLimitsMax(): Vec3;
|
|
1869
|
+
GetRotationLimitsMin(): Vec3;
|
|
1870
|
+
GetRotationLimitsMax(): Vec3;
|
|
1871
|
+
IsFixedAxis(inAxis: SixDOFConstraintSettings_EAxis): boolean;
|
|
1872
|
+
IsFreeAxis(inAxis: SixDOFConstraintSettings_EAxis): boolean;
|
|
1873
|
+
GetLimitsSpringSettings(
|
|
1874
|
+
inAxis: SixDOFConstraintSettings_EAxis
|
|
1875
|
+
): SpringSettings;
|
|
1876
|
+
SetLimitsSpringSettings(
|
|
1877
|
+
inAxis: SixDOFConstraintSettings_EAxis,
|
|
1878
|
+
inLimitsSpringSettings: SpringSettings
|
|
1879
|
+
): void;
|
|
1880
|
+
SetMaxFriction(
|
|
1881
|
+
inAxis: SixDOFConstraintSettings_EAxis,
|
|
1882
|
+
inFriction: number
|
|
1883
|
+
): void;
|
|
1884
|
+
GetMaxFriction(inAxis: SixDOFConstraintSettings_EAxis): number;
|
|
1885
|
+
GetRotationInConstraintSpace(): Quat;
|
|
1886
|
+
GetMotorSettings(inAxis: SixDOFConstraintSettings_EAxis): MotorSettings;
|
|
1887
|
+
SetMotorState(
|
|
1888
|
+
inAxis: SixDOFConstraintSettings_EAxis,
|
|
1889
|
+
inState: EMotorState
|
|
1890
|
+
): void;
|
|
1891
|
+
GetMotorState(inAxis: SixDOFConstraintSettings_EAxis): EMotorState;
|
|
1892
|
+
GetTargetVelocityCS(): Vec3;
|
|
1893
|
+
SetTargetVelocityCS(inVelocity: Vec3): void;
|
|
1894
|
+
SetTargetAngularVelocityCS(inAngularVelocity: Vec3): void;
|
|
1895
|
+
GetTargetAngularVelocityCS(): Vec3;
|
|
1896
|
+
GetTargetPositionCS(): Vec3;
|
|
1897
|
+
SetTargetPositionCS(inPosition: Vec3): void;
|
|
1898
|
+
SetTargetOrientationCS(inOrientation: Quat): void;
|
|
1899
|
+
GetTargetOrientationCS(): Quat;
|
|
1900
|
+
SetTargetOrientationBS(inOrientation: Quat): void;
|
|
1901
|
+
GetTotalLambdaPosition(): Vec3;
|
|
1902
|
+
GetTotalLambdaRotation(): Vec3;
|
|
1903
|
+
GetTotalLambdaMotorTranslation(): Vec3;
|
|
1904
|
+
GetTotalLambdaMotorRotation(): Vec3;
|
|
1905
|
+
}
|
|
1906
|
+
class PathConstraintSettings extends TwoBodyConstraintSettings {
|
|
1907
|
+
constructor();
|
|
1908
|
+
get_mPath(): PathConstraintPath;
|
|
1909
|
+
set_mPath(mPath: PathConstraintPath): void;
|
|
1910
|
+
mPath: PathConstraintPath;
|
|
1911
|
+
get_mPathPosition(): Vec3;
|
|
1912
|
+
set_mPathPosition(mPathPosition: Vec3): void;
|
|
1913
|
+
mPathPosition: Vec3;
|
|
1914
|
+
get_mPathRotation(): Quat;
|
|
1915
|
+
set_mPathRotation(mPathRotation: Quat): void;
|
|
1916
|
+
mPathRotation: Quat;
|
|
1917
|
+
get_mPathFraction(): number;
|
|
1918
|
+
set_mPathFraction(mPathFraction: number): void;
|
|
1919
|
+
mPathFraction: number;
|
|
1920
|
+
get_mMaxFrictionForce(): number;
|
|
1921
|
+
set_mMaxFrictionForce(mMaxFrictionForce: number): void;
|
|
1922
|
+
mMaxFrictionForce: number;
|
|
1923
|
+
get_mRotationConstraintType(): EPathRotationConstraintType;
|
|
1924
|
+
set_mRotationConstraintType(
|
|
1925
|
+
mRotationConstraintType: EPathRotationConstraintType
|
|
1926
|
+
): void;
|
|
1927
|
+
mRotationConstraintType: EPathRotationConstraintType;
|
|
1928
|
+
get_mPositionMotorSettings(): MotorSettings;
|
|
1929
|
+
set_mPositionMotorSettings(mPositionMotorSettings: MotorSettings): void;
|
|
1930
|
+
mPositionMotorSettings: MotorSettings;
|
|
1931
|
+
}
|
|
1932
|
+
class PathConstraintPath {
|
|
1933
|
+
IsLooping(): boolean;
|
|
1934
|
+
SetIsLooping(inIsLooping: boolean): void;
|
|
1935
|
+
GetRefCount(): number;
|
|
1936
|
+
AddRef(): void;
|
|
1937
|
+
Release(): void;
|
|
1938
|
+
}
|
|
1939
|
+
class PathConstraintPathEm extends PathConstraintPath {}
|
|
1940
|
+
class PathConstraintPathJS extends PathConstraintPathEm {
|
|
1941
|
+
constructor();
|
|
1942
|
+
GetPathMaxFraction(): number;
|
|
1943
|
+
GetClosestPoint(inPosition: number, inFractionHint: number): number;
|
|
1944
|
+
GetPointOnPath(
|
|
1945
|
+
inFraction: number,
|
|
1946
|
+
outPathPosition: number,
|
|
1947
|
+
outPathTangent: number,
|
|
1948
|
+
outPathNormal: number,
|
|
1949
|
+
outPathBinormal: number
|
|
1950
|
+
): void;
|
|
1951
|
+
}
|
|
1952
|
+
class PathConstraint extends TwoBodyConstraint {
|
|
1953
|
+
SetPath(inPath: PathConstraintPath, inPathFraction: number): void;
|
|
1954
|
+
GetPath(): PathConstraintPath;
|
|
1955
|
+
GetPathFraction(): number;
|
|
1956
|
+
SetMaxFrictionForce(inFrictionForce: number): void;
|
|
1957
|
+
GetMaxFrictionForce(): number;
|
|
1958
|
+
GetPositionMotorSettings(): MotorSettings;
|
|
1959
|
+
SetPositionMotorState(inState: EMotorState): void;
|
|
1960
|
+
GetPositionMotorState(): EMotorState;
|
|
1961
|
+
SetTargetVelocity(inVelocity: number): void;
|
|
1962
|
+
GetTargetVelocity(): number;
|
|
1963
|
+
SetTargetPathFraction(inFraction: number): void;
|
|
1964
|
+
GetTargetPathFraction(): number;
|
|
1965
|
+
}
|
|
1966
|
+
class PulleyConstraintSettings extends TwoBodyConstraintSettings {
|
|
1967
|
+
constructor();
|
|
1968
|
+
get_mSpace(): EConstraintSpace;
|
|
1969
|
+
set_mSpace(mSpace: EConstraintSpace): void;
|
|
1970
|
+
mSpace: EConstraintSpace;
|
|
1971
|
+
get_mBodyPoint1(): RVec3;
|
|
1972
|
+
set_mBodyPoint1(mBodyPoint1: RVec3): void;
|
|
1973
|
+
mBodyPoint1: RVec3;
|
|
1974
|
+
get_mFixedPoint1(): RVec3;
|
|
1975
|
+
set_mFixedPoint1(mFixedPoint1: RVec3): void;
|
|
1976
|
+
mFixedPoint1: RVec3;
|
|
1977
|
+
get_mBodyPoint2(): RVec3;
|
|
1978
|
+
set_mBodyPoint2(mBodyPoint2: RVec3): void;
|
|
1979
|
+
mBodyPoint2: RVec3;
|
|
1980
|
+
get_mFixedPoint2(): RVec3;
|
|
1981
|
+
set_mFixedPoint2(mFixedPoint2: RVec3): void;
|
|
1982
|
+
mFixedPoint2: RVec3;
|
|
1983
|
+
get_mRatio(): number;
|
|
1984
|
+
set_mRatio(mRatio: number): void;
|
|
1985
|
+
mRatio: number;
|
|
1986
|
+
get_mMinLength(): number;
|
|
1987
|
+
set_mMinLength(mMinLength: number): void;
|
|
1988
|
+
mMinLength: number;
|
|
1989
|
+
get_mMaxLength(): number;
|
|
1990
|
+
set_mMaxLength(mMaxLength: number): void;
|
|
1991
|
+
mMaxLength: number;
|
|
1992
|
+
}
|
|
1993
|
+
class PulleyConstraint extends TwoBodyConstraint {
|
|
1994
|
+
SetLength(inMinLength: number, inMaxLength: number): void;
|
|
1995
|
+
GetMinLength(): number;
|
|
1996
|
+
GetMaxLength(): number;
|
|
1997
|
+
GetCurrentLength(): number;
|
|
1998
|
+
}
|
|
1999
|
+
class GearConstraintSettings extends TwoBodyConstraintSettings {
|
|
2000
|
+
constructor();
|
|
2001
|
+
SetRatio(inNumTeethGear1: number, inNumTeethGear2: number): void;
|
|
2002
|
+
get_mSpace(): EConstraintSpace;
|
|
2003
|
+
set_mSpace(mSpace: EConstraintSpace): void;
|
|
2004
|
+
mSpace: EConstraintSpace;
|
|
2005
|
+
get_mHingeAxis1(): Vec3;
|
|
2006
|
+
set_mHingeAxis1(mHingeAxis1: Vec3): void;
|
|
2007
|
+
mHingeAxis1: Vec3;
|
|
2008
|
+
get_mHingeAxis2(): Vec3;
|
|
2009
|
+
set_mHingeAxis2(mHingeAxis2: Vec3): void;
|
|
2010
|
+
mHingeAxis2: Vec3;
|
|
2011
|
+
get_mRatio(): number;
|
|
2012
|
+
set_mRatio(mRatio: number): void;
|
|
2013
|
+
mRatio: number;
|
|
2014
|
+
}
|
|
2015
|
+
class GearConstraint extends TwoBodyConstraint {
|
|
2016
|
+
SetConstraints(inGear1: Constraint, inGear2: Constraint): void;
|
|
2017
|
+
GetTotalLambda(): number;
|
|
2018
|
+
}
|
|
2019
|
+
class RackAndPinionConstraintSettings extends TwoBodyConstraintSettings {
|
|
2020
|
+
constructor();
|
|
2021
|
+
SetRatio(
|
|
2022
|
+
inNumTeethRack: number,
|
|
2023
|
+
inRackLength: number,
|
|
2024
|
+
inNumTeethPinion: number
|
|
2025
|
+
): void;
|
|
2026
|
+
get_mSpace(): EConstraintSpace;
|
|
2027
|
+
set_mSpace(mSpace: EConstraintSpace): void;
|
|
2028
|
+
mSpace: EConstraintSpace;
|
|
2029
|
+
get_mHingeAxis(): Vec3;
|
|
2030
|
+
set_mHingeAxis(mHingeAxis: Vec3): void;
|
|
2031
|
+
mHingeAxis: Vec3;
|
|
2032
|
+
get_mSliderAxis(): Vec3;
|
|
2033
|
+
set_mSliderAxis(mSliderAxis: Vec3): void;
|
|
2034
|
+
mSliderAxis: Vec3;
|
|
2035
|
+
get_mRatio(): number;
|
|
2036
|
+
set_mRatio(mRatio: number): void;
|
|
2037
|
+
mRatio: number;
|
|
2038
|
+
}
|
|
2039
|
+
class RackAndPinionConstraint extends TwoBodyConstraint {
|
|
2040
|
+
SetConstraints(inPinion: Constraint, inRack: Constraint): void;
|
|
2041
|
+
GetTotalLambda(): number;
|
|
2042
|
+
}
|
|
2043
|
+
class BodyID {
|
|
2044
|
+
constructor();
|
|
2045
|
+
constructor(inIndexAndSequenceNumber: number);
|
|
2046
|
+
GetIndex(): number;
|
|
2047
|
+
GetIndexAndSequenceNumber(): number;
|
|
2048
|
+
}
|
|
2049
|
+
class SubShapeID {
|
|
2050
|
+
constructor();
|
|
2051
|
+
GetValue(): number;
|
|
2052
|
+
SetValue(inValue: number): void;
|
|
2053
|
+
}
|
|
2054
|
+
class MotionProperties {
|
|
2055
|
+
GetMotionQuality(): EMotionQuality;
|
|
2056
|
+
GetAllowedDOFs(): EAllowedDOFs;
|
|
2057
|
+
GetAllowSleeping(): boolean;
|
|
2058
|
+
GetLinearVelocity(): Vec3;
|
|
2059
|
+
SetLinearVelocity(inVelocity: Vec3): void;
|
|
2060
|
+
SetLinearVelocityClamped(inVelocity: Vec3): void;
|
|
2061
|
+
GetAngularVelocity(): Vec3;
|
|
2062
|
+
SetAngularVelocity(inVelocity: Vec3): void;
|
|
2063
|
+
SetAngularVelocityClamped(inVelocity: Vec3): void;
|
|
2064
|
+
MoveKinematic(
|
|
2065
|
+
inPosition: Vec3,
|
|
2066
|
+
inRotation: Quat,
|
|
2067
|
+
inDeltaTime: number
|
|
2068
|
+
): void;
|
|
2069
|
+
GetMaxLinearVelocity(): number;
|
|
2070
|
+
SetMaxLinearVelocity(inVelocity: number): void;
|
|
2071
|
+
GetMaxAngularVelocity(): number;
|
|
2072
|
+
SetMaxAngularVelocity(inVelocity: number): void;
|
|
2073
|
+
ClampLinearVelocity(): void;
|
|
2074
|
+
ClampAngularVelocity(): void;
|
|
2075
|
+
GetLinearDamping(): number;
|
|
2076
|
+
SetLinearDamping(inDamping: number): void;
|
|
2077
|
+
GetAngularDamping(): number;
|
|
2078
|
+
SetAngularDamping(inDamping: number): void;
|
|
2079
|
+
GetGravityFactor(): number;
|
|
2080
|
+
SetGravityFactor(inFactor: number): void;
|
|
2081
|
+
SetMassProperties(
|
|
2082
|
+
inAllowedDOFs: EAllowedDOFs,
|
|
2083
|
+
inMassProperties: MassProperties
|
|
2084
|
+
): void;
|
|
2085
|
+
GetInverseMass(): number;
|
|
2086
|
+
GetInverseMassUnchecked(): number;
|
|
2087
|
+
SetInverseMass(inInvM: number): void;
|
|
2088
|
+
GetInverseInertiaDiagonal(): Vec3;
|
|
2089
|
+
GetInertiaRotation(): Quat;
|
|
2090
|
+
SetInverseInertia(inInvI: Vec3, inRotation: Quat): void;
|
|
2091
|
+
GetLocalSpaceInverseInertia(): Mat44;
|
|
2092
|
+
GetInverseInertiaForRotation(inRotation: Mat44): Mat44;
|
|
2093
|
+
MultiplyWorldSpaceInverseInertiaByVector(inRotation: Quat, inV: Vec3): Vec3;
|
|
2094
|
+
GetPointVelocityCOM(inPointRelativeToCOM: Vec3): Vec3;
|
|
2095
|
+
GetAccumulatedForce(): Vec3;
|
|
2096
|
+
GetAccumulatedTorque(): Vec3;
|
|
2097
|
+
ResetForce(): void;
|
|
2098
|
+
ResetTorque(): void;
|
|
2099
|
+
ResetMotion(): void;
|
|
2100
|
+
LockTranslation(inV: Vec3): Vec3;
|
|
2101
|
+
LockAngular(inV: Vec3): Vec3;
|
|
2102
|
+
SetNumVelocityStepsOverride(inN: number): void;
|
|
2103
|
+
GetNumVelocityStepsOverride(): number;
|
|
2104
|
+
SetNumPositionStepsOverride(inN: number): void;
|
|
2105
|
+
GetNumPositionStepsOverride(): number;
|
|
2106
|
+
}
|
|
2107
|
+
class GroupFilter {
|
|
2108
|
+
GetRefCount(): number;
|
|
2109
|
+
AddRef(): void;
|
|
2110
|
+
Release(): void;
|
|
2111
|
+
}
|
|
2112
|
+
class GroupFilterJS extends GroupFilter {
|
|
2113
|
+
constructor();
|
|
2114
|
+
CanCollide(inGroup1: number, inGroup2: number): boolean;
|
|
2115
|
+
}
|
|
2116
|
+
class GroupFilterTable extends GroupFilter {
|
|
2117
|
+
constructor(inNumGroups: number);
|
|
2118
|
+
DisableCollision(inSubGroup1: number, inSubGroup2: number): void;
|
|
2119
|
+
EnableCollision(inSubGroup1: number, inSubGroup2: number): void;
|
|
2120
|
+
IsCollisionEnabled(inSubGroup1: number, inSubGroup2: number): boolean;
|
|
2121
|
+
}
|
|
2122
|
+
class CollisionGroup {
|
|
2123
|
+
constructor();
|
|
2124
|
+
constructor(inFilter: GroupFilter, inGroupID: number, inSubGroupID: number);
|
|
2125
|
+
SetGroupFilter(inFilter: GroupFilter): void;
|
|
2126
|
+
GetGroupFilter(): GroupFilter;
|
|
2127
|
+
SetGroupID(inGroupID: number): void;
|
|
2128
|
+
GetGroupID(): number;
|
|
2129
|
+
SetSubGroupID(inSubGroupID: number): void;
|
|
2130
|
+
GetSubGroupID(): number;
|
|
2131
|
+
}
|
|
2132
|
+
class Body {
|
|
2133
|
+
GetID(): BodyID;
|
|
2134
|
+
IsActive(): boolean;
|
|
2135
|
+
IsRigidBody(): boolean;
|
|
2136
|
+
IsSoftBody(): boolean;
|
|
2137
|
+
IsStatic(): boolean;
|
|
2138
|
+
IsKinematic(): boolean;
|
|
2139
|
+
IsDynamic(): boolean;
|
|
2140
|
+
CanBeKinematicOrDynamic(): boolean;
|
|
2141
|
+
GetBodyType(): EBodyType;
|
|
2142
|
+
GetMotionType(): EMotionType;
|
|
2143
|
+
SetIsSensor(inIsSensor: boolean): void;
|
|
2144
|
+
IsSensor(): boolean;
|
|
2145
|
+
SetCollideKinematicVsNonDynamic(inCollide: boolean): void;
|
|
2146
|
+
GetCollideKinematicVsNonDynamic(): boolean;
|
|
2147
|
+
SetUseManifoldReduction(inUseReduction: boolean): void;
|
|
2148
|
+
GetUseManifoldReduction(): boolean;
|
|
2149
|
+
SetApplyGyroscopicForce(inApply: boolean): void;
|
|
2150
|
+
GetApplyGyroscopicForce(): boolean;
|
|
2151
|
+
SetEnhancedInternalEdgeRemoval(inApply: boolean): void;
|
|
2152
|
+
GetEnhancedInternalEdgeRemoval(): boolean;
|
|
2153
|
+
GetObjectLayer(): number;
|
|
2154
|
+
GetCollisionGroup(): CollisionGroup;
|
|
2155
|
+
GetAllowSleeping(): boolean;
|
|
2156
|
+
SetAllowSleeping(inAllow: boolean): void;
|
|
2157
|
+
ResetSleepTimer(): void;
|
|
2158
|
+
GetFriction(): number;
|
|
2159
|
+
SetFriction(inFriction: number): void;
|
|
2160
|
+
GetRestitution(): number;
|
|
2161
|
+
SetRestitution(inRestitution: number): void;
|
|
2162
|
+
GetLinearVelocity(): Vec3;
|
|
2163
|
+
SetLinearVelocity(inVelocity: Vec3): void;
|
|
2164
|
+
SetLinearVelocityClamped(inVelocity: Vec3): void;
|
|
2165
|
+
GetAngularVelocity(): Vec3;
|
|
2166
|
+
SetAngularVelocity(inVelocity: Vec3): void;
|
|
2167
|
+
SetAngularVelocityClamped(inVelocity: Vec3): void;
|
|
2168
|
+
AddForce(inForce: Vec3): void;
|
|
2169
|
+
AddForce(inForce: Vec3, inPosition: RVec3): void;
|
|
2170
|
+
AddTorque(inTorque: Vec3): void;
|
|
2171
|
+
GetAccumulatedForce(): Vec3;
|
|
2172
|
+
GetAccumulatedTorque(): Vec3;
|
|
2173
|
+
ResetForce(): void;
|
|
2174
|
+
ResetTorque(): void;
|
|
2175
|
+
ResetMotion(): void;
|
|
2176
|
+
AddImpulse(inImpulse: Vec3): void;
|
|
2177
|
+
AddImpulse(inImpulse: Vec3, inPosition: RVec3): void;
|
|
2178
|
+
AddAngularImpulse(inAngularImpulse: Vec3): void;
|
|
2179
|
+
MoveKinematic(
|
|
2180
|
+
inPosition: RVec3,
|
|
2181
|
+
inRotation: Quat,
|
|
2182
|
+
inDeltaTime: number
|
|
2183
|
+
): void;
|
|
2184
|
+
ApplyBuoyancyImpulse(
|
|
2185
|
+
inSurfacePosition: RVec3,
|
|
2186
|
+
inSurfaceNormal: Vec3,
|
|
2187
|
+
inBuoyancy: number,
|
|
2188
|
+
inLinearDrag: number,
|
|
2189
|
+
inAngularDrag: number,
|
|
2190
|
+
inFluidVelocity: Vec3,
|
|
2191
|
+
inGravity: Vec3,
|
|
2192
|
+
inDeltaTime: number
|
|
2193
|
+
): boolean;
|
|
2194
|
+
IsInBroadPhase(): boolean;
|
|
2195
|
+
GetInverseInertia(): Mat44;
|
|
2196
|
+
GetShape(): Shape;
|
|
2197
|
+
GetPosition(): RVec3;
|
|
2198
|
+
GetRotation(): Quat;
|
|
2199
|
+
GetWorldTransform(): RMat44;
|
|
2200
|
+
GetCenterOfMassPosition(): RVec3;
|
|
2201
|
+
GetCenterOfMassTransform(): RMat44;
|
|
2202
|
+
GetInverseCenterOfMassTransform(): RMat44;
|
|
2203
|
+
GetWorldSpaceBounds(): AABox;
|
|
2204
|
+
GetTransformedShape(): TransformedShape;
|
|
2205
|
+
GetBodyCreationSettings(): BodyCreationSettings;
|
|
2206
|
+
GetSoftBodyCreationSettings(): SoftBodyCreationSettings;
|
|
2207
|
+
GetMotionProperties(): MotionProperties;
|
|
2208
|
+
GetWorldSpaceSurfaceNormal(
|
|
2209
|
+
inSubShapeID: SubShapeID,
|
|
2210
|
+
inPosition: RVec3
|
|
2211
|
+
): Vec3;
|
|
2212
|
+
GetUserData(): number;
|
|
2213
|
+
SetUserData(inUserData: number): void;
|
|
2214
|
+
}
|
|
2215
|
+
class BodyInterface {
|
|
2216
|
+
CreateBody(inSettings: BodyCreationSettings): Body;
|
|
2217
|
+
CreateSoftBody(inSettings: SoftBodyCreationSettings): Body;
|
|
2218
|
+
CreateBodyWithID(inBodyID: BodyID, inSettings: BodyCreationSettings): void;
|
|
2219
|
+
CreateSoftBodyWithID(
|
|
2220
|
+
inBodyID: BodyID,
|
|
2221
|
+
inSettings: SoftBodyCreationSettings
|
|
2222
|
+
): void;
|
|
2223
|
+
CreateBodyWithoutID(inSettings: BodyCreationSettings): Body;
|
|
2224
|
+
CreateSoftBodyWithoutID(inSettings: SoftBodyCreationSettings): Body;
|
|
2225
|
+
DestroyBodyWithoutID(inBody: Body): void;
|
|
2226
|
+
AssignBodyID(ioBody: Body): boolean;
|
|
2227
|
+
AssignBodyID(ioBody: Body, inBodyID: BodyID): boolean;
|
|
2228
|
+
UnassignBodyID(inBodyID: BodyID): Body;
|
|
2229
|
+
DestroyBody(inBodyID: BodyID): void;
|
|
2230
|
+
AddBody(inBodyID: BodyID, inActivationMode: EActivation): void;
|
|
2231
|
+
RemoveBody(inBodyID: BodyID): void;
|
|
2232
|
+
IsAdded(inBodyID: BodyID): boolean;
|
|
2233
|
+
CreateAndAddBody(
|
|
2234
|
+
inSettings: BodyCreationSettings,
|
|
2235
|
+
inActivationMode: EActivation
|
|
2236
|
+
): BodyID;
|
|
2237
|
+
CreateAndAddSoftBody(
|
|
2238
|
+
inSettings: SoftBodyCreationSettings,
|
|
2239
|
+
inActivationMode: EActivation
|
|
2240
|
+
): BodyID;
|
|
2241
|
+
CreateConstraint(
|
|
2242
|
+
inSettings: TwoBodyConstraintSettings,
|
|
2243
|
+
inBodyID1: BodyID,
|
|
2244
|
+
inBodyID2: BodyID
|
|
2245
|
+
): TwoBodyConstraint;
|
|
2246
|
+
ActivateConstraint(inConstraint: TwoBodyConstraint): void;
|
|
2247
|
+
GetShape(inBodyID: BodyID): Shape;
|
|
2248
|
+
SetShape(
|
|
2249
|
+
inBodyID: BodyID,
|
|
2250
|
+
inShape: Shape,
|
|
2251
|
+
inUpdateMassProperties: boolean,
|
|
2252
|
+
inActivationMode: EActivation
|
|
2253
|
+
): void;
|
|
2254
|
+
NotifyShapeChanged(
|
|
2255
|
+
inBodyID: BodyID,
|
|
2256
|
+
inPreviousCenterOfMass: Vec3,
|
|
2257
|
+
inUpdateMassProperties: boolean,
|
|
2258
|
+
inActivationMode: EActivation
|
|
2259
|
+
): void;
|
|
2260
|
+
SetObjectLayer(inBodyID: BodyID, inLayer: number): void;
|
|
2261
|
+
GetObjectLayer(inBodyID: BodyID): number;
|
|
2262
|
+
SetPositionAndRotation(
|
|
2263
|
+
inBodyID: BodyID,
|
|
2264
|
+
inPosition: RVec3,
|
|
2265
|
+
inRotation: Quat,
|
|
2266
|
+
inActivationMode: EActivation
|
|
2267
|
+
): void;
|
|
2268
|
+
SetPositionAndRotationWhenChanged(
|
|
2269
|
+
inBodyID: BodyID,
|
|
2270
|
+
inPosition: RVec3,
|
|
2271
|
+
inRotation: Quat,
|
|
2272
|
+
inActivationMode: EActivation
|
|
2273
|
+
): void;
|
|
2274
|
+
GetPositionAndRotation(
|
|
2275
|
+
inBodyID: BodyID,
|
|
2276
|
+
outPosition: RVec3,
|
|
2277
|
+
outRotation: Quat
|
|
2278
|
+
): void;
|
|
2279
|
+
SetPosition(
|
|
2280
|
+
inBodyID: BodyID,
|
|
2281
|
+
inPosition: RVec3,
|
|
2282
|
+
inActivationMode: EActivation
|
|
2283
|
+
): void;
|
|
2284
|
+
GetPosition(inBodyID: BodyID): RVec3;
|
|
2285
|
+
SetRotation(
|
|
2286
|
+
inBodyID: BodyID,
|
|
2287
|
+
inRotation: Quat,
|
|
2288
|
+
inActivationMode: EActivation
|
|
2289
|
+
): void;
|
|
2290
|
+
GetRotation(inBodyID: BodyID): Quat;
|
|
2291
|
+
GetWorldTransform(inBodyID: BodyID): RMat44;
|
|
2292
|
+
GetCenterOfMassTransform(inBodyID: BodyID): RMat44;
|
|
2293
|
+
SetLinearVelocity(inBodyID: BodyID, inLinearVelocity: Vec3): void;
|
|
2294
|
+
GetLinearVelocity(inBodyID: BodyID): Vec3;
|
|
2295
|
+
AddLinearVelocity(inBodyID: BodyID, inLinearVelocity: Vec3): void;
|
|
2296
|
+
AddLinearAndAngularVelocity(
|
|
2297
|
+
inBodyID: BodyID,
|
|
2298
|
+
inLinearVelocity: Vec3,
|
|
2299
|
+
inAngularVelocity: Vec3
|
|
2300
|
+
): void;
|
|
2301
|
+
SetAngularVelocity(inBodyID: BodyID, inAngularVelocity: Vec3): void;
|
|
2302
|
+
GetAngularVelocity(inBodyID: BodyID): Vec3;
|
|
2303
|
+
GetPointVelocity(inBodyID: BodyID, inPoint: RVec3): Vec3;
|
|
2304
|
+
SetPositionRotationAndVelocity(
|
|
2305
|
+
inBodyID: BodyID,
|
|
2306
|
+
inPosition: RVec3,
|
|
2307
|
+
inRotation: Quat,
|
|
2308
|
+
inLinearVelocity: Vec3,
|
|
2309
|
+
inAngularVelocity: Vec3
|
|
2310
|
+
): void;
|
|
2311
|
+
MoveKinematic(
|
|
2312
|
+
inBodyID: BodyID,
|
|
2313
|
+
inPosition: RVec3,
|
|
2314
|
+
inRotation: Quat,
|
|
2315
|
+
inDeltaTime: number
|
|
2316
|
+
): void;
|
|
2317
|
+
ActivateBody(inBodyID: BodyID): void;
|
|
2318
|
+
ActivateBodiesInAABox(
|
|
2319
|
+
inBox: AABox,
|
|
2320
|
+
inBroadPhaseLayerFilter: BroadPhaseLayerFilter,
|
|
2321
|
+
inObjectLayerFilter: ObjectLayerFilter
|
|
2322
|
+
): void;
|
|
2323
|
+
DeactivateBody(inBodyID: BodyID): void;
|
|
2324
|
+
IsActive(inBodyID: BodyID): boolean;
|
|
2325
|
+
ResetSleepTimer(inBodyID: BodyID): void;
|
|
2326
|
+
GetBodyType(inBodyID: BodyID): EBodyType;
|
|
2327
|
+
SetMotionType(
|
|
2328
|
+
inBodyID: BodyID,
|
|
2329
|
+
inMotionType: EMotionType,
|
|
2330
|
+
inActivationMode: EActivation
|
|
2331
|
+
): void;
|
|
2332
|
+
GetMotionType(inBodyID: BodyID): EMotionType;
|
|
2333
|
+
SetMotionQuality(inBodyID: BodyID, inMotionQuality: EMotionQuality): void;
|
|
2334
|
+
GetMotionQuality(inBodyID: BodyID): EMotionQuality;
|
|
2335
|
+
GetInverseInertia(inBodyID: BodyID): Mat44;
|
|
2336
|
+
SetRestitution(inBodyID: BodyID, inRestitution: number): void;
|
|
2337
|
+
GetRestitution(inBodyID: BodyID): number;
|
|
2338
|
+
SetFriction(inBodyID: BodyID, inFriction: number): void;
|
|
2339
|
+
GetFriction(inBodyID: BodyID): number;
|
|
2340
|
+
SetGravityFactor(inBodyID: BodyID, inFactor: number): void;
|
|
2341
|
+
GetGravityFactor(inBodyID: BodyID): number;
|
|
2342
|
+
SetUseManifoldReduction(inBodyID: BodyID, inUseReduction: boolean): void;
|
|
2343
|
+
GetUseManifoldReduction(inBodyID: BodyID): boolean;
|
|
2344
|
+
AddForce(
|
|
2345
|
+
inBodyID: BodyID,
|
|
2346
|
+
inForce: Vec3,
|
|
2347
|
+
inActivationMode: EActivation
|
|
2348
|
+
): void;
|
|
2349
|
+
AddForce(
|
|
2350
|
+
inBodyID: BodyID,
|
|
2351
|
+
inForce: Vec3,
|
|
2352
|
+
inPoint: RVec3,
|
|
2353
|
+
inActivationMode: EActivation
|
|
2354
|
+
): void;
|
|
2355
|
+
AddTorque(
|
|
2356
|
+
inBodyID: BodyID,
|
|
2357
|
+
inTorque: Vec3,
|
|
2358
|
+
inActivationMode: EActivation
|
|
2359
|
+
): void;
|
|
2360
|
+
AddForceAndTorque(
|
|
2361
|
+
inBodyID: BodyID,
|
|
2362
|
+
inForce: Vec3,
|
|
2363
|
+
inTorque: Vec3,
|
|
2364
|
+
inActivationMode: EActivation
|
|
2365
|
+
): void;
|
|
2366
|
+
ApplyBuoyancyImpulse(
|
|
2367
|
+
inBodyID: BodyID,
|
|
2368
|
+
inSurfacePosition: RVec3,
|
|
2369
|
+
inSurfaceNormal: Vec3,
|
|
2370
|
+
inBuoyancy: number,
|
|
2371
|
+
inLinearDrag: number,
|
|
2372
|
+
inAngularDrag: number,
|
|
2373
|
+
inFluidVelocity: Vec3,
|
|
2374
|
+
inGravity: Vec3,
|
|
2375
|
+
inDeltaTime: number
|
|
2376
|
+
): boolean;
|
|
2377
|
+
AddImpulse(inBodyID: BodyID, inImpulse: Vec3): void;
|
|
2378
|
+
AddImpulse(inBodyID: BodyID, inImpulse: Vec3, inPosition: RVec3): void;
|
|
2379
|
+
AddAngularImpulse(inBodyID: BodyID, inAngularImpulse: Vec3): void;
|
|
2380
|
+
GetTransformedShape(inBodyID: BodyID): TransformedShape;
|
|
2381
|
+
GetUserData(inBodyID: BodyID): number;
|
|
2382
|
+
SetUserData(inBodyID: BodyID, inUserData: number): void;
|
|
2383
|
+
GetMaterial(inBodyID: BodyID, inSubShapeID: SubShapeID): PhysicsMaterial;
|
|
2384
|
+
InvalidateContactCache(inBodyID: BodyID): void;
|
|
2385
|
+
}
|
|
2386
|
+
class StateRecorderFilter {}
|
|
2387
|
+
class StateRecorderFilterJS extends StateRecorderFilter {
|
|
2388
|
+
constructor();
|
|
2389
|
+
ShouldSaveBody(inBody: number): boolean;
|
|
2390
|
+
ShouldSaveConstraint(inConstraint: number): boolean;
|
|
2391
|
+
ShouldSaveContact(inBody1: number, inBody2: number): boolean;
|
|
2392
|
+
ShouldRestoreContact(inBody1: number, inBody2: number): boolean;
|
|
2393
|
+
}
|
|
2394
|
+
class StateRecorder {
|
|
2395
|
+
SetValidating(inValidating: boolean): void;
|
|
2396
|
+
IsValidating(): boolean;
|
|
2397
|
+
SetIsLastPart(inIsLastPart: boolean): void;
|
|
2398
|
+
IsLastPart(): boolean;
|
|
2399
|
+
}
|
|
2400
|
+
class StateRecorderEm extends StateRecorder {}
|
|
2401
|
+
class StateRecorderJS extends StateRecorderEm {
|
|
2402
|
+
constructor();
|
|
2403
|
+
ReadBytes(outData: number, inNumBytes: number): void;
|
|
2404
|
+
WriteBytes(inData: number, inNumBytes: number): void;
|
|
2405
|
+
IsEOF(): boolean;
|
|
2406
|
+
IsFailed(): boolean;
|
|
2407
|
+
}
|
|
2408
|
+
class StateRecorderImpl extends StateRecorder {
|
|
2409
|
+
constructor();
|
|
2410
|
+
Clear(): void;
|
|
2411
|
+
Rewind(): void;
|
|
2412
|
+
IsEqual(inReference: StateRecorderImpl): boolean;
|
|
2413
|
+
}
|
|
2414
|
+
class BodyLockInterface {
|
|
2415
|
+
TryGetBody(inBodyID: BodyID): Body;
|
|
2416
|
+
}
|
|
2417
|
+
class BodyLockInterfaceNoLock extends BodyLockInterface {}
|
|
2418
|
+
class BodyLockInterfaceLocking extends BodyLockInterface {}
|
|
2419
|
+
class PhysicsSettings {
|
|
2420
|
+
constructor();
|
|
2421
|
+
get_mMaxInFlightBodyPairs(): number;
|
|
2422
|
+
set_mMaxInFlightBodyPairs(mMaxInFlightBodyPairs: number): void;
|
|
2423
|
+
mMaxInFlightBodyPairs: number;
|
|
2424
|
+
get_mStepListenersBatchSize(): number;
|
|
2425
|
+
set_mStepListenersBatchSize(mStepListenersBatchSize: number): void;
|
|
2426
|
+
mStepListenersBatchSize: number;
|
|
2427
|
+
get_mStepListenerBatchesPerJob(): number;
|
|
2428
|
+
set_mStepListenerBatchesPerJob(mStepListenerBatchesPerJob: number): void;
|
|
2429
|
+
mStepListenerBatchesPerJob: number;
|
|
2430
|
+
get_mBaumgarte(): number;
|
|
2431
|
+
set_mBaumgarte(mBaumgarte: number): void;
|
|
2432
|
+
mBaumgarte: number;
|
|
2433
|
+
get_mSpeculativeContactDistance(): number;
|
|
2434
|
+
set_mSpeculativeContactDistance(mSpeculativeContactDistance: number): void;
|
|
2435
|
+
mSpeculativeContactDistance: number;
|
|
2436
|
+
get_mPenetrationSlop(): number;
|
|
2437
|
+
set_mPenetrationSlop(mPenetrationSlop: number): void;
|
|
2438
|
+
mPenetrationSlop: number;
|
|
2439
|
+
get_mLinearCastThreshold(): number;
|
|
2440
|
+
set_mLinearCastThreshold(mLinearCastThreshold: number): void;
|
|
2441
|
+
mLinearCastThreshold: number;
|
|
2442
|
+
get_mLinearCastMaxPenetration(): number;
|
|
2443
|
+
set_mLinearCastMaxPenetration(mLinearCastMaxPenetration: number): void;
|
|
2444
|
+
mLinearCastMaxPenetration: number;
|
|
2445
|
+
get_mManifoldToleranceSq(): number;
|
|
2446
|
+
set_mManifoldToleranceSq(mManifoldToleranceSq: number): void;
|
|
2447
|
+
mManifoldToleranceSq: number;
|
|
2448
|
+
get_mMaxPenetrationDistance(): number;
|
|
2449
|
+
set_mMaxPenetrationDistance(mMaxPenetrationDistance: number): void;
|
|
2450
|
+
mMaxPenetrationDistance: number;
|
|
2451
|
+
get_mBodyPairCacheMaxDeltaPositionSq(): number;
|
|
2452
|
+
set_mBodyPairCacheMaxDeltaPositionSq(
|
|
2453
|
+
mBodyPairCacheMaxDeltaPositionSq: number
|
|
2454
|
+
): void;
|
|
2455
|
+
mBodyPairCacheMaxDeltaPositionSq: number;
|
|
2456
|
+
get_mBodyPairCacheCosMaxDeltaRotationDiv2(): number;
|
|
2457
|
+
set_mBodyPairCacheCosMaxDeltaRotationDiv2(
|
|
2458
|
+
mBodyPairCacheCosMaxDeltaRotationDiv2: number
|
|
2459
|
+
): void;
|
|
2460
|
+
mBodyPairCacheCosMaxDeltaRotationDiv2: number;
|
|
2461
|
+
get_mContactNormalCosMaxDeltaRotation(): number;
|
|
2462
|
+
set_mContactNormalCosMaxDeltaRotation(
|
|
2463
|
+
mContactNormalCosMaxDeltaRotation: number
|
|
2464
|
+
): void;
|
|
2465
|
+
mContactNormalCosMaxDeltaRotation: number;
|
|
2466
|
+
get_mContactPointPreserveLambdaMaxDistSq(): number;
|
|
2467
|
+
set_mContactPointPreserveLambdaMaxDistSq(
|
|
2468
|
+
mContactPointPreserveLambdaMaxDistSq: number
|
|
2469
|
+
): void;
|
|
2470
|
+
mContactPointPreserveLambdaMaxDistSq: number;
|
|
2471
|
+
get_mNumVelocitySteps(): number;
|
|
2472
|
+
set_mNumVelocitySteps(mNumVelocitySteps: number): void;
|
|
2473
|
+
mNumVelocitySteps: number;
|
|
2474
|
+
get_mNumPositionSteps(): number;
|
|
2475
|
+
set_mNumPositionSteps(mNumPositionSteps: number): void;
|
|
2476
|
+
mNumPositionSteps: number;
|
|
2477
|
+
get_mMinVelocityForRestitution(): number;
|
|
2478
|
+
set_mMinVelocityForRestitution(mMinVelocityForRestitution: number): void;
|
|
2479
|
+
mMinVelocityForRestitution: number;
|
|
2480
|
+
get_mTimeBeforeSleep(): number;
|
|
2481
|
+
set_mTimeBeforeSleep(mTimeBeforeSleep: number): void;
|
|
2482
|
+
mTimeBeforeSleep: number;
|
|
2483
|
+
get_mPointVelocitySleepThreshold(): number;
|
|
2484
|
+
set_mPointVelocitySleepThreshold(
|
|
2485
|
+
mPointVelocitySleepThreshold: number
|
|
2486
|
+
): void;
|
|
2487
|
+
mPointVelocitySleepThreshold: number;
|
|
2488
|
+
get_mDeterministicSimulation(): boolean;
|
|
2489
|
+
set_mDeterministicSimulation(mDeterministicSimulation: boolean): void;
|
|
2490
|
+
mDeterministicSimulation: boolean;
|
|
2491
|
+
get_mConstraintWarmStart(): boolean;
|
|
2492
|
+
set_mConstraintWarmStart(mConstraintWarmStart: boolean): void;
|
|
2493
|
+
mConstraintWarmStart: boolean;
|
|
2494
|
+
get_mUseBodyPairContactCache(): boolean;
|
|
2495
|
+
set_mUseBodyPairContactCache(mUseBodyPairContactCache: boolean): void;
|
|
2496
|
+
mUseBodyPairContactCache: boolean;
|
|
2497
|
+
get_mUseManifoldReduction(): boolean;
|
|
2498
|
+
set_mUseManifoldReduction(mUseManifoldReduction: boolean): void;
|
|
2499
|
+
mUseManifoldReduction: boolean;
|
|
2500
|
+
get_mUseLargeIslandSplitter(): boolean;
|
|
2501
|
+
set_mUseLargeIslandSplitter(mUseLargeIslandSplitter: boolean): void;
|
|
2502
|
+
mUseLargeIslandSplitter: boolean;
|
|
2503
|
+
get_mAllowSleeping(): boolean;
|
|
2504
|
+
set_mAllowSleeping(mAllowSleeping: boolean): void;
|
|
2505
|
+
mAllowSleeping: boolean;
|
|
2506
|
+
get_mCheckActiveEdges(): boolean;
|
|
2507
|
+
set_mCheckActiveEdges(mCheckActiveEdges: boolean): void;
|
|
2508
|
+
mCheckActiveEdges: boolean;
|
|
2509
|
+
}
|
|
2510
|
+
class CollideShapeResultFace {
|
|
2511
|
+
empty(): boolean;
|
|
2512
|
+
size(): number;
|
|
2513
|
+
at(inIndex: number): Vec3;
|
|
2514
|
+
push_back(inValue: Vec3): void;
|
|
2515
|
+
resize(inSize: number): void;
|
|
2516
|
+
clear(): void;
|
|
2517
|
+
}
|
|
2518
|
+
class CollideShapeResult {
|
|
2519
|
+
constructor();
|
|
2520
|
+
get_mContactPointOn1(): Vec3;
|
|
2521
|
+
set_mContactPointOn1(mContactPointOn1: Vec3): void;
|
|
2522
|
+
mContactPointOn1: Vec3;
|
|
2523
|
+
get_mContactPointOn2(): Vec3;
|
|
2524
|
+
set_mContactPointOn2(mContactPointOn2: Vec3): void;
|
|
2525
|
+
mContactPointOn2: Vec3;
|
|
2526
|
+
get_mPenetrationAxis(): Vec3;
|
|
2527
|
+
set_mPenetrationAxis(mPenetrationAxis: Vec3): void;
|
|
2528
|
+
mPenetrationAxis: Vec3;
|
|
2529
|
+
get_mPenetrationDepth(): number;
|
|
2530
|
+
set_mPenetrationDepth(mPenetrationDepth: number): void;
|
|
2531
|
+
mPenetrationDepth: number;
|
|
2532
|
+
get_mSubShapeID1(): SubShapeID;
|
|
2533
|
+
set_mSubShapeID1(mSubShapeID1: SubShapeID): void;
|
|
2534
|
+
mSubShapeID1: SubShapeID;
|
|
2535
|
+
get_mSubShapeID2(): SubShapeID;
|
|
2536
|
+
set_mSubShapeID2(mSubShapeID2: SubShapeID): void;
|
|
2537
|
+
mSubShapeID2: SubShapeID;
|
|
2538
|
+
get_mBodyID2(): BodyID;
|
|
2539
|
+
set_mBodyID2(mBodyID2: BodyID): void;
|
|
2540
|
+
mBodyID2: BodyID;
|
|
2541
|
+
get_mShape1Face(): CollideShapeResultFace;
|
|
2542
|
+
set_mShape1Face(mShape1Face: CollideShapeResultFace): void;
|
|
2543
|
+
mShape1Face: CollideShapeResultFace;
|
|
2544
|
+
get_mShape2Face(): CollideShapeResultFace;
|
|
2545
|
+
set_mShape2Face(mShape2Face: CollideShapeResultFace): void;
|
|
2546
|
+
mShape2Face: CollideShapeResultFace;
|
|
2547
|
+
}
|
|
2548
|
+
class ContactPoints {
|
|
2549
|
+
empty(): boolean;
|
|
2550
|
+
size(): number;
|
|
2551
|
+
at(inIndex: number): Vec3;
|
|
2552
|
+
push_back(inValue: Vec3): void;
|
|
2553
|
+
resize(inSize: number): void;
|
|
2554
|
+
clear(): void;
|
|
2555
|
+
}
|
|
2556
|
+
class ContactManifold {
|
|
2557
|
+
constructor();
|
|
2558
|
+
SwapShapes(): ContactManifold;
|
|
2559
|
+
GetWorldSpaceContactPointOn1(inIndex: number): RVec3;
|
|
2560
|
+
GetWorldSpaceContactPointOn2(inIndex: number): RVec3;
|
|
2561
|
+
get_mBaseOffset(): RVec3;
|
|
2562
|
+
set_mBaseOffset(mBaseOffset: RVec3): void;
|
|
2563
|
+
mBaseOffset: RVec3;
|
|
2564
|
+
get_mWorldSpaceNormal(): Vec3;
|
|
2565
|
+
set_mWorldSpaceNormal(mWorldSpaceNormal: Vec3): void;
|
|
2566
|
+
mWorldSpaceNormal: Vec3;
|
|
2567
|
+
get_mPenetrationDepth(): number;
|
|
2568
|
+
set_mPenetrationDepth(mPenetrationDepth: number): void;
|
|
2569
|
+
mPenetrationDepth: number;
|
|
2570
|
+
get_mSubShapeID1(): SubShapeID;
|
|
2571
|
+
set_mSubShapeID1(mSubShapeID1: SubShapeID): void;
|
|
2572
|
+
mSubShapeID1: SubShapeID;
|
|
2573
|
+
get_mSubShapeID2(): SubShapeID;
|
|
2574
|
+
set_mSubShapeID2(mSubShapeID2: SubShapeID): void;
|
|
2575
|
+
mSubShapeID2: SubShapeID;
|
|
2576
|
+
get_mRelativeContactPointsOn1(): ContactPoints;
|
|
2577
|
+
set_mRelativeContactPointsOn1(
|
|
2578
|
+
mRelativeContactPointsOn1: ContactPoints
|
|
2579
|
+
): void;
|
|
2580
|
+
mRelativeContactPointsOn1: ContactPoints;
|
|
2581
|
+
get_mRelativeContactPointsOn2(): ContactPoints;
|
|
2582
|
+
set_mRelativeContactPointsOn2(
|
|
2583
|
+
mRelativeContactPointsOn2: ContactPoints
|
|
2584
|
+
): void;
|
|
2585
|
+
mRelativeContactPointsOn2: ContactPoints;
|
|
2586
|
+
}
|
|
2587
|
+
class ContactSettings {
|
|
2588
|
+
constructor();
|
|
2589
|
+
get_mCombinedFriction(): number;
|
|
2590
|
+
set_mCombinedFriction(mCombinedFriction: number): void;
|
|
2591
|
+
mCombinedFriction: number;
|
|
2592
|
+
get_mCombinedRestitution(): number;
|
|
2593
|
+
set_mCombinedRestitution(mCombinedRestitution: number): void;
|
|
2594
|
+
mCombinedRestitution: number;
|
|
2595
|
+
get_mInvMassScale1(): number;
|
|
2596
|
+
set_mInvMassScale1(mInvMassScale1: number): void;
|
|
2597
|
+
mInvMassScale1: number;
|
|
2598
|
+
get_mInvInertiaScale1(): number;
|
|
2599
|
+
set_mInvInertiaScale1(mInvInertiaScale1: number): void;
|
|
2600
|
+
mInvInertiaScale1: number;
|
|
2601
|
+
get_mInvMassScale2(): number;
|
|
2602
|
+
set_mInvMassScale2(mInvMassScale2: number): void;
|
|
2603
|
+
mInvMassScale2: number;
|
|
2604
|
+
get_mInvInertiaScale2(): number;
|
|
2605
|
+
set_mInvInertiaScale2(mInvInertiaScale2: number): void;
|
|
2606
|
+
mInvInertiaScale2: number;
|
|
2607
|
+
get_mIsSensor(): boolean;
|
|
2608
|
+
set_mIsSensor(mIsSensor: boolean): void;
|
|
2609
|
+
mIsSensor: boolean;
|
|
2610
|
+
get_mRelativeLinearSurfaceVelocity(): Vec3;
|
|
2611
|
+
set_mRelativeLinearSurfaceVelocity(
|
|
2612
|
+
mRelativeLinearSurfaceVelocity: Vec3
|
|
2613
|
+
): void;
|
|
2614
|
+
mRelativeLinearSurfaceVelocity: Vec3;
|
|
2615
|
+
get_mRelativeAngularSurfaceVelocity(): Vec3;
|
|
2616
|
+
set_mRelativeAngularSurfaceVelocity(
|
|
2617
|
+
mRelativeAngularSurfaceVelocity: Vec3
|
|
2618
|
+
): void;
|
|
2619
|
+
mRelativeAngularSurfaceVelocity: Vec3;
|
|
2620
|
+
}
|
|
2621
|
+
class SubShapeIDPair {
|
|
2622
|
+
constructor();
|
|
2623
|
+
GetBody1ID(): BodyID;
|
|
2624
|
+
GetSubShapeID1(): SubShapeID;
|
|
2625
|
+
GetBody2ID(): BodyID;
|
|
2626
|
+
GetSubShapeID2(): SubShapeID;
|
|
2627
|
+
}
|
|
2628
|
+
class ContactListener {}
|
|
2629
|
+
class ContactListenerEm extends ContactListener {}
|
|
2630
|
+
class ContactListenerJS extends ContactListenerEm {
|
|
2631
|
+
constructor();
|
|
2632
|
+
OnContactValidate(
|
|
2633
|
+
inBody1: number,
|
|
2634
|
+
inBody2: number,
|
|
2635
|
+
inBaseOffset: number,
|
|
2636
|
+
inCollisionResult: number
|
|
2637
|
+
): number;
|
|
2638
|
+
OnContactAdded(
|
|
2639
|
+
inBody1: number,
|
|
2640
|
+
inBody2: number,
|
|
2641
|
+
inManifold: number,
|
|
2642
|
+
ioSettings: number
|
|
2643
|
+
): void;
|
|
2644
|
+
OnContactPersisted(
|
|
2645
|
+
inBody1: number,
|
|
2646
|
+
inBody2: number,
|
|
2647
|
+
inManifold: number,
|
|
2648
|
+
ioSettings: number
|
|
2649
|
+
): void;
|
|
2650
|
+
OnContactRemoved(inSubShapePair: number): void;
|
|
2651
|
+
}
|
|
2652
|
+
class SoftBodyManifold {
|
|
2653
|
+
GetVertices(): ArraySoftBodyVertex;
|
|
2654
|
+
HasContact(inVertex: SoftBodyVertex): boolean;
|
|
2655
|
+
GetLocalContactPoint(inVertex: SoftBodyVertex): Vec3;
|
|
2656
|
+
GetContactNormal(inVertex: SoftBodyVertex): Vec3;
|
|
2657
|
+
GetContactBodyID(inVertex: SoftBodyVertex): BodyID;
|
|
2658
|
+
GetNumSensorContacts(): number;
|
|
2659
|
+
GetSensorContactBodyID(inIndex: number): BodyID;
|
|
2660
|
+
}
|
|
2661
|
+
class SoftBodyContactSettings {
|
|
2662
|
+
get_mInvMassScale1(): number;
|
|
2663
|
+
set_mInvMassScale1(mInvMassScale1: number): void;
|
|
2664
|
+
mInvMassScale1: number;
|
|
2665
|
+
get_mInvMassScale2(): number;
|
|
2666
|
+
set_mInvMassScale2(mInvMassScale2: number): void;
|
|
2667
|
+
mInvMassScale2: number;
|
|
2668
|
+
get_mInvInertiaScale2(): number;
|
|
2669
|
+
set_mInvInertiaScale2(mInvInertiaScale2: number): void;
|
|
2670
|
+
mInvInertiaScale2: number;
|
|
2671
|
+
get_mIsSensor(): boolean;
|
|
2672
|
+
set_mIsSensor(mIsSensor: boolean): void;
|
|
2673
|
+
mIsSensor: boolean;
|
|
2674
|
+
}
|
|
2675
|
+
class SoftBodyContactListener {}
|
|
2676
|
+
class SoftBodyContactListenerEm extends SoftBodyContactListener {}
|
|
2677
|
+
class SoftBodyContactListenerJS extends SoftBodyContactListenerEm {
|
|
2678
|
+
constructor();
|
|
2679
|
+
OnSoftBodyContactValidate(
|
|
2680
|
+
inSoftBody: number,
|
|
2681
|
+
inOtherBody: number,
|
|
2682
|
+
ioSettings: number
|
|
2683
|
+
): number;
|
|
2684
|
+
OnSoftBodyContactAdded(inSoftBody: number, inManifold: number): void;
|
|
2685
|
+
}
|
|
2686
|
+
class RayCastBodyCollector {
|
|
2687
|
+
Reset(): void;
|
|
2688
|
+
SetContext(inContext: TransformedShape): void;
|
|
2689
|
+
GetContext(): TransformedShape;
|
|
2690
|
+
UpdateEarlyOutFraction(inFraction: number): void;
|
|
2691
|
+
ResetEarlyOutFraction(inFraction?: number): void;
|
|
2692
|
+
ForceEarlyOut(): void;
|
|
2693
|
+
ShouldEarlyOut(): boolean;
|
|
2694
|
+
GetEarlyOutFraction(): number;
|
|
2695
|
+
GetPositiveEarlyOutFraction(): number;
|
|
2696
|
+
}
|
|
2697
|
+
class RayCastBodyCollectorJS extends RayCastBodyCollector {
|
|
2698
|
+
constructor();
|
|
2699
|
+
Reset(): void;
|
|
2700
|
+
AddHit(inResult: number): void;
|
|
2701
|
+
}
|
|
2702
|
+
class CollideShapeBodyCollector {
|
|
2703
|
+
Reset(): void;
|
|
2704
|
+
SetContext(inContext: TransformedShape): void;
|
|
2705
|
+
GetContext(): TransformedShape;
|
|
2706
|
+
UpdateEarlyOutFraction(inFraction: number): void;
|
|
2707
|
+
ResetEarlyOutFraction(inFraction?: number): void;
|
|
2708
|
+
ForceEarlyOut(): void;
|
|
2709
|
+
ShouldEarlyOut(): boolean;
|
|
2710
|
+
GetEarlyOutFraction(): number;
|
|
2711
|
+
GetPositiveEarlyOutFraction(): number;
|
|
2712
|
+
}
|
|
2713
|
+
class CollideShapeBodyCollectorJS extends CollideShapeBodyCollector {
|
|
2714
|
+
constructor();
|
|
2715
|
+
Reset(): void;
|
|
2716
|
+
AddHit(inResult: number): void;
|
|
2717
|
+
}
|
|
2718
|
+
class CastShapeBodyCollector {
|
|
2719
|
+
Reset(): void;
|
|
2720
|
+
SetContext(inContext: TransformedShape): void;
|
|
2721
|
+
GetContext(): TransformedShape;
|
|
2722
|
+
UpdateEarlyOutFraction(inFraction: number): void;
|
|
2723
|
+
ResetEarlyOutFraction(inFraction?: number): void;
|
|
2724
|
+
ForceEarlyOut(): void;
|
|
2725
|
+
ShouldEarlyOut(): boolean;
|
|
2726
|
+
GetEarlyOutFraction(): number;
|
|
2727
|
+
GetPositiveEarlyOutFraction(): number;
|
|
2728
|
+
}
|
|
2729
|
+
class CastShapeBodyCollectorJS extends CastShapeBodyCollector {
|
|
2730
|
+
constructor();
|
|
2731
|
+
Reset(): void;
|
|
2732
|
+
AddHit(inResult: number): void;
|
|
2733
|
+
}
|
|
2734
|
+
class BroadPhaseQuery {
|
|
2735
|
+
CastRay(
|
|
2736
|
+
inRay: RayCast,
|
|
2737
|
+
ioCollector: RayCastBodyCollector,
|
|
2738
|
+
inBroadPhaseFilter: BroadPhaseLayerFilter,
|
|
2739
|
+
inObjectLayerFilter: ObjectLayerFilter
|
|
2740
|
+
): void;
|
|
2741
|
+
CollideAABox(
|
|
2742
|
+
inBox: AABox,
|
|
2743
|
+
ioCollector: CollideShapeBodyCollector,
|
|
2744
|
+
inBroadPhaseFilter: BroadPhaseLayerFilter,
|
|
2745
|
+
inObjectLayerFilter: ObjectLayerFilter
|
|
2746
|
+
): void;
|
|
2747
|
+
CollideSphere(
|
|
2748
|
+
inCenter: Vec3,
|
|
2749
|
+
inRadius: number,
|
|
2750
|
+
ioCollector: CollideShapeBodyCollector,
|
|
2751
|
+
inBroadPhaseLayerFilter: BroadPhaseLayerFilter,
|
|
2752
|
+
inObjectLayerFilter: ObjectLayerFilter
|
|
2753
|
+
): void;
|
|
2754
|
+
CollidePoint(
|
|
2755
|
+
inPoint: Vec3,
|
|
2756
|
+
ioCollector: CollideShapeBodyCollector,
|
|
2757
|
+
inBroadPhaseFilter: BroadPhaseLayerFilter,
|
|
2758
|
+
inObjectLayerFilter: ObjectLayerFilter
|
|
2759
|
+
): void;
|
|
2760
|
+
CollideOrientedBox(
|
|
2761
|
+
inBox: OrientedBox,
|
|
2762
|
+
ioCollector: CollideShapeBodyCollector,
|
|
2763
|
+
inBroadPhaseFilter: BroadPhaseLayerFilter,
|
|
2764
|
+
inObjectLayerFilter: ObjectLayerFilter
|
|
2765
|
+
): void;
|
|
2766
|
+
CastAABox(
|
|
2767
|
+
inBox: AABoxCast,
|
|
2768
|
+
ioCollector: CastShapeBodyCollector,
|
|
2769
|
+
inBroadPhaseFilter: BroadPhaseLayerFilter,
|
|
2770
|
+
inObjectLayerFilter: ObjectLayerFilter
|
|
2771
|
+
): void;
|
|
2772
|
+
}
|
|
2773
|
+
class RayCastSettings {
|
|
2774
|
+
constructor();
|
|
2775
|
+
SetBackFaceMode(inBackFaceMode: EBackFaceMode): void;
|
|
2776
|
+
get_mBackFaceModeTriangles(): EBackFaceMode;
|
|
2777
|
+
set_mBackFaceModeTriangles(mBackFaceModeTriangles: EBackFaceMode): void;
|
|
2778
|
+
mBackFaceModeTriangles: EBackFaceMode;
|
|
2779
|
+
get_mBackFaceModeConvex(): EBackFaceMode;
|
|
2780
|
+
set_mBackFaceModeConvex(mBackFaceModeConvex: EBackFaceMode): void;
|
|
2781
|
+
mBackFaceModeConvex: EBackFaceMode;
|
|
2782
|
+
get_mTreatConvexAsSolid(): boolean;
|
|
2783
|
+
set_mTreatConvexAsSolid(mTreatConvexAsSolid: boolean): void;
|
|
2784
|
+
mTreatConvexAsSolid: boolean;
|
|
2785
|
+
}
|
|
2786
|
+
class CastRayCollector {
|
|
2787
|
+
Reset(): void;
|
|
2788
|
+
SetContext(inContext: TransformedShape): void;
|
|
2789
|
+
GetContext(): TransformedShape;
|
|
2790
|
+
UpdateEarlyOutFraction(inFraction: number): void;
|
|
2791
|
+
ResetEarlyOutFraction(inFraction?: number): void;
|
|
2792
|
+
ForceEarlyOut(): void;
|
|
2793
|
+
ShouldEarlyOut(): boolean;
|
|
2794
|
+
GetEarlyOutFraction(): number;
|
|
2795
|
+
GetPositiveEarlyOutFraction(): number;
|
|
2796
|
+
}
|
|
2797
|
+
class CastRayCollectorJS extends CastRayCollector {
|
|
2798
|
+
constructor();
|
|
2799
|
+
Reset(): void;
|
|
2800
|
+
OnBody(inBody: number): void;
|
|
2801
|
+
AddHit(inResult: number): void;
|
|
2802
|
+
}
|
|
2803
|
+
class ArrayRayCastResult {
|
|
2804
|
+
empty(): boolean;
|
|
2805
|
+
size(): number;
|
|
2806
|
+
at(inIndex: number): RayCastResult;
|
|
2807
|
+
push_back(inValue: RayCastResult): void;
|
|
2808
|
+
reserve(inSize: number): void;
|
|
2809
|
+
resize(inSize: number): void;
|
|
2810
|
+
clear(): void;
|
|
2811
|
+
}
|
|
2812
|
+
class CastRayAllHitCollisionCollector extends CastRayCollector {
|
|
2813
|
+
constructor();
|
|
2814
|
+
Sort(): void;
|
|
2815
|
+
HadHit(): boolean;
|
|
2816
|
+
get_mHits(): ArrayRayCastResult;
|
|
2817
|
+
set_mHits(mHits: ArrayRayCastResult): void;
|
|
2818
|
+
mHits: ArrayRayCastResult;
|
|
2819
|
+
}
|
|
2820
|
+
class CastRayClosestHitCollisionCollector extends CastRayCollector {
|
|
2821
|
+
constructor();
|
|
2822
|
+
HadHit(): boolean;
|
|
2823
|
+
get_mHit(): RayCastResult;
|
|
2824
|
+
set_mHit(mHit: RayCastResult): void;
|
|
2825
|
+
mHit: RayCastResult;
|
|
2826
|
+
}
|
|
2827
|
+
class CastRayAnyHitCollisionCollector extends CastRayCollector {
|
|
2828
|
+
constructor();
|
|
2829
|
+
HadHit(): boolean;
|
|
2830
|
+
get_mHit(): RayCastResult;
|
|
2831
|
+
set_mHit(mHit: RayCastResult): void;
|
|
2832
|
+
mHit: RayCastResult;
|
|
2833
|
+
}
|
|
2834
|
+
class CollidePointResult {
|
|
2835
|
+
constructor();
|
|
2836
|
+
get_mBodyID(): BodyID;
|
|
2837
|
+
set_mBodyID(mBodyID: BodyID): void;
|
|
2838
|
+
mBodyID: BodyID;
|
|
2839
|
+
get_mSubShapeID2(): SubShapeID;
|
|
2840
|
+
set_mSubShapeID2(mSubShapeID2: SubShapeID): void;
|
|
2841
|
+
mSubShapeID2: SubShapeID;
|
|
2842
|
+
}
|
|
2843
|
+
class CollidePointCollector {
|
|
2844
|
+
Reset(): void;
|
|
2845
|
+
SetContext(inContext: TransformedShape): void;
|
|
2846
|
+
GetContext(): TransformedShape;
|
|
2847
|
+
UpdateEarlyOutFraction(inFraction: number): void;
|
|
2848
|
+
ResetEarlyOutFraction(inFraction?: number): void;
|
|
2849
|
+
ForceEarlyOut(): void;
|
|
2850
|
+
ShouldEarlyOut(): boolean;
|
|
2851
|
+
GetEarlyOutFraction(): number;
|
|
2852
|
+
GetPositiveEarlyOutFraction(): number;
|
|
2853
|
+
}
|
|
2854
|
+
class CollidePointCollectorJS extends CollidePointCollector {
|
|
2855
|
+
constructor();
|
|
2856
|
+
Reset(): void;
|
|
2857
|
+
OnBody(inBody: number): void;
|
|
2858
|
+
AddHit(inResult: number): void;
|
|
2859
|
+
}
|
|
2860
|
+
class ArrayCollidePointResult {
|
|
2861
|
+
empty(): boolean;
|
|
2862
|
+
size(): number;
|
|
2863
|
+
at(inIndex: number): CollidePointResult;
|
|
2864
|
+
push_back(inValue: CollidePointResult): void;
|
|
2865
|
+
reserve(inSize: number): void;
|
|
2866
|
+
resize(inSize: number): void;
|
|
2867
|
+
clear(): void;
|
|
2868
|
+
}
|
|
2869
|
+
class CollidePointAllHitCollisionCollector extends CollidePointCollector {
|
|
2870
|
+
constructor();
|
|
2871
|
+
Sort(): void;
|
|
2872
|
+
HadHit(): boolean;
|
|
2873
|
+
get_mHits(): ArrayCollidePointResult;
|
|
2874
|
+
set_mHits(mHits: ArrayCollidePointResult): void;
|
|
2875
|
+
mHits: ArrayCollidePointResult;
|
|
2876
|
+
}
|
|
2877
|
+
class CollidePointClosestHitCollisionCollector extends CollidePointCollector {
|
|
2878
|
+
constructor();
|
|
2879
|
+
HadHit(): boolean;
|
|
2880
|
+
get_mHit(): CollidePointResult;
|
|
2881
|
+
set_mHit(mHit: CollidePointResult): void;
|
|
2882
|
+
mHit: CollidePointResult;
|
|
2883
|
+
}
|
|
2884
|
+
class CollidePointAnyHitCollisionCollector extends CollidePointCollector {
|
|
2885
|
+
constructor();
|
|
2886
|
+
HadHit(): boolean;
|
|
2887
|
+
get_mHit(): CollidePointResult;
|
|
2888
|
+
set_mHit(mHit: CollidePointResult): void;
|
|
2889
|
+
mHit: CollidePointResult;
|
|
2890
|
+
}
|
|
2891
|
+
class CollideSettingsBase {
|
|
2892
|
+
get_mActiveEdgeMode(): EActiveEdgeMode;
|
|
2893
|
+
set_mActiveEdgeMode(mActiveEdgeMode: EActiveEdgeMode): void;
|
|
2894
|
+
mActiveEdgeMode: EActiveEdgeMode;
|
|
2895
|
+
get_mCollectFacesMode(): ECollectFacesMode;
|
|
2896
|
+
set_mCollectFacesMode(mCollectFacesMode: ECollectFacesMode): void;
|
|
2897
|
+
mCollectFacesMode: ECollectFacesMode;
|
|
2898
|
+
get_mCollisionTolerance(): number;
|
|
2899
|
+
set_mCollisionTolerance(mCollisionTolerance: number): void;
|
|
2900
|
+
mCollisionTolerance: number;
|
|
2901
|
+
get_mPenetrationTolerance(): number;
|
|
2902
|
+
set_mPenetrationTolerance(mPenetrationTolerance: number): void;
|
|
2903
|
+
mPenetrationTolerance: number;
|
|
2904
|
+
get_mActiveEdgeMovementDirection(): Vec3;
|
|
2905
|
+
set_mActiveEdgeMovementDirection(mActiveEdgeMovementDirection: Vec3): void;
|
|
2906
|
+
mActiveEdgeMovementDirection: Vec3;
|
|
2907
|
+
}
|
|
2908
|
+
class CollideShapeSettings extends CollideSettingsBase {
|
|
2909
|
+
constructor();
|
|
2910
|
+
get_mMaxSeparationDistance(): number;
|
|
2911
|
+
set_mMaxSeparationDistance(mMaxSeparationDistance: number): void;
|
|
2912
|
+
mMaxSeparationDistance: number;
|
|
2913
|
+
get_mBackFaceMode(): EBackFaceMode;
|
|
2914
|
+
set_mBackFaceMode(mBackFaceMode: EBackFaceMode): void;
|
|
2915
|
+
mBackFaceMode: EBackFaceMode;
|
|
2916
|
+
}
|
|
2917
|
+
class CollideShapeCollector {
|
|
2918
|
+
Reset(): void;
|
|
2919
|
+
SetContext(inContext: TransformedShape): void;
|
|
2920
|
+
GetContext(): TransformedShape;
|
|
2921
|
+
UpdateEarlyOutFraction(inFraction: number): void;
|
|
2922
|
+
ResetEarlyOutFraction(inFraction?: number): void;
|
|
2923
|
+
ForceEarlyOut(): void;
|
|
2924
|
+
ShouldEarlyOut(): boolean;
|
|
2925
|
+
GetEarlyOutFraction(): number;
|
|
2926
|
+
GetPositiveEarlyOutFraction(): number;
|
|
2927
|
+
}
|
|
2928
|
+
class CollideShapeCollectorJS extends CollideShapeCollector {
|
|
2929
|
+
constructor();
|
|
2930
|
+
Reset(): void;
|
|
2931
|
+
OnBody(inBody: number): void;
|
|
2932
|
+
AddHit(inResult: number): void;
|
|
2933
|
+
}
|
|
2934
|
+
class ArrayCollideShapeResult {
|
|
2935
|
+
empty(): boolean;
|
|
2936
|
+
size(): number;
|
|
2937
|
+
at(inIndex: number): CollideShapeResult;
|
|
2938
|
+
push_back(inValue: CollideShapeResult): void;
|
|
2939
|
+
reserve(inSize: number): void;
|
|
2940
|
+
resize(inSize: number): void;
|
|
2941
|
+
clear(): void;
|
|
2942
|
+
}
|
|
2943
|
+
class CollideShapeAllHitCollisionCollector extends CollideShapeCollector {
|
|
2944
|
+
constructor();
|
|
2945
|
+
Sort(): void;
|
|
2946
|
+
HadHit(): boolean;
|
|
2947
|
+
get_mHits(): ArrayCollideShapeResult;
|
|
2948
|
+
set_mHits(mHits: ArrayCollideShapeResult): void;
|
|
2949
|
+
mHits: ArrayCollideShapeResult;
|
|
2950
|
+
}
|
|
2951
|
+
class CollideShapeClosestHitCollisionCollector extends CollideShapeCollector {
|
|
2952
|
+
constructor();
|
|
2953
|
+
HadHit(): boolean;
|
|
2954
|
+
get_mHit(): CollideShapeResult;
|
|
2955
|
+
set_mHit(mHit: CollideShapeResult): void;
|
|
2956
|
+
mHit: CollideShapeResult;
|
|
2957
|
+
}
|
|
2958
|
+
class CollideShapeAnyHitCollisionCollector extends CollideShapeCollector {
|
|
2959
|
+
constructor();
|
|
2960
|
+
HadHit(): boolean;
|
|
2961
|
+
get_mHit(): CollideShapeResult;
|
|
2962
|
+
set_mHit(mHit: CollideShapeResult): void;
|
|
2963
|
+
mHit: CollideShapeResult;
|
|
2964
|
+
}
|
|
2965
|
+
class ShapeCastSettings extends CollideSettingsBase {
|
|
2966
|
+
constructor();
|
|
2967
|
+
get_mBackFaceModeTriangles(): EBackFaceMode;
|
|
2968
|
+
set_mBackFaceModeTriangles(mBackFaceModeTriangles: EBackFaceMode): void;
|
|
2969
|
+
mBackFaceModeTriangles: EBackFaceMode;
|
|
2970
|
+
get_mBackFaceModeConvex(): EBackFaceMode;
|
|
2971
|
+
set_mBackFaceModeConvex(mBackFaceModeConvex: EBackFaceMode): void;
|
|
2972
|
+
mBackFaceModeConvex: EBackFaceMode;
|
|
2973
|
+
get_mUseShrunkenShapeAndConvexRadius(): boolean;
|
|
2974
|
+
set_mUseShrunkenShapeAndConvexRadius(
|
|
2975
|
+
mUseShrunkenShapeAndConvexRadius: boolean
|
|
2976
|
+
): void;
|
|
2977
|
+
mUseShrunkenShapeAndConvexRadius: boolean;
|
|
2978
|
+
get_mReturnDeepestPoint(): boolean;
|
|
2979
|
+
set_mReturnDeepestPoint(mReturnDeepestPoint: boolean): void;
|
|
2980
|
+
mReturnDeepestPoint: boolean;
|
|
2981
|
+
}
|
|
2982
|
+
class ShapeCastResult extends CollideShapeResult {
|
|
2983
|
+
constructor();
|
|
2984
|
+
get_mFraction(): number;
|
|
2985
|
+
set_mFraction(mFraction: number): void;
|
|
2986
|
+
mFraction: number;
|
|
2987
|
+
get_mIsBackFaceHit(): boolean;
|
|
2988
|
+
set_mIsBackFaceHit(mIsBackFaceHit: boolean): void;
|
|
2989
|
+
mIsBackFaceHit: boolean;
|
|
2990
|
+
}
|
|
2991
|
+
class CastShapeCollector {
|
|
2992
|
+
Reset(): void;
|
|
2993
|
+
SetContext(inContext: TransformedShape): void;
|
|
2994
|
+
GetContext(): TransformedShape;
|
|
2995
|
+
UpdateEarlyOutFraction(inFraction: number): void;
|
|
2996
|
+
ResetEarlyOutFraction(inFraction?: number): void;
|
|
2997
|
+
ForceEarlyOut(): void;
|
|
2998
|
+
ShouldEarlyOut(): boolean;
|
|
2999
|
+
GetEarlyOutFraction(): number;
|
|
3000
|
+
GetPositiveEarlyOutFraction(): number;
|
|
3001
|
+
}
|
|
3002
|
+
class CastShapeCollectorJS extends CastShapeCollector {
|
|
3003
|
+
constructor();
|
|
3004
|
+
Reset(): void;
|
|
3005
|
+
OnBody(inBody: number): void;
|
|
3006
|
+
AddHit(inResult: number): void;
|
|
3007
|
+
}
|
|
3008
|
+
class ArrayShapeCastResult {
|
|
3009
|
+
empty(): boolean;
|
|
3010
|
+
size(): number;
|
|
3011
|
+
at(inIndex: number): ShapeCastResult;
|
|
3012
|
+
push_back(inValue: ShapeCastResult): void;
|
|
3013
|
+
reserve(inSize: number): void;
|
|
3014
|
+
resize(inSize: number): void;
|
|
3015
|
+
clear(): void;
|
|
3016
|
+
}
|
|
3017
|
+
class CastShapeAllHitCollisionCollector extends CastShapeCollector {
|
|
3018
|
+
constructor();
|
|
3019
|
+
Sort(): void;
|
|
3020
|
+
HadHit(): boolean;
|
|
3021
|
+
get_mHits(): ArrayShapeCastResult;
|
|
3022
|
+
set_mHits(mHits: ArrayShapeCastResult): void;
|
|
3023
|
+
mHits: ArrayShapeCastResult;
|
|
3024
|
+
}
|
|
3025
|
+
class CastShapeClosestHitCollisionCollector extends CastShapeCollector {
|
|
3026
|
+
constructor();
|
|
3027
|
+
HadHit(): boolean;
|
|
3028
|
+
get_mHit(): ShapeCastResult;
|
|
3029
|
+
set_mHit(mHit: ShapeCastResult): void;
|
|
3030
|
+
mHit: ShapeCastResult;
|
|
3031
|
+
}
|
|
3032
|
+
class CastShapeAnyHitCollisionCollector extends CastShapeCollector {
|
|
3033
|
+
constructor();
|
|
3034
|
+
HadHit(): boolean;
|
|
3035
|
+
get_mHit(): ShapeCastResult;
|
|
3036
|
+
set_mHit(mHit: ShapeCastResult): void;
|
|
3037
|
+
mHit: ShapeCastResult;
|
|
3038
|
+
}
|
|
3039
|
+
class TransformedShapeCollector {
|
|
3040
|
+
Reset(): void;
|
|
3041
|
+
SetContext(inContext: TransformedShape): void;
|
|
3042
|
+
GetContext(): TransformedShape;
|
|
3043
|
+
UpdateEarlyOutFraction(inFraction: number): void;
|
|
3044
|
+
ResetEarlyOutFraction(inFraction?: number): void;
|
|
3045
|
+
ForceEarlyOut(): void;
|
|
3046
|
+
ShouldEarlyOut(): boolean;
|
|
3047
|
+
GetEarlyOutFraction(): number;
|
|
3048
|
+
GetPositiveEarlyOutFraction(): number;
|
|
3049
|
+
}
|
|
3050
|
+
class TransformedShapeCollectorJS extends TransformedShapeCollector {
|
|
3051
|
+
constructor();
|
|
3052
|
+
Reset(): void;
|
|
3053
|
+
OnBody(inBody: number): void;
|
|
3054
|
+
AddHit(inResult: number): void;
|
|
3055
|
+
}
|
|
3056
|
+
class NarrowPhaseQuery {
|
|
3057
|
+
CastRay(
|
|
3058
|
+
inRay: RRayCast,
|
|
3059
|
+
inRayCastSettings: RayCastSettings,
|
|
3060
|
+
ioCollector: CastRayCollector,
|
|
3061
|
+
inBroadPhaseLayerFilter: BroadPhaseLayerFilter,
|
|
3062
|
+
inObjectLayerFilter: ObjectLayerFilter,
|
|
3063
|
+
inBodyFilter: BodyFilter,
|
|
3064
|
+
inShapeFilter: ShapeFilter
|
|
3065
|
+
): void;
|
|
3066
|
+
CollidePoint(
|
|
3067
|
+
inPoint: RVec3,
|
|
3068
|
+
ioCollector: CollidePointCollector,
|
|
3069
|
+
inBroadPhaseLayerFilter: BroadPhaseLayerFilter,
|
|
3070
|
+
inObjectLayerFilter: ObjectLayerFilter,
|
|
3071
|
+
inBodyFilter: BodyFilter,
|
|
3072
|
+
inShapeFilter: ShapeFilter
|
|
3073
|
+
): void;
|
|
3074
|
+
CollideShape(
|
|
3075
|
+
inShape: Shape,
|
|
3076
|
+
inShapeScale: Vec3,
|
|
3077
|
+
inCenterOfMassTransform: RMat44,
|
|
3078
|
+
inCollideShapeSettings: CollideShapeSettings,
|
|
3079
|
+
inBaseOffset: RVec3,
|
|
3080
|
+
ioCollector: CollideShapeCollector,
|
|
3081
|
+
inBroadPhaseLayerFilter: BroadPhaseLayerFilter,
|
|
3082
|
+
inObjectLayerFilter: ObjectLayerFilter,
|
|
3083
|
+
inBodyFilter: BodyFilter,
|
|
3084
|
+
inShapeFilter: ShapeFilter
|
|
3085
|
+
): void;
|
|
3086
|
+
CastShape(
|
|
3087
|
+
inShapeCast: RShapeCast,
|
|
3088
|
+
inShapeCastSettings: ShapeCastSettings,
|
|
3089
|
+
inBaseOffset: RVec3,
|
|
3090
|
+
ioCollector: CastShapeCollector,
|
|
3091
|
+
inBroadPhaseLayerFilter: BroadPhaseLayerFilter,
|
|
3092
|
+
inObjectLayerFilter: ObjectLayerFilter,
|
|
3093
|
+
inBodyFilter: BodyFilter,
|
|
3094
|
+
inShapeFilter: ShapeFilter
|
|
3095
|
+
): void;
|
|
3096
|
+
CollectTransformedShapes(
|
|
3097
|
+
inBox: AABox,
|
|
3098
|
+
ioCollector: TransformedShapeCollector,
|
|
3099
|
+
inBroadPhaseLayerFilter: BroadPhaseLayerFilter,
|
|
3100
|
+
inObjectLayerFilter: ObjectLayerFilter,
|
|
3101
|
+
inBodyFilter: BodyFilter,
|
|
3102
|
+
inShapeFilter: ShapeFilter
|
|
3103
|
+
): void;
|
|
3104
|
+
}
|
|
3105
|
+
class PhysicsStepListenerContext {
|
|
3106
|
+
get_mDeltaTime(): number;
|
|
3107
|
+
set_mDeltaTime(mDeltaTime: number): void;
|
|
3108
|
+
mDeltaTime: number;
|
|
3109
|
+
get_mIsFirstStep(): boolean;
|
|
3110
|
+
set_mIsFirstStep(mIsFirstStep: boolean): void;
|
|
3111
|
+
mIsFirstStep: boolean;
|
|
3112
|
+
get_mIsLastStep(): boolean;
|
|
3113
|
+
set_mIsLastStep(mIsLastStep: boolean): void;
|
|
3114
|
+
mIsLastStep: boolean;
|
|
3115
|
+
get_mPhysicsSystem(): PhysicsSystem;
|
|
3116
|
+
set_mPhysicsSystem(mPhysicsSystem: PhysicsSystem): void;
|
|
3117
|
+
mPhysicsSystem: PhysicsSystem;
|
|
3118
|
+
}
|
|
3119
|
+
class PhysicsStepListener {}
|
|
3120
|
+
class PhysicsStepListenerJS extends PhysicsStepListener {
|
|
3121
|
+
constructor();
|
|
3122
|
+
OnStep(inContext: number): void;
|
|
3123
|
+
}
|
|
3124
|
+
class BodyActivationListener {}
|
|
3125
|
+
class BodyActivationListenerJS extends BodyActivationListener {
|
|
3126
|
+
constructor();
|
|
3127
|
+
OnBodyActivated(inBodyID: number, inBodyUserData: number): void;
|
|
3128
|
+
OnBodyDeactivated(inBodyID: number, inBodyUserData: number): void;
|
|
3129
|
+
}
|
|
3130
|
+
class BodyIDVector {
|
|
3131
|
+
constructor();
|
|
3132
|
+
empty(): boolean;
|
|
3133
|
+
size(): number;
|
|
3134
|
+
at(inIndex: number): BodyID;
|
|
3135
|
+
push_back(inBodyID: BodyID): void;
|
|
3136
|
+
reserve(inSize: number): void;
|
|
3137
|
+
resize(inSize: number): void;
|
|
3138
|
+
clear(): void;
|
|
3139
|
+
}
|
|
3140
|
+
class PhysicsSystem {
|
|
3141
|
+
SetGravity(inGravity: Vec3): void;
|
|
3142
|
+
GetGravity(): Vec3;
|
|
3143
|
+
GetPhysicsSettings(): PhysicsSettings;
|
|
3144
|
+
SetPhysicsSettings(inPhysicsSettings: PhysicsSettings): void;
|
|
3145
|
+
GetNumBodies(): number;
|
|
3146
|
+
GetNumActiveBodies(inBodyType: EBodyType): number;
|
|
3147
|
+
GetMaxBodies(): number;
|
|
3148
|
+
GetBodies(outBodies: BodyIDVector): void;
|
|
3149
|
+
GetActiveBodies(inBodyType: EBodyType, outBodies: BodyIDVector): void;
|
|
3150
|
+
GetBounds(): AABox;
|
|
3151
|
+
AddConstraint(inConstraint: Constraint): void;
|
|
3152
|
+
RemoveConstraint(inConstraint: Constraint): void;
|
|
3153
|
+
SetContactListener(inListener: ContactListener): void;
|
|
3154
|
+
GetContactListener(): ContactListener;
|
|
3155
|
+
SetSoftBodyContactListener(inListener: SoftBodyContactListener): void;
|
|
3156
|
+
GetSoftBodyContactListener(): SoftBodyContactListener;
|
|
3157
|
+
OptimizeBroadPhase(): void;
|
|
3158
|
+
GetBodyInterface(): BodyInterface;
|
|
3159
|
+
GetBodyInterfaceNoLock(): BodyInterface;
|
|
3160
|
+
GetBodyLockInterfaceNoLock(): BodyLockInterfaceNoLock;
|
|
3161
|
+
GetBodyLockInterface(): BodyLockInterfaceLocking;
|
|
3162
|
+
GetBroadPhaseQuery(): BroadPhaseQuery;
|
|
3163
|
+
GetNarrowPhaseQuery(): NarrowPhaseQuery;
|
|
3164
|
+
GetNarrowPhaseQueryNoLock(): NarrowPhaseQuery;
|
|
3165
|
+
SaveState(
|
|
3166
|
+
inStream: StateRecorder,
|
|
3167
|
+
inState?: EStateRecorderState,
|
|
3168
|
+
inFilter?: StateRecorderFilter
|
|
3169
|
+
): void;
|
|
3170
|
+
RestoreState(
|
|
3171
|
+
inStream: StateRecorder,
|
|
3172
|
+
inFilter?: StateRecorderFilter
|
|
3173
|
+
): boolean;
|
|
3174
|
+
AddStepListener(inListener: PhysicsStepListener): void;
|
|
3175
|
+
RemoveStepListener(inListener: PhysicsStepListener): void;
|
|
3176
|
+
SetBodyActivationListener(inListener: BodyActivationListener): void;
|
|
3177
|
+
GetBodyActivationListener(): BodyActivationListener;
|
|
3178
|
+
WereBodiesInContact(inBodyID1: BodyID, inBodyID2: BodyID): boolean;
|
|
3179
|
+
}
|
|
3180
|
+
class MassProperties {
|
|
3181
|
+
constructor();
|
|
3182
|
+
SetMassAndInertiaOfSolidBox(inBoxSize: Vec3, inDensity: number): void;
|
|
3183
|
+
ScaleToMass(inMass: number): void;
|
|
3184
|
+
sGetEquivalentSolidBoxSize(inMass: number, inInertiaDiagonal: Vec3): Vec3;
|
|
3185
|
+
Rotate(inRotation: Mat44): void;
|
|
3186
|
+
Translate(inTranslation: Vec3): void;
|
|
3187
|
+
Scale(inScale: Vec3): void;
|
|
3188
|
+
get_mMass(): number;
|
|
3189
|
+
set_mMass(mMass: number): void;
|
|
3190
|
+
mMass: number;
|
|
3191
|
+
get_mInertia(): Mat44;
|
|
3192
|
+
set_mInertia(mInertia: Mat44): void;
|
|
3193
|
+
mInertia: Mat44;
|
|
3194
|
+
}
|
|
3195
|
+
class BodyCreationSettings {
|
|
3196
|
+
constructor();
|
|
3197
|
+
constructor(
|
|
3198
|
+
inShape: Shape,
|
|
3199
|
+
inPosition: RVec3,
|
|
3200
|
+
inRotation: Quat,
|
|
3201
|
+
inMotionType: EMotionType,
|
|
3202
|
+
inObjectLayer: number
|
|
3203
|
+
);
|
|
3204
|
+
GetShapeSettings(): ShapeSettings;
|
|
3205
|
+
SetShapeSettings(inShape: ShapeSettings): void;
|
|
3206
|
+
ConvertShapeSettings(): ShapeResult;
|
|
3207
|
+
GetShape(): Shape;
|
|
3208
|
+
SetShape(inShape: Shape): void;
|
|
3209
|
+
HasMassProperties(): boolean;
|
|
3210
|
+
GetMassProperties(): MassProperties;
|
|
3211
|
+
get_mPosition(): RVec3;
|
|
3212
|
+
set_mPosition(mPosition: RVec3): void;
|
|
3213
|
+
mPosition: RVec3;
|
|
3214
|
+
get_mRotation(): Quat;
|
|
3215
|
+
set_mRotation(mRotation: Quat): void;
|
|
3216
|
+
mRotation: Quat;
|
|
3217
|
+
get_mLinearVelocity(): Vec3;
|
|
3218
|
+
set_mLinearVelocity(mLinearVelocity: Vec3): void;
|
|
3219
|
+
mLinearVelocity: Vec3;
|
|
3220
|
+
get_mAngularVelocity(): Vec3;
|
|
3221
|
+
set_mAngularVelocity(mAngularVelocity: Vec3): void;
|
|
3222
|
+
mAngularVelocity: Vec3;
|
|
3223
|
+
get_mUserData(): number;
|
|
3224
|
+
set_mUserData(mUserData: number): void;
|
|
3225
|
+
mUserData: number;
|
|
3226
|
+
get_mObjectLayer(): number;
|
|
3227
|
+
set_mObjectLayer(mObjectLayer: number): void;
|
|
3228
|
+
mObjectLayer: number;
|
|
3229
|
+
get_mCollisionGroup(): CollisionGroup;
|
|
3230
|
+
set_mCollisionGroup(mCollisionGroup: CollisionGroup): void;
|
|
3231
|
+
mCollisionGroup: CollisionGroup;
|
|
3232
|
+
get_mMotionType(): EMotionType;
|
|
3233
|
+
set_mMotionType(mMotionType: EMotionType): void;
|
|
3234
|
+
mMotionType: EMotionType;
|
|
3235
|
+
get_mAllowedDOFs(): EAllowedDOFs;
|
|
3236
|
+
set_mAllowedDOFs(mAllowedDOFs: EAllowedDOFs): void;
|
|
3237
|
+
mAllowedDOFs: EAllowedDOFs;
|
|
3238
|
+
get_mAllowDynamicOrKinematic(): boolean;
|
|
3239
|
+
set_mAllowDynamicOrKinematic(mAllowDynamicOrKinematic: boolean): void;
|
|
3240
|
+
mAllowDynamicOrKinematic: boolean;
|
|
3241
|
+
get_mIsSensor(): boolean;
|
|
3242
|
+
set_mIsSensor(mIsSensor: boolean): void;
|
|
3243
|
+
mIsSensor: boolean;
|
|
3244
|
+
get_mUseManifoldReduction(): boolean;
|
|
3245
|
+
set_mUseManifoldReduction(mUseManifoldReduction: boolean): void;
|
|
3246
|
+
mUseManifoldReduction: boolean;
|
|
3247
|
+
get_mCollideKinematicVsNonDynamic(): boolean;
|
|
3248
|
+
set_mCollideKinematicVsNonDynamic(
|
|
3249
|
+
mCollideKinematicVsNonDynamic: boolean
|
|
3250
|
+
): void;
|
|
3251
|
+
mCollideKinematicVsNonDynamic: boolean;
|
|
3252
|
+
get_mApplyGyroscopicForce(): boolean;
|
|
3253
|
+
set_mApplyGyroscopicForce(mApplyGyroscopicForce: boolean): void;
|
|
3254
|
+
mApplyGyroscopicForce: boolean;
|
|
3255
|
+
get_mMotionQuality(): EMotionQuality;
|
|
3256
|
+
set_mMotionQuality(mMotionQuality: EMotionQuality): void;
|
|
3257
|
+
mMotionQuality: EMotionQuality;
|
|
3258
|
+
get_mEnhancedInternalEdgeRemoval(): boolean;
|
|
3259
|
+
set_mEnhancedInternalEdgeRemoval(
|
|
3260
|
+
mEnhancedInternalEdgeRemoval: boolean
|
|
3261
|
+
): void;
|
|
3262
|
+
mEnhancedInternalEdgeRemoval: boolean;
|
|
3263
|
+
get_mAllowSleeping(): boolean;
|
|
3264
|
+
set_mAllowSleeping(mAllowSleeping: boolean): void;
|
|
3265
|
+
mAllowSleeping: boolean;
|
|
3266
|
+
get_mFriction(): number;
|
|
3267
|
+
set_mFriction(mFriction: number): void;
|
|
3268
|
+
mFriction: number;
|
|
3269
|
+
get_mRestitution(): number;
|
|
3270
|
+
set_mRestitution(mRestitution: number): void;
|
|
3271
|
+
mRestitution: number;
|
|
3272
|
+
get_mLinearDamping(): number;
|
|
3273
|
+
set_mLinearDamping(mLinearDamping: number): void;
|
|
3274
|
+
mLinearDamping: number;
|
|
3275
|
+
get_mAngularDamping(): number;
|
|
3276
|
+
set_mAngularDamping(mAngularDamping: number): void;
|
|
3277
|
+
mAngularDamping: number;
|
|
3278
|
+
get_mMaxLinearVelocity(): number;
|
|
3279
|
+
set_mMaxLinearVelocity(mMaxLinearVelocity: number): void;
|
|
3280
|
+
mMaxLinearVelocity: number;
|
|
3281
|
+
get_mMaxAngularVelocity(): number;
|
|
3282
|
+
set_mMaxAngularVelocity(mMaxAngularVelocity: number): void;
|
|
3283
|
+
mMaxAngularVelocity: number;
|
|
3284
|
+
get_mGravityFactor(): number;
|
|
3285
|
+
set_mGravityFactor(mGravityFactor: number): void;
|
|
3286
|
+
mGravityFactor: number;
|
|
3287
|
+
get_mNumVelocityStepsOverride(): number;
|
|
3288
|
+
set_mNumVelocityStepsOverride(mNumVelocityStepsOverride: number): void;
|
|
3289
|
+
mNumVelocityStepsOverride: number;
|
|
3290
|
+
get_mNumPositionStepsOverride(): number;
|
|
3291
|
+
set_mNumPositionStepsOverride(mNumPositionStepsOverride: number): void;
|
|
3292
|
+
mNumPositionStepsOverride: number;
|
|
3293
|
+
get_mOverrideMassProperties(): EOverrideMassProperties;
|
|
3294
|
+
set_mOverrideMassProperties(
|
|
3295
|
+
mOverrideMassProperties: EOverrideMassProperties
|
|
3296
|
+
): void;
|
|
3297
|
+
mOverrideMassProperties: EOverrideMassProperties;
|
|
3298
|
+
get_mInertiaMultiplier(): number;
|
|
3299
|
+
set_mInertiaMultiplier(mInertiaMultiplier: number): void;
|
|
3300
|
+
mInertiaMultiplier: number;
|
|
3301
|
+
get_mMassPropertiesOverride(): MassProperties;
|
|
3302
|
+
set_mMassPropertiesOverride(mMassPropertiesOverride: MassProperties): void;
|
|
3303
|
+
mMassPropertiesOverride: MassProperties;
|
|
3304
|
+
}
|
|
3305
|
+
class SoftBodySharedSettingsVertex {
|
|
3306
|
+
constructor();
|
|
3307
|
+
get_mPosition(): Float3;
|
|
3308
|
+
set_mPosition(mPosition: Float3): void;
|
|
3309
|
+
mPosition: Float3;
|
|
3310
|
+
get_mVelocity(): Float3;
|
|
3311
|
+
set_mVelocity(mVelocity: Float3): void;
|
|
3312
|
+
mVelocity: Float3;
|
|
3313
|
+
get_mInvMass(): number;
|
|
3314
|
+
set_mInvMass(mInvMass: number): void;
|
|
3315
|
+
mInvMass: number;
|
|
3316
|
+
}
|
|
3317
|
+
class SoftBodySharedSettingsFace {
|
|
3318
|
+
constructor(
|
|
3319
|
+
inVertex1: number,
|
|
3320
|
+
inVertex2: number,
|
|
3321
|
+
inVertex3: number,
|
|
3322
|
+
inMaterialIndex: number
|
|
3323
|
+
);
|
|
3324
|
+
get_mVertex(index: number): number;
|
|
3325
|
+
set_mVertex(index: number, mVertex: number): void;
|
|
3326
|
+
mVertex: number;
|
|
3327
|
+
get_mMaterialIndex(): number;
|
|
3328
|
+
set_mMaterialIndex(mMaterialIndex: number): void;
|
|
3329
|
+
mMaterialIndex: number;
|
|
3330
|
+
}
|
|
3331
|
+
class SoftBodySharedSettingsEdge {
|
|
3332
|
+
constructor(inVertex1: number, inVertex2: number, inCompliance: number);
|
|
3333
|
+
get_mVertex(index: number): number;
|
|
3334
|
+
set_mVertex(index: number, mVertex: number): void;
|
|
3335
|
+
mVertex: number;
|
|
3336
|
+
get_mRestLength(): number;
|
|
3337
|
+
set_mRestLength(mRestLength: number): void;
|
|
3338
|
+
mRestLength: number;
|
|
3339
|
+
get_mCompliance(): number;
|
|
3340
|
+
set_mCompliance(mCompliance: number): void;
|
|
3341
|
+
mCompliance: number;
|
|
3342
|
+
}
|
|
3343
|
+
class SoftBodySharedSettingsDihedralBend {
|
|
3344
|
+
constructor(
|
|
3345
|
+
inVertex1: number,
|
|
3346
|
+
inVertex2: number,
|
|
3347
|
+
inVertex3: number,
|
|
3348
|
+
inVertex4: number,
|
|
3349
|
+
inCompliance: number
|
|
3350
|
+
);
|
|
3351
|
+
get_mVertex(index: number): number;
|
|
3352
|
+
set_mVertex(index: number, mVertex: number): void;
|
|
3353
|
+
mVertex: number;
|
|
3354
|
+
get_mCompliance(): number;
|
|
3355
|
+
set_mCompliance(mCompliance: number): void;
|
|
3356
|
+
mCompliance: number;
|
|
3357
|
+
get_mInitialAngle(): number;
|
|
3358
|
+
set_mInitialAngle(mInitialAngle: number): void;
|
|
3359
|
+
mInitialAngle: number;
|
|
3360
|
+
}
|
|
3361
|
+
class SoftBodySharedSettingsVolume {
|
|
3362
|
+
constructor(
|
|
3363
|
+
inVertex1: number,
|
|
3364
|
+
inVertex2: number,
|
|
3365
|
+
inVertex3: number,
|
|
3366
|
+
inVertex4: number,
|
|
3367
|
+
inCompliance: number
|
|
3368
|
+
);
|
|
3369
|
+
get_mVertex(index: number): number;
|
|
3370
|
+
set_mVertex(index: number, mVertex: number): void;
|
|
3371
|
+
mVertex: number;
|
|
3372
|
+
get_mSixRestVolume(): number;
|
|
3373
|
+
set_mSixRestVolume(mSixRestVolume: number): void;
|
|
3374
|
+
mSixRestVolume: number;
|
|
3375
|
+
get_mCompliance(): number;
|
|
3376
|
+
set_mCompliance(mCompliance: number): void;
|
|
3377
|
+
mCompliance: number;
|
|
3378
|
+
}
|
|
3379
|
+
class SoftBodySharedSettingsInvBind {
|
|
3380
|
+
get_mJointIndex(): number;
|
|
3381
|
+
set_mJointIndex(mJointIndex: number): void;
|
|
3382
|
+
mJointIndex: number;
|
|
3383
|
+
get_mInvBind(): Mat44;
|
|
3384
|
+
set_mInvBind(mInvBind: Mat44): void;
|
|
3385
|
+
mInvBind: Mat44;
|
|
3386
|
+
}
|
|
3387
|
+
class SoftBodySharedSettingsSkinWeight {
|
|
3388
|
+
get_mInvBindIndex(): number;
|
|
3389
|
+
set_mInvBindIndex(mInvBindIndex: number): void;
|
|
3390
|
+
mInvBindIndex: number;
|
|
3391
|
+
get_mWeight(): number;
|
|
3392
|
+
set_mWeight(mWeight: number): void;
|
|
3393
|
+
mWeight: number;
|
|
3394
|
+
}
|
|
3395
|
+
class SoftBodySharedSettingsSkinned {
|
|
3396
|
+
get_mVertex(): number;
|
|
3397
|
+
set_mVertex(mVertex: number): void;
|
|
3398
|
+
mVertex: number;
|
|
3399
|
+
get_mWeights(index: number): SoftBodySharedSettingsSkinWeight;
|
|
3400
|
+
set_mWeights(
|
|
3401
|
+
index: number,
|
|
3402
|
+
mWeights: SoftBodySharedSettingsSkinWeight
|
|
3403
|
+
): void;
|
|
3404
|
+
mWeights: SoftBodySharedSettingsSkinWeight;
|
|
3405
|
+
get_mMaxDistance(): number;
|
|
3406
|
+
set_mMaxDistance(mMaxDistance: number): void;
|
|
3407
|
+
mMaxDistance: number;
|
|
3408
|
+
get_mBackStopDistance(): number;
|
|
3409
|
+
set_mBackStopDistance(mBackStopDistance: number): void;
|
|
3410
|
+
mBackStopDistance: number;
|
|
3411
|
+
get_mBackStopRadius(): number;
|
|
3412
|
+
set_mBackStopRadius(mBackStopRadius: number): void;
|
|
3413
|
+
mBackStopRadius: number;
|
|
3414
|
+
}
|
|
3415
|
+
class SoftBodySharedSettingsLRA {
|
|
3416
|
+
constructor(inVertex1: number, inVertex2: number, inMaxDistance: number);
|
|
3417
|
+
get_mVertex(index: number): number;
|
|
3418
|
+
set_mVertex(index: number, mVertex: number): void;
|
|
3419
|
+
mVertex: number;
|
|
3420
|
+
get_mMaxDistance(): number;
|
|
3421
|
+
set_mMaxDistance(mMaxDistance: number): void;
|
|
3422
|
+
mMaxDistance: number;
|
|
3423
|
+
}
|
|
3424
|
+
class ArraySoftBodySharedSettingsVertex {
|
|
3425
|
+
empty(): boolean;
|
|
3426
|
+
size(): number;
|
|
3427
|
+
at(inIndex: number): SoftBodySharedSettingsVertex;
|
|
3428
|
+
push_back(inValue: SoftBodySharedSettingsVertex): void;
|
|
3429
|
+
reserve(inSize: number): void;
|
|
3430
|
+
resize(inSize: number): void;
|
|
3431
|
+
clear(): void;
|
|
3432
|
+
}
|
|
3433
|
+
class ArraySoftBodySharedSettingsFace {
|
|
3434
|
+
empty(): boolean;
|
|
3435
|
+
size(): number;
|
|
3436
|
+
at(inIndex: number): SoftBodySharedSettingsFace;
|
|
3437
|
+
push_back(inValue: SoftBodySharedSettingsFace): void;
|
|
3438
|
+
reserve(inSize: number): void;
|
|
3439
|
+
resize(inSize: number): void;
|
|
3440
|
+
clear(): void;
|
|
3441
|
+
}
|
|
3442
|
+
class ArraySoftBodySharedSettingsEdge {
|
|
3443
|
+
empty(): boolean;
|
|
3444
|
+
size(): number;
|
|
3445
|
+
at(inIndex: number): SoftBodySharedSettingsEdge;
|
|
3446
|
+
push_back(inValue: SoftBodySharedSettingsEdge): void;
|
|
3447
|
+
reserve(inSize: number): void;
|
|
3448
|
+
resize(inSize: number): void;
|
|
3449
|
+
clear(): void;
|
|
3450
|
+
}
|
|
3451
|
+
class ArraySoftBodySharedSettingsDihedralBend {
|
|
3452
|
+
empty(): boolean;
|
|
3453
|
+
size(): number;
|
|
3454
|
+
at(inIndex: number): SoftBodySharedSettingsDihedralBend;
|
|
3455
|
+
push_back(inValue: SoftBodySharedSettingsDihedralBend): void;
|
|
3456
|
+
reserve(inSize: number): void;
|
|
3457
|
+
resize(inSize: number): void;
|
|
3458
|
+
clear(): void;
|
|
3459
|
+
}
|
|
3460
|
+
class ArraySoftBodySharedSettingsVolume {
|
|
3461
|
+
empty(): boolean;
|
|
3462
|
+
size(): number;
|
|
3463
|
+
at(inIndex: number): SoftBodySharedSettingsVolume;
|
|
3464
|
+
push_back(inValue: SoftBodySharedSettingsVolume): void;
|
|
3465
|
+
reserve(inSize: number): void;
|
|
3466
|
+
resize(inSize: number): void;
|
|
3467
|
+
clear(): void;
|
|
3468
|
+
}
|
|
3469
|
+
class ArraySoftBodySharedSettingsInvBind {
|
|
3470
|
+
empty(): boolean;
|
|
3471
|
+
size(): number;
|
|
3472
|
+
at(inIndex: number): SoftBodySharedSettingsInvBind;
|
|
3473
|
+
push_back(inValue: SoftBodySharedSettingsInvBind): void;
|
|
3474
|
+
reserve(inSize: number): void;
|
|
3475
|
+
resize(inSize: number): void;
|
|
3476
|
+
clear(): void;
|
|
3477
|
+
}
|
|
3478
|
+
class ArraySoftBodySharedSettingsSkinned {
|
|
3479
|
+
empty(): boolean;
|
|
3480
|
+
size(): number;
|
|
3481
|
+
at(inIndex: number): SoftBodySharedSettingsSkinned;
|
|
3482
|
+
push_back(inValue: SoftBodySharedSettingsSkinned): void;
|
|
3483
|
+
reserve(inSize: number): void;
|
|
3484
|
+
resize(inSize: number): void;
|
|
3485
|
+
clear(): void;
|
|
3486
|
+
}
|
|
3487
|
+
class ArraySoftBodySharedSettingsLRA {
|
|
3488
|
+
empty(): boolean;
|
|
3489
|
+
size(): number;
|
|
3490
|
+
at(inIndex: number): SoftBodySharedSettingsLRA;
|
|
3491
|
+
push_back(inValue: SoftBodySharedSettingsLRA): void;
|
|
3492
|
+
reserve(inSize: number): void;
|
|
3493
|
+
resize(inSize: number): void;
|
|
3494
|
+
clear(): void;
|
|
3495
|
+
}
|
|
3496
|
+
class SoftBodySharedSettingsVertexAttributes {
|
|
3497
|
+
constructor();
|
|
3498
|
+
get_mCompliance(): number;
|
|
3499
|
+
set_mCompliance(mCompliance: number): void;
|
|
3500
|
+
mCompliance: number;
|
|
3501
|
+
get_mShearCompliance(): number;
|
|
3502
|
+
set_mShearCompliance(mShearCompliance: number): void;
|
|
3503
|
+
mShearCompliance: number;
|
|
3504
|
+
get_mBendCompliance(): number;
|
|
3505
|
+
set_mBendCompliance(mBendCompliance: number): void;
|
|
3506
|
+
mBendCompliance: number;
|
|
3507
|
+
get_mLRAType(): SoftBodySharedSettings_ELRAType;
|
|
3508
|
+
set_mLRAType(mLRAType: SoftBodySharedSettings_ELRAType): void;
|
|
3509
|
+
mLRAType: SoftBodySharedSettings_ELRAType;
|
|
3510
|
+
get_mLRAMaxDistanceMultiplier(): number;
|
|
3511
|
+
set_mLRAMaxDistanceMultiplier(mLRAMaxDistanceMultiplier: number): void;
|
|
3512
|
+
mLRAMaxDistanceMultiplier: number;
|
|
3513
|
+
}
|
|
3514
|
+
class ArraySoftBodySharedSettingsVertexAttributes {
|
|
3515
|
+
empty(): boolean;
|
|
3516
|
+
size(): number;
|
|
3517
|
+
at(inIndex: number): SoftBodySharedSettingsVertexAttributes;
|
|
3518
|
+
push_back(inValue: SoftBodySharedSettingsVertexAttributes): void;
|
|
3519
|
+
reserve(inSize: number): void;
|
|
3520
|
+
resize(inSize: number): void;
|
|
3521
|
+
clear(): void;
|
|
3522
|
+
data(): SoftBodySharedSettingsVertexAttributes;
|
|
3523
|
+
}
|
|
3524
|
+
class SoftBodySharedSettings {
|
|
3525
|
+
constructor();
|
|
3526
|
+
GetRefCount(): number;
|
|
3527
|
+
AddRef(): void;
|
|
3528
|
+
Release(): void;
|
|
3529
|
+
CreateConstraints(
|
|
3530
|
+
inVertexAttributes: SoftBodySharedSettingsVertexAttributes,
|
|
3531
|
+
inVertexAttributesLength: number,
|
|
3532
|
+
inBendType?: SoftBodySharedSettings_EBendType,
|
|
3533
|
+
inAngleTolerance?: number
|
|
3534
|
+
): void;
|
|
3535
|
+
AddFace(inFace: SoftBodySharedSettingsFace): void;
|
|
3536
|
+
CalculateEdgeLengths(): void;
|
|
3537
|
+
CalculateLRALengths(): void;
|
|
3538
|
+
CalculateBendConstraintConstants(): void;
|
|
3539
|
+
CalculateVolumeConstraintVolumes(): void;
|
|
3540
|
+
CalculateSkinnedConstraintNormals(): void;
|
|
3541
|
+
Optimize(): void;
|
|
3542
|
+
Clone(): SoftBodySharedSettings;
|
|
3543
|
+
get_mVertices(): ArraySoftBodySharedSettingsVertex;
|
|
3544
|
+
set_mVertices(mVertices: ArraySoftBodySharedSettingsVertex): void;
|
|
3545
|
+
mVertices: ArraySoftBodySharedSettingsVertex;
|
|
3546
|
+
get_mFaces(): ArraySoftBodySharedSettingsFace;
|
|
3547
|
+
set_mFaces(mFaces: ArraySoftBodySharedSettingsFace): void;
|
|
3548
|
+
mFaces: ArraySoftBodySharedSettingsFace;
|
|
3549
|
+
get_mEdgeConstraints(): ArraySoftBodySharedSettingsEdge;
|
|
3550
|
+
set_mEdgeConstraints(
|
|
3551
|
+
mEdgeConstraints: ArraySoftBodySharedSettingsEdge
|
|
3552
|
+
): void;
|
|
3553
|
+
mEdgeConstraints: ArraySoftBodySharedSettingsEdge;
|
|
3554
|
+
get_mDihedralBendConstraints(): ArraySoftBodySharedSettingsDihedralBend;
|
|
3555
|
+
set_mDihedralBendConstraints(
|
|
3556
|
+
mDihedralBendConstraints: ArraySoftBodySharedSettingsDihedralBend
|
|
3557
|
+
): void;
|
|
3558
|
+
mDihedralBendConstraints: ArraySoftBodySharedSettingsDihedralBend;
|
|
3559
|
+
get_mVolumeConstraints(): ArraySoftBodySharedSettingsVolume;
|
|
3560
|
+
set_mVolumeConstraints(
|
|
3561
|
+
mVolumeConstraints: ArraySoftBodySharedSettingsVolume
|
|
3562
|
+
): void;
|
|
3563
|
+
mVolumeConstraints: ArraySoftBodySharedSettingsVolume;
|
|
3564
|
+
get_mSkinnedConstraints(): ArraySoftBodySharedSettingsSkinned;
|
|
3565
|
+
set_mSkinnedConstraints(
|
|
3566
|
+
mSkinnedConstraints: ArraySoftBodySharedSettingsSkinned
|
|
3567
|
+
): void;
|
|
3568
|
+
mSkinnedConstraints: ArraySoftBodySharedSettingsSkinned;
|
|
3569
|
+
get_mInvBindMatrices(): ArraySoftBodySharedSettingsInvBind;
|
|
3570
|
+
set_mInvBindMatrices(
|
|
3571
|
+
mInvBindMatrices: ArraySoftBodySharedSettingsInvBind
|
|
3572
|
+
): void;
|
|
3573
|
+
mInvBindMatrices: ArraySoftBodySharedSettingsInvBind;
|
|
3574
|
+
get_mLRAConstraints(): ArraySoftBodySharedSettingsLRA;
|
|
3575
|
+
set_mLRAConstraints(mLRAConstraints: ArraySoftBodySharedSettingsLRA): void;
|
|
3576
|
+
mLRAConstraints: ArraySoftBodySharedSettingsLRA;
|
|
3577
|
+
get_mMaterials(): PhysicsMaterialList;
|
|
3578
|
+
set_mMaterials(mMaterials: PhysicsMaterialList): void;
|
|
3579
|
+
mMaterials: PhysicsMaterialList;
|
|
3580
|
+
get_mVertexRadius(): number;
|
|
3581
|
+
set_mVertexRadius(mVertexRadius: number): void;
|
|
3582
|
+
mVertexRadius: number;
|
|
3583
|
+
}
|
|
3584
|
+
class SoftBodyCreationSettings {
|
|
3585
|
+
constructor(
|
|
3586
|
+
inSettings: SoftBodySharedSettings,
|
|
3587
|
+
inPosition: RVec3,
|
|
3588
|
+
inRotation: Quat,
|
|
3589
|
+
inObjectLayer: number
|
|
3590
|
+
);
|
|
3591
|
+
get_mPosition(): RVec3;
|
|
3592
|
+
set_mPosition(mPosition: RVec3): void;
|
|
3593
|
+
mPosition: RVec3;
|
|
3594
|
+
get_mRotation(): Quat;
|
|
3595
|
+
set_mRotation(mRotation: Quat): void;
|
|
3596
|
+
mRotation: Quat;
|
|
3597
|
+
get_mUserData(): number;
|
|
3598
|
+
set_mUserData(mUserData: number): void;
|
|
3599
|
+
mUserData: number;
|
|
3600
|
+
get_mObjectLayer(): number;
|
|
3601
|
+
set_mObjectLayer(mObjectLayer: number): void;
|
|
3602
|
+
mObjectLayer: number;
|
|
3603
|
+
get_mCollisionGroup(): CollisionGroup;
|
|
3604
|
+
set_mCollisionGroup(mCollisionGroup: CollisionGroup): void;
|
|
3605
|
+
mCollisionGroup: CollisionGroup;
|
|
3606
|
+
get_mNumIterations(): number;
|
|
3607
|
+
set_mNumIterations(mNumIterations: number): void;
|
|
3608
|
+
mNumIterations: number;
|
|
3609
|
+
get_mLinearDamping(): number;
|
|
3610
|
+
set_mLinearDamping(mLinearDamping: number): void;
|
|
3611
|
+
mLinearDamping: number;
|
|
3612
|
+
get_mMaxLinearVelocity(): number;
|
|
3613
|
+
set_mMaxLinearVelocity(mMaxLinearVelocity: number): void;
|
|
3614
|
+
mMaxLinearVelocity: number;
|
|
3615
|
+
get_mRestitution(): number;
|
|
3616
|
+
set_mRestitution(mRestitution: number): void;
|
|
3617
|
+
mRestitution: number;
|
|
3618
|
+
get_mFriction(): number;
|
|
3619
|
+
set_mFriction(mFriction: number): void;
|
|
3620
|
+
mFriction: number;
|
|
3621
|
+
get_mPressure(): number;
|
|
3622
|
+
set_mPressure(mPressure: number): void;
|
|
3623
|
+
mPressure: number;
|
|
3624
|
+
get_mGravityFactor(): number;
|
|
3625
|
+
set_mGravityFactor(mGravityFactor: number): void;
|
|
3626
|
+
mGravityFactor: number;
|
|
3627
|
+
get_mUpdatePosition(): boolean;
|
|
3628
|
+
set_mUpdatePosition(mUpdatePosition: boolean): void;
|
|
3629
|
+
mUpdatePosition: boolean;
|
|
3630
|
+
get_mMakeRotationIdentity(): boolean;
|
|
3631
|
+
set_mMakeRotationIdentity(mMakeRotationIdentity: boolean): void;
|
|
3632
|
+
mMakeRotationIdentity: boolean;
|
|
3633
|
+
get_mAllowSleeping(): boolean;
|
|
3634
|
+
set_mAllowSleeping(mAllowSleeping: boolean): void;
|
|
3635
|
+
mAllowSleeping: boolean;
|
|
3636
|
+
}
|
|
3637
|
+
class SoftBodyVertex {
|
|
3638
|
+
get_mPreviousPosition(): Vec3;
|
|
3639
|
+
set_mPreviousPosition(mPreviousPosition: Vec3): void;
|
|
3640
|
+
mPreviousPosition: Vec3;
|
|
3641
|
+
get_mPosition(): Vec3;
|
|
3642
|
+
set_mPosition(mPosition: Vec3): void;
|
|
3643
|
+
mPosition: Vec3;
|
|
3644
|
+
get_mVelocity(): Vec3;
|
|
3645
|
+
set_mVelocity(mVelocity: Vec3): void;
|
|
3646
|
+
mVelocity: Vec3;
|
|
3647
|
+
get_mInvMass(): number;
|
|
3648
|
+
set_mInvMass(mInvMass: number): void;
|
|
3649
|
+
mInvMass: number;
|
|
3650
|
+
}
|
|
3651
|
+
class SoftBodyVertexTraits {
|
|
3652
|
+
get_mPreviousPositionOffset(): number;
|
|
3653
|
+
set_mPreviousPositionOffset(mPreviousPositionOffset: number): void;
|
|
3654
|
+
readonly mPreviousPositionOffset: number;
|
|
3655
|
+
get_mPositionOffset(): number;
|
|
3656
|
+
set_mPositionOffset(mPositionOffset: number): void;
|
|
3657
|
+
readonly mPositionOffset: number;
|
|
3658
|
+
get_mVelocityOffset(): number;
|
|
3659
|
+
set_mVelocityOffset(mVelocityOffset: number): void;
|
|
3660
|
+
readonly mVelocityOffset: number;
|
|
3661
|
+
}
|
|
3662
|
+
class ArraySoftBodyVertex {
|
|
3663
|
+
empty(): boolean;
|
|
3664
|
+
size(): number;
|
|
3665
|
+
at(inIndex: number): SoftBodyVertex;
|
|
3666
|
+
push_back(inValue: SoftBodyVertex): void;
|
|
3667
|
+
reserve(inSize: number): void;
|
|
3668
|
+
resize(inSize: number): void;
|
|
3669
|
+
clear(): void;
|
|
3670
|
+
}
|
|
3671
|
+
class SoftBodyMotionProperties extends MotionProperties {
|
|
3672
|
+
GetSettings(): SoftBodySharedSettings;
|
|
3673
|
+
GetVertices(): ArraySoftBodyVertex;
|
|
3674
|
+
GetVertex(inIndex: number): SoftBodyVertex;
|
|
3675
|
+
GetMaterials(): PhysicsMaterialList;
|
|
3676
|
+
GetFaces(): ArraySoftBodySharedSettingsFace;
|
|
3677
|
+
GetFace(inIndex: number): SoftBodySharedSettingsFace;
|
|
3678
|
+
GetNumIterations(): number;
|
|
3679
|
+
SetNumIterations(inNumIterations: number): void;
|
|
3680
|
+
GetPressure(): number;
|
|
3681
|
+
SetPressure(inPressure: number): void;
|
|
3682
|
+
GetUpdatePosition(): boolean;
|
|
3683
|
+
SetUpdatePosition(inUpdatePosition: boolean): void;
|
|
3684
|
+
GetEnableSkinConstraints(): boolean;
|
|
3685
|
+
SetEnableSkinConstraints(inEnableSkinConstraints: boolean): void;
|
|
3686
|
+
GetSkinnedMaxDistanceMultiplier(): number;
|
|
3687
|
+
SetSkinnedMaxDistanceMultiplier(
|
|
3688
|
+
inSkinnedMaxDistanceMultiplier: number
|
|
3689
|
+
): void;
|
|
3690
|
+
GetLocalBounds(): AABox;
|
|
3691
|
+
CustomUpdate(
|
|
3692
|
+
inDeltaTime: number,
|
|
3693
|
+
ioSoftBody: Body,
|
|
3694
|
+
inSystem: PhysicsSystem
|
|
3695
|
+
): void;
|
|
3696
|
+
SkinVertices(
|
|
3697
|
+
inRootTransform: RMat44,
|
|
3698
|
+
inJointMatrices: Mat44MemRef,
|
|
3699
|
+
inNumJoints: number,
|
|
3700
|
+
inHardSkinAll: boolean,
|
|
3701
|
+
ioTempAllocator: TempAllocator
|
|
3702
|
+
): void;
|
|
3703
|
+
}
|
|
3704
|
+
class SoftBodyShape extends Shape {
|
|
3705
|
+
GetSubShapeIDBits(): number;
|
|
3706
|
+
GetFaceIndex(inSubShapeID: SubShapeID): number;
|
|
3707
|
+
}
|
|
3708
|
+
class CharacterBaseSettings {
|
|
3709
|
+
GetRefCount(): number;
|
|
3710
|
+
AddRef(): void;
|
|
3711
|
+
Release(): void;
|
|
3712
|
+
get_mUp(): Vec3;
|
|
3713
|
+
set_mUp(mUp: Vec3): void;
|
|
3714
|
+
mUp: Vec3;
|
|
3715
|
+
get_mSupportingVolume(): Plane;
|
|
3716
|
+
set_mSupportingVolume(mSupportingVolume: Plane): void;
|
|
3717
|
+
mSupportingVolume: Plane;
|
|
3718
|
+
get_mMaxSlopeAngle(): number;
|
|
3719
|
+
set_mMaxSlopeAngle(mMaxSlopeAngle: number): void;
|
|
3720
|
+
mMaxSlopeAngle: number;
|
|
3721
|
+
get_mEnhancedInternalEdgeRemoval(): boolean;
|
|
3722
|
+
set_mEnhancedInternalEdgeRemoval(
|
|
3723
|
+
mEnhancedInternalEdgeRemoval: boolean
|
|
3724
|
+
): void;
|
|
3725
|
+
mEnhancedInternalEdgeRemoval: boolean;
|
|
3726
|
+
get_mShape(): Shape;
|
|
3727
|
+
set_mShape(mShape: Shape): void;
|
|
3728
|
+
mShape: Shape;
|
|
3729
|
+
}
|
|
3730
|
+
class CharacterVirtualSettings extends CharacterBaseSettings {
|
|
3731
|
+
constructor();
|
|
3732
|
+
get_mMass(): number;
|
|
3733
|
+
set_mMass(mMass: number): void;
|
|
3734
|
+
mMass: number;
|
|
3735
|
+
get_mMaxStrength(): number;
|
|
3736
|
+
set_mMaxStrength(mMaxStrength: number): void;
|
|
3737
|
+
mMaxStrength: number;
|
|
3738
|
+
get_mShapeOffset(): Vec3;
|
|
3739
|
+
set_mShapeOffset(mShapeOffset: Vec3): void;
|
|
3740
|
+
mShapeOffset: Vec3;
|
|
3741
|
+
get_mBackFaceMode(): EBackFaceMode;
|
|
3742
|
+
set_mBackFaceMode(mBackFaceMode: EBackFaceMode): void;
|
|
3743
|
+
mBackFaceMode: EBackFaceMode;
|
|
3744
|
+
get_mPredictiveContactDistance(): number;
|
|
3745
|
+
set_mPredictiveContactDistance(mPredictiveContactDistance: number): void;
|
|
3746
|
+
mPredictiveContactDistance: number;
|
|
3747
|
+
get_mMaxCollisionIterations(): number;
|
|
3748
|
+
set_mMaxCollisionIterations(mMaxCollisionIterations: number): void;
|
|
3749
|
+
mMaxCollisionIterations: number;
|
|
3750
|
+
get_mMaxConstraintIterations(): number;
|
|
3751
|
+
set_mMaxConstraintIterations(mMaxConstraintIterations: number): void;
|
|
3752
|
+
mMaxConstraintIterations: number;
|
|
3753
|
+
get_mMinTimeRemaining(): number;
|
|
3754
|
+
set_mMinTimeRemaining(mMinTimeRemaining: number): void;
|
|
3755
|
+
mMinTimeRemaining: number;
|
|
3756
|
+
get_mCollisionTolerance(): number;
|
|
3757
|
+
set_mCollisionTolerance(mCollisionTolerance: number): void;
|
|
3758
|
+
mCollisionTolerance: number;
|
|
3759
|
+
get_mCharacterPadding(): number;
|
|
3760
|
+
set_mCharacterPadding(mCharacterPadding: number): void;
|
|
3761
|
+
mCharacterPadding: number;
|
|
3762
|
+
get_mMaxNumHits(): number;
|
|
3763
|
+
set_mMaxNumHits(mMaxNumHits: number): void;
|
|
3764
|
+
mMaxNumHits: number;
|
|
3765
|
+
get_mHitReductionCosMaxAngle(): number;
|
|
3766
|
+
set_mHitReductionCosMaxAngle(mHitReductionCosMaxAngle: number): void;
|
|
3767
|
+
mHitReductionCosMaxAngle: number;
|
|
3768
|
+
get_mPenetrationRecoverySpeed(): number;
|
|
3769
|
+
set_mPenetrationRecoverySpeed(mPenetrationRecoverySpeed: number): void;
|
|
3770
|
+
mPenetrationRecoverySpeed: number;
|
|
3771
|
+
get_mInnerBodyShape(): Shape;
|
|
3772
|
+
set_mInnerBodyShape(mInnerBodyShape: Shape): void;
|
|
3773
|
+
mInnerBodyShape: Shape;
|
|
3774
|
+
get_mInnerBodyLayer(): number;
|
|
3775
|
+
set_mInnerBodyLayer(mInnerBodyLayer: number): void;
|
|
3776
|
+
mInnerBodyLayer: number;
|
|
3777
|
+
}
|
|
3778
|
+
class CharacterContactSettings {
|
|
3779
|
+
constructor();
|
|
3780
|
+
get_mCanPushCharacter(): boolean;
|
|
3781
|
+
set_mCanPushCharacter(mCanPushCharacter: boolean): void;
|
|
3782
|
+
mCanPushCharacter: boolean;
|
|
3783
|
+
get_mCanReceiveImpulses(): boolean;
|
|
3784
|
+
set_mCanReceiveImpulses(mCanReceiveImpulses: boolean): void;
|
|
3785
|
+
mCanReceiveImpulses: boolean;
|
|
3786
|
+
}
|
|
3787
|
+
class CharacterContactListener {}
|
|
3788
|
+
class CharacterContactListenerEm extends CharacterContactListener {}
|
|
3789
|
+
class CharacterContactListenerJS extends CharacterContactListenerEm {
|
|
3790
|
+
constructor();
|
|
3791
|
+
OnAdjustBodyVelocity(
|
|
3792
|
+
inCharacter: number,
|
|
3793
|
+
inBody2: number,
|
|
3794
|
+
ioLinearVelocity: number,
|
|
3795
|
+
ioAngularVelocity: number
|
|
3796
|
+
): void;
|
|
3797
|
+
OnContactValidate(
|
|
3798
|
+
inCharacter: number,
|
|
3799
|
+
inBodyID2: number,
|
|
3800
|
+
inSubShapeID2: number
|
|
3801
|
+
): boolean;
|
|
3802
|
+
OnCharacterContactValidate(
|
|
3803
|
+
inCharacter: number,
|
|
3804
|
+
inOtherCharacter: number,
|
|
3805
|
+
inSubShapeID2: number
|
|
3806
|
+
): boolean;
|
|
3807
|
+
OnContactAdded(
|
|
3808
|
+
inCharacter: number,
|
|
3809
|
+
inBodyID2: number,
|
|
3810
|
+
inSubShapeID2: number,
|
|
3811
|
+
inContactPosition: number,
|
|
3812
|
+
inContactNormal: number,
|
|
3813
|
+
ioSettings: number
|
|
3814
|
+
): void;
|
|
3815
|
+
OnCharacterContactAdded(
|
|
3816
|
+
inCharacter: number,
|
|
3817
|
+
inOtherCharacter: number,
|
|
3818
|
+
inSubShapeID2: number,
|
|
3819
|
+
inContactPosition: number,
|
|
3820
|
+
inContactNormal: number,
|
|
3821
|
+
ioSettings: number
|
|
3822
|
+
): void;
|
|
3823
|
+
OnContactSolve(
|
|
3824
|
+
inCharacter: number,
|
|
3825
|
+
inBodyID2: number,
|
|
3826
|
+
inSubShapeID2: number,
|
|
3827
|
+
inContactPosition: number,
|
|
3828
|
+
inContactNormal: number,
|
|
3829
|
+
inContactVelocity: number,
|
|
3830
|
+
inContactMaterial: number,
|
|
3831
|
+
inCharacterVelocity: number,
|
|
3832
|
+
ioNewCharacterVelocity: number
|
|
3833
|
+
): void;
|
|
3834
|
+
OnCharacterContactSolve(
|
|
3835
|
+
inCharacter: number,
|
|
3836
|
+
inOtherCharacter: number,
|
|
3837
|
+
inSubShapeID2: number,
|
|
3838
|
+
inContactPosition: number,
|
|
3839
|
+
inContactNormal: number,
|
|
3840
|
+
inContactVelocity: number,
|
|
3841
|
+
inContactMaterial: number,
|
|
3842
|
+
inCharacterVelocity: number,
|
|
3843
|
+
ioNewCharacterVelocity: number
|
|
3844
|
+
): void;
|
|
3845
|
+
}
|
|
3846
|
+
class CharacterVsCharacterCollision {}
|
|
3847
|
+
class CharacterVsCharacterCollisionSimple extends CharacterVsCharacterCollision {
|
|
3848
|
+
Add(inCharacter: CharacterVirtual): void;
|
|
3849
|
+
Remove(inCharacter: CharacterVirtual): void;
|
|
3850
|
+
}
|
|
3851
|
+
class ExtendedUpdateSettings {
|
|
3852
|
+
constructor();
|
|
3853
|
+
get_mStickToFloorStepDown(): Vec3;
|
|
3854
|
+
set_mStickToFloorStepDown(mStickToFloorStepDown: Vec3): void;
|
|
3855
|
+
mStickToFloorStepDown: Vec3;
|
|
3856
|
+
get_mWalkStairsStepUp(): Vec3;
|
|
3857
|
+
set_mWalkStairsStepUp(mWalkStairsStepUp: Vec3): void;
|
|
3858
|
+
mWalkStairsStepUp: Vec3;
|
|
3859
|
+
get_mWalkStairsMinStepForward(): number;
|
|
3860
|
+
set_mWalkStairsMinStepForward(mWalkStairsMinStepForward: number): void;
|
|
3861
|
+
mWalkStairsMinStepForward: number;
|
|
3862
|
+
get_mWalkStairsStepForwardTest(): number;
|
|
3863
|
+
set_mWalkStairsStepForwardTest(mWalkStairsStepForwardTest: number): void;
|
|
3864
|
+
mWalkStairsStepForwardTest: number;
|
|
3865
|
+
get_mWalkStairsCosAngleForwardContact(): number;
|
|
3866
|
+
set_mWalkStairsCosAngleForwardContact(
|
|
3867
|
+
mWalkStairsCosAngleForwardContact: number
|
|
3868
|
+
): void;
|
|
3869
|
+
mWalkStairsCosAngleForwardContact: number;
|
|
3870
|
+
get_mWalkStairsStepDownExtra(): Vec3;
|
|
3871
|
+
set_mWalkStairsStepDownExtra(mWalkStairsStepDownExtra: Vec3): void;
|
|
3872
|
+
mWalkStairsStepDownExtra: Vec3;
|
|
3873
|
+
}
|
|
3874
|
+
class TempAllocator {}
|
|
3875
|
+
class BroadPhaseLayerFilter {
|
|
3876
|
+
constructor();
|
|
3877
|
+
}
|
|
3878
|
+
class ObjectVsBroadPhaseLayerFilter {
|
|
3879
|
+
constructor();
|
|
3880
|
+
}
|
|
3881
|
+
class ObjectVsBroadPhaseLayerFilterEm extends ObjectVsBroadPhaseLayerFilter {}
|
|
3882
|
+
class ObjectVsBroadPhaseLayerFilterJS extends ObjectVsBroadPhaseLayerFilterEm {
|
|
3883
|
+
constructor();
|
|
3884
|
+
ShouldCollide(inLayer1: number, inLayer2: number): boolean;
|
|
3885
|
+
}
|
|
3886
|
+
class DefaultBroadPhaseLayerFilter extends ObjectLayerFilter {
|
|
3887
|
+
constructor(inFilter: ObjectVsBroadPhaseLayerFilter, inObjectLayer: number);
|
|
3888
|
+
}
|
|
3889
|
+
class ObjectLayerFilter {
|
|
3890
|
+
constructor();
|
|
3891
|
+
}
|
|
3892
|
+
class ObjectLayerFilterJS extends ObjectLayerFilter {
|
|
3893
|
+
constructor();
|
|
3894
|
+
ShouldCollide(inLayer: number): boolean;
|
|
3895
|
+
}
|
|
3896
|
+
class ObjectLayerPairFilter {
|
|
3897
|
+
constructor();
|
|
3898
|
+
ShouldCollide(inLayer1: number, inLayer2: number): boolean;
|
|
3899
|
+
}
|
|
3900
|
+
class ObjectLayerPairFilterJS extends ObjectLayerPairFilter {
|
|
3901
|
+
constructor();
|
|
3902
|
+
ShouldCollide(inLayer1: number, inLayer2: number): boolean;
|
|
3903
|
+
}
|
|
3904
|
+
class DefaultObjectLayerFilter extends ObjectLayerFilter {
|
|
3905
|
+
constructor(inFilter: ObjectLayerPairFilter, inObjectLayer: number);
|
|
3906
|
+
}
|
|
3907
|
+
class SpecifiedObjectLayerFilter extends ObjectLayerFilter {
|
|
3908
|
+
constructor(inObjectLayer: number);
|
|
3909
|
+
}
|
|
3910
|
+
class BodyFilter {
|
|
3911
|
+
constructor();
|
|
3912
|
+
}
|
|
3913
|
+
class BodyFilterJS extends BodyFilter {
|
|
3914
|
+
constructor();
|
|
3915
|
+
ShouldCollide(inBodyID: number): boolean;
|
|
3916
|
+
ShouldCollideLocked(inBody: number): boolean;
|
|
3917
|
+
}
|
|
3918
|
+
class IgnoreSingleBodyFilter extends BodyFilter {
|
|
3919
|
+
constructor(inBodyID: BodyID);
|
|
3920
|
+
}
|
|
3921
|
+
class IgnoreMultipleBodiesFilter extends BodyFilter {
|
|
3922
|
+
constructor();
|
|
3923
|
+
Clear(): void;
|
|
3924
|
+
Reserve(inSize: number): void;
|
|
3925
|
+
IgnoreBody(inBodyID: BodyID): void;
|
|
3926
|
+
}
|
|
3927
|
+
class ShapeFilter {
|
|
3928
|
+
constructor();
|
|
3929
|
+
}
|
|
3930
|
+
class ShapeFilterJS extends ShapeFilter {
|
|
3931
|
+
constructor();
|
|
3932
|
+
ShouldCollide(inShape2: number, inSubShapeIDOfShape2: number): boolean;
|
|
3933
|
+
}
|
|
3934
|
+
class ShapeFilterJS2 extends ShapeFilter {
|
|
3935
|
+
constructor();
|
|
3936
|
+
ShouldCollide(
|
|
3937
|
+
inShape1: number,
|
|
3938
|
+
inSubShapeIDOfShape1: number,
|
|
3939
|
+
inShape2: number,
|
|
3940
|
+
inSubShapeIDOfShape2: number
|
|
3941
|
+
): boolean;
|
|
3942
|
+
}
|
|
3943
|
+
class CharacterBase {
|
|
3944
|
+
GetRefCount(): number;
|
|
3945
|
+
AddRef(): void;
|
|
3946
|
+
Release(): void;
|
|
3947
|
+
SetMaxSlopeAngle(inMaxSlopeAngle: number): void;
|
|
3948
|
+
GetCosMaxSlopeAngle(): number;
|
|
3949
|
+
SetUp(inUp: Vec3): void;
|
|
3950
|
+
GetUp(): Vec3;
|
|
3951
|
+
GetShape(): Shape;
|
|
3952
|
+
GetGroundState(): EGroundState;
|
|
3953
|
+
IsSlopeTooSteep(inNormal: Vec3): boolean;
|
|
3954
|
+
IsSupported(): boolean;
|
|
3955
|
+
GetGroundPosition(): RVec3;
|
|
3956
|
+
GetGroundNormal(): Vec3;
|
|
3957
|
+
GetGroundVelocity(): Vec3;
|
|
3958
|
+
GetGroundMaterial(): PhysicsMaterial;
|
|
3959
|
+
GetGroundBodyID(): BodyID;
|
|
3960
|
+
}
|
|
3961
|
+
class CharacterVirtual extends CharacterBase {
|
|
3962
|
+
constructor(
|
|
3963
|
+
inSettings: CharacterVirtualSettings,
|
|
3964
|
+
inPosition: RVec3,
|
|
3965
|
+
inRotation: Quat,
|
|
3966
|
+
inSystem: PhysicsSystem
|
|
3967
|
+
);
|
|
3968
|
+
SetListener(inListener: CharacterContactListener): void;
|
|
3969
|
+
SetCharacterVsCharacterCollision(
|
|
3970
|
+
inCharacterVsCharacterCollision: CharacterVsCharacterCollision
|
|
3971
|
+
): void;
|
|
3972
|
+
GetListener(): CharacterContactListener;
|
|
3973
|
+
GetLinearVelocity(): Vec3;
|
|
3974
|
+
SetLinearVelocity(inLinearVelocity: Vec3): void;
|
|
3975
|
+
GetPosition(): RVec3;
|
|
3976
|
+
SetPosition(inPosition: RVec3): void;
|
|
3977
|
+
GetRotation(): Quat;
|
|
3978
|
+
SetRotation(inRotation: Quat): void;
|
|
3979
|
+
GetCenterOfMassPosition(): RVec3;
|
|
3980
|
+
GetWorldTransform(): RMat44;
|
|
3981
|
+
GetCenterOfMassTransform(): RMat44;
|
|
3982
|
+
GetMass(): number;
|
|
3983
|
+
SetMass(inMass: number): void;
|
|
3984
|
+
GetMaxStrength(): number;
|
|
3985
|
+
SetMaxStrength(inMaxStrength: number): void;
|
|
3986
|
+
GetPenetrationRecoverySpeed(): number;
|
|
3987
|
+
SetPenetrationRecoverySpeed(inSpeed: number): void;
|
|
3988
|
+
GetCharacterPadding(): number;
|
|
3989
|
+
GetMaxNumHits(): number;
|
|
3990
|
+
SetMaxNumHits(inMaxHits: number): void;
|
|
3991
|
+
GetHitReductionCosMaxAngle(): number;
|
|
3992
|
+
SetHitReductionCosMaxAngle(inCosMaxAngle: number): void;
|
|
3993
|
+
GetMaxHitsExceeded(): boolean;
|
|
3994
|
+
GetShapeOffset(): Vec3;
|
|
3995
|
+
SetShapeOffset(inShapeOffset: Vec3): void;
|
|
3996
|
+
GetUserData(): number;
|
|
3997
|
+
SetUserData(inUserData: number): void;
|
|
3998
|
+
GetInnerBodyID(): BodyID;
|
|
3999
|
+
CancelVelocityTowardsSteepSlopes(inDesiredVelocity: Vec3): Vec3;
|
|
4000
|
+
Update(
|
|
4001
|
+
inDeltaTime: number,
|
|
4002
|
+
inGravity: Vec3,
|
|
4003
|
+
inBroadPhaseLayerFilter: BroadPhaseLayerFilter,
|
|
4004
|
+
inObjectLayerFilter: ObjectLayerFilter,
|
|
4005
|
+
inBodyFilter: BodyFilter,
|
|
4006
|
+
inShapeFilter: ShapeFilter,
|
|
4007
|
+
inAllocator: TempAllocator
|
|
4008
|
+
): void;
|
|
4009
|
+
CanWalkStairs(inLinearVelocity: Vec3): boolean;
|
|
4010
|
+
WalkStairs(
|
|
4011
|
+
inDeltaTime: number,
|
|
4012
|
+
inStepUp: Vec3,
|
|
4013
|
+
inStepForward: Vec3,
|
|
4014
|
+
inStepForwardTest: Vec3,
|
|
4015
|
+
inStepDownExtra: Vec3,
|
|
4016
|
+
inBroadPhaseLayerFilter: BroadPhaseLayerFilter,
|
|
4017
|
+
inObjectLayerFilter: ObjectLayerFilter,
|
|
4018
|
+
inBodyFilter: BodyFilter,
|
|
4019
|
+
inShapeFilter: ShapeFilter,
|
|
4020
|
+
inAllocator: TempAllocator
|
|
4021
|
+
): boolean;
|
|
4022
|
+
StickToFloor(
|
|
4023
|
+
inStepDown: Vec3,
|
|
4024
|
+
inBroadPhaseLayerFilter: BroadPhaseLayerFilter,
|
|
4025
|
+
inObjectLayerFilter: ObjectLayerFilter,
|
|
4026
|
+
inBodyFilter: BodyFilter,
|
|
4027
|
+
inShapeFilter: ShapeFilter,
|
|
4028
|
+
inAllocator: TempAllocator
|
|
4029
|
+
): boolean;
|
|
4030
|
+
ExtendedUpdate(
|
|
4031
|
+
inDeltaTime: number,
|
|
4032
|
+
inGravity: Vec3,
|
|
4033
|
+
inSettings: ExtendedUpdateSettings,
|
|
4034
|
+
inBroadPhaseLayerFilter: BroadPhaseLayerFilter,
|
|
4035
|
+
inObjectLayerFilter: ObjectLayerFilter,
|
|
4036
|
+
inBodyFilter: BodyFilter,
|
|
4037
|
+
inShapeFilter: ShapeFilter,
|
|
4038
|
+
inAllocator: TempAllocator
|
|
4039
|
+
): void;
|
|
4040
|
+
RefreshContacts(
|
|
4041
|
+
inBroadPhaseLayerFilter: BroadPhaseLayerFilter,
|
|
4042
|
+
inObjectLayerFilter: ObjectLayerFilter,
|
|
4043
|
+
inBodyFilter: BodyFilter,
|
|
4044
|
+
inShapeFilter: ShapeFilter,
|
|
4045
|
+
inAllocator: TempAllocator
|
|
4046
|
+
): void;
|
|
4047
|
+
UpdateGroundVelocity(): void;
|
|
4048
|
+
SetShape(
|
|
4049
|
+
inShape: Shape,
|
|
4050
|
+
inMaxPenetrationDepth: number,
|
|
4051
|
+
inBroadPhaseLayerFilter: BroadPhaseLayerFilter,
|
|
4052
|
+
inObjectLayerFilter: ObjectLayerFilter,
|
|
4053
|
+
inBodyFilter: BodyFilter,
|
|
4054
|
+
inShapeFilter: ShapeFilter,
|
|
4055
|
+
inAllocator: TempAllocator
|
|
4056
|
+
): boolean;
|
|
4057
|
+
SetInnerBodyShape(inShape: Shape): void;
|
|
4058
|
+
GetTransformedShape(): TransformedShape;
|
|
4059
|
+
}
|
|
4060
|
+
class LinearCurve {
|
|
4061
|
+
constructor();
|
|
4062
|
+
Clear(): void;
|
|
4063
|
+
Reserve(inSize: number): void;
|
|
4064
|
+
AddPoint(inX: number, inY: number): void;
|
|
4065
|
+
Sort(): void;
|
|
4066
|
+
GetMinX(): number;
|
|
4067
|
+
GetMaxX(): number;
|
|
4068
|
+
GetValue(inX: number): number;
|
|
4069
|
+
}
|
|
4070
|
+
class ArrayFloat {
|
|
4071
|
+
empty(): boolean;
|
|
4072
|
+
size(): number;
|
|
4073
|
+
at(inIndex: number): number;
|
|
4074
|
+
push_back(inValue: number): void;
|
|
4075
|
+
reserve(inSize: number): void;
|
|
4076
|
+
resize(inSize: number): void;
|
|
4077
|
+
clear(): void;
|
|
4078
|
+
data(): FloatMemRef;
|
|
4079
|
+
}
|
|
4080
|
+
class ArrayUint {
|
|
4081
|
+
empty(): boolean;
|
|
4082
|
+
size(): number;
|
|
4083
|
+
at(inIndex: number): number;
|
|
4084
|
+
push_back(inValue: number): void;
|
|
4085
|
+
reserve(inSize: number): void;
|
|
4086
|
+
resize(inSize: number): void;
|
|
4087
|
+
clear(): void;
|
|
4088
|
+
data(): UintMemRef;
|
|
4089
|
+
}
|
|
4090
|
+
class ArrayUint8 {
|
|
4091
|
+
empty(): boolean;
|
|
4092
|
+
size(): number;
|
|
4093
|
+
at(inIndex: number): number;
|
|
4094
|
+
push_back(inValue: number): void;
|
|
4095
|
+
reserve(inSize: number): void;
|
|
4096
|
+
resize(inSize: number): void;
|
|
4097
|
+
clear(): void;
|
|
4098
|
+
data(): Uint8MemRef;
|
|
4099
|
+
}
|
|
4100
|
+
class ArrayVehicleAntiRollBar {
|
|
4101
|
+
empty(): boolean;
|
|
4102
|
+
size(): number;
|
|
4103
|
+
at(inIndex: number): VehicleAntiRollBar;
|
|
4104
|
+
push_back(inValue: VehicleAntiRollBar): void;
|
|
4105
|
+
resize(inSize: number): void;
|
|
4106
|
+
clear(): void;
|
|
4107
|
+
}
|
|
4108
|
+
class ArrayWheelSettings {
|
|
4109
|
+
empty(): boolean;
|
|
4110
|
+
size(): number;
|
|
4111
|
+
at(inIndex: number): WheelSettings;
|
|
4112
|
+
push_back(inValue: WheelSettings): void;
|
|
4113
|
+
resize(inSize: number): void;
|
|
4114
|
+
clear(): void;
|
|
4115
|
+
}
|
|
4116
|
+
class ArrayVehicleDifferentialSettings {
|
|
4117
|
+
empty(): boolean;
|
|
4118
|
+
size(): number;
|
|
4119
|
+
at(inIndex: number): VehicleDifferentialSettings;
|
|
4120
|
+
push_back(inValue: VehicleDifferentialSettings): void;
|
|
4121
|
+
resize(inSize: number): void;
|
|
4122
|
+
clear(): void;
|
|
4123
|
+
}
|
|
4124
|
+
class VehicleCollisionTester {
|
|
4125
|
+
GetRefCount(): number;
|
|
4126
|
+
AddRef(): void;
|
|
4127
|
+
Release(): void;
|
|
4128
|
+
}
|
|
4129
|
+
class VehicleCollisionTesterRay extends VehicleCollisionTester {
|
|
4130
|
+
constructor(inObjectLayer: number, inUp?: Vec3, inMaxSlopeAngle?: number);
|
|
4131
|
+
}
|
|
4132
|
+
class VehicleCollisionTesterCastSphere extends VehicleCollisionTester {
|
|
4133
|
+
constructor(
|
|
4134
|
+
inObjectLayer: number,
|
|
4135
|
+
inRadius: number,
|
|
4136
|
+
inUp?: Vec3,
|
|
4137
|
+
inMaxSlopeAngle?: number
|
|
4138
|
+
);
|
|
4139
|
+
}
|
|
4140
|
+
class VehicleCollisionTesterCastCylinder extends VehicleCollisionTester {
|
|
4141
|
+
constructor(inObjectLayer: number, inConvexRadiusFraction?: number);
|
|
4142
|
+
}
|
|
4143
|
+
class VehicleConstraintSettings extends ConstraintSettings {
|
|
4144
|
+
constructor();
|
|
4145
|
+
get_mUp(): Vec3;
|
|
4146
|
+
set_mUp(mUp: Vec3): void;
|
|
4147
|
+
mUp: Vec3;
|
|
4148
|
+
get_mForward(): Vec3;
|
|
4149
|
+
set_mForward(mForward: Vec3): void;
|
|
4150
|
+
mForward: Vec3;
|
|
4151
|
+
get_mMaxPitchRollAngle(): number;
|
|
4152
|
+
set_mMaxPitchRollAngle(mMaxPitchRollAngle: number): void;
|
|
4153
|
+
mMaxPitchRollAngle: number;
|
|
4154
|
+
get_mWheels(): ArrayWheelSettings;
|
|
4155
|
+
set_mWheels(mWheels: ArrayWheelSettings): void;
|
|
4156
|
+
mWheels: ArrayWheelSettings;
|
|
4157
|
+
get_mAntiRollBars(): ArrayVehicleAntiRollBar;
|
|
4158
|
+
set_mAntiRollBars(mAntiRollBars: ArrayVehicleAntiRollBar): void;
|
|
4159
|
+
mAntiRollBars: ArrayVehicleAntiRollBar;
|
|
4160
|
+
get_mController(): VehicleControllerSettings;
|
|
4161
|
+
set_mController(mController: VehicleControllerSettings): void;
|
|
4162
|
+
mController: VehicleControllerSettings;
|
|
4163
|
+
}
|
|
4164
|
+
class VehicleConstraint extends Constraint {
|
|
4165
|
+
constructor(inVehicleBody: Body, inSettings: VehicleConstraintSettings);
|
|
4166
|
+
SetMaxPitchRollAngle(inMaxPitchRollAngle: number): void;
|
|
4167
|
+
SetVehicleCollisionTester(inTester: VehicleCollisionTester): void;
|
|
4168
|
+
OverrideGravity(inGravity: Vec3): void;
|
|
4169
|
+
IsGravityOverridden(): boolean;
|
|
4170
|
+
GetGravityOverride(): Vec3;
|
|
4171
|
+
ResetGravityOverride(): void;
|
|
4172
|
+
GetLocalUp(): Vec3;
|
|
4173
|
+
GetLocalForward(): Vec3;
|
|
4174
|
+
GetWorldUp(): Vec3;
|
|
4175
|
+
GetVehicleBody(): Body;
|
|
4176
|
+
GetController(): VehicleController;
|
|
4177
|
+
GetWheel(inIdx: number): Wheel;
|
|
4178
|
+
GetWheelLocalTransform(
|
|
4179
|
+
inWheelIndex: number,
|
|
4180
|
+
inWheelRight: Vec3,
|
|
4181
|
+
inWheelUp: Vec3
|
|
4182
|
+
): Mat44;
|
|
4183
|
+
GetWheelWorldTransform(
|
|
4184
|
+
inWheelIndex: number,
|
|
4185
|
+
inWheelRight: Vec3,
|
|
4186
|
+
inWheelUp: Vec3
|
|
4187
|
+
): RMat44;
|
|
4188
|
+
SetNumStepsBetweenCollisionTestActive(inSteps: number): void;
|
|
4189
|
+
GetNumStepsBetweenCollisionTestActive(): number;
|
|
4190
|
+
SetNumStepsBetweenCollisionTestInactive(inSteps: number): void;
|
|
4191
|
+
GetNumStepsBetweenCollisionTestInactive(): number;
|
|
4192
|
+
}
|
|
4193
|
+
class VehicleConstraintStepListener extends PhysicsStepListener {
|
|
4194
|
+
constructor(inConstraint: VehicleConstraint);
|
|
4195
|
+
}
|
|
4196
|
+
class VehicleConstraintCallbacksEm {
|
|
4197
|
+
SetVehicleConstraint(inConstraint: VehicleConstraint): void;
|
|
4198
|
+
}
|
|
4199
|
+
class VehicleConstraintCallbacksJS extends VehicleConstraintCallbacksEm {
|
|
4200
|
+
constructor();
|
|
4201
|
+
GetCombinedFriction(
|
|
4202
|
+
inWheelIndex: number,
|
|
4203
|
+
inTireFrictionDirection: number,
|
|
4204
|
+
inTireFriction: number,
|
|
4205
|
+
inBody2: number,
|
|
4206
|
+
inSubShapeID2: number
|
|
4207
|
+
): number;
|
|
4208
|
+
OnPreStepCallback(inVehicle: number, inContext: number): void;
|
|
4209
|
+
OnPostCollideCallback(inVehicle: number, inContext: number): void;
|
|
4210
|
+
OnPostStepCallback(inVehicle: number, inContext: number): void;
|
|
4211
|
+
}
|
|
4212
|
+
class TireMaxImpulseCallbackResult {
|
|
4213
|
+
get_mLongitudinalImpulse(): number;
|
|
4214
|
+
set_mLongitudinalImpulse(mLongitudinalImpulse: number): void;
|
|
4215
|
+
mLongitudinalImpulse: number;
|
|
4216
|
+
get_mLateralImpulse(): number;
|
|
4217
|
+
set_mLateralImpulse(mLateralImpulse: number): void;
|
|
4218
|
+
mLateralImpulse: number;
|
|
4219
|
+
}
|
|
4220
|
+
class WheeledVehicleControllerCallbacksEm {
|
|
4221
|
+
SetWheeledVehicleController(inController: WheeledVehicleController): void;
|
|
4222
|
+
}
|
|
4223
|
+
class WheeledVehicleControllerCallbacksJS extends WheeledVehicleControllerCallbacksEm {
|
|
4224
|
+
constructor();
|
|
4225
|
+
OnTireMaxImpulseCallback(
|
|
4226
|
+
inWheelIndex: number,
|
|
4227
|
+
outResult: number,
|
|
4228
|
+
inSuspensionImpulse: number,
|
|
4229
|
+
inLongitudinalFriction: number,
|
|
4230
|
+
inLateralFriction: number,
|
|
4231
|
+
inLongitudinalSlip: number,
|
|
4232
|
+
inLateralSlip: number,
|
|
4233
|
+
inDeltaTime: number
|
|
4234
|
+
): void;
|
|
4235
|
+
}
|
|
4236
|
+
class WheelSettings {
|
|
4237
|
+
constructor();
|
|
4238
|
+
GetRefCount(): number;
|
|
4239
|
+
AddRef(): void;
|
|
4240
|
+
Release(): void;
|
|
4241
|
+
get_mPosition(): Vec3;
|
|
4242
|
+
set_mPosition(mPosition: Vec3): void;
|
|
4243
|
+
mPosition: Vec3;
|
|
4244
|
+
get_mSuspensionForcePoint(): Vec3;
|
|
4245
|
+
set_mSuspensionForcePoint(mSuspensionForcePoint: Vec3): void;
|
|
4246
|
+
mSuspensionForcePoint: Vec3;
|
|
4247
|
+
get_mSuspensionDirection(): Vec3;
|
|
4248
|
+
set_mSuspensionDirection(mSuspensionDirection: Vec3): void;
|
|
4249
|
+
mSuspensionDirection: Vec3;
|
|
4250
|
+
get_mSteeringAxis(): Vec3;
|
|
4251
|
+
set_mSteeringAxis(mSteeringAxis: Vec3): void;
|
|
4252
|
+
mSteeringAxis: Vec3;
|
|
4253
|
+
get_mWheelUp(): Vec3;
|
|
4254
|
+
set_mWheelUp(mWheelUp: Vec3): void;
|
|
4255
|
+
mWheelUp: Vec3;
|
|
4256
|
+
get_mWheelForward(): Vec3;
|
|
4257
|
+
set_mWheelForward(mWheelForward: Vec3): void;
|
|
4258
|
+
mWheelForward: Vec3;
|
|
4259
|
+
get_mSuspensionSpring(): SpringSettings;
|
|
4260
|
+
set_mSuspensionSpring(mSuspensionSpring: SpringSettings): void;
|
|
4261
|
+
mSuspensionSpring: SpringSettings;
|
|
4262
|
+
get_mSuspensionMinLength(): number;
|
|
4263
|
+
set_mSuspensionMinLength(mSuspensionMinLength: number): void;
|
|
4264
|
+
mSuspensionMinLength: number;
|
|
4265
|
+
get_mSuspensionMaxLength(): number;
|
|
4266
|
+
set_mSuspensionMaxLength(mSuspensionMaxLength: number): void;
|
|
4267
|
+
mSuspensionMaxLength: number;
|
|
4268
|
+
get_mSuspensionPreloadLength(): number;
|
|
4269
|
+
set_mSuspensionPreloadLength(mSuspensionPreloadLength: number): void;
|
|
4270
|
+
mSuspensionPreloadLength: number;
|
|
4271
|
+
get_mRadius(): number;
|
|
4272
|
+
set_mRadius(mRadius: number): void;
|
|
4273
|
+
mRadius: number;
|
|
4274
|
+
get_mWidth(): number;
|
|
4275
|
+
set_mWidth(mWidth: number): void;
|
|
4276
|
+
mWidth: number;
|
|
4277
|
+
get_mEnableSuspensionForcePoint(): boolean;
|
|
4278
|
+
set_mEnableSuspensionForcePoint(mEnableSuspensionForcePoint: boolean): void;
|
|
4279
|
+
mEnableSuspensionForcePoint: boolean;
|
|
4280
|
+
}
|
|
4281
|
+
class VehicleAntiRollBar {
|
|
4282
|
+
constructor();
|
|
4283
|
+
get_mLeftWheel(): number;
|
|
4284
|
+
set_mLeftWheel(mLeftWheel: number): void;
|
|
4285
|
+
mLeftWheel: number;
|
|
4286
|
+
get_mRightWheel(): number;
|
|
4287
|
+
set_mRightWheel(mRightWheel: number): void;
|
|
4288
|
+
mRightWheel: number;
|
|
4289
|
+
get_mStiffness(): number;
|
|
4290
|
+
set_mStiffness(mStiffness: number): void;
|
|
4291
|
+
mStiffness: number;
|
|
4292
|
+
}
|
|
4293
|
+
class Wheel {
|
|
4294
|
+
constructor(inSettings: WheelSettings);
|
|
4295
|
+
GetSettings(): WheelSettings;
|
|
4296
|
+
GetAngularVelocity(): number;
|
|
4297
|
+
SetAngularVelocity(inVel: number): void;
|
|
4298
|
+
GetRotationAngle(): number;
|
|
4299
|
+
SetRotationAngle(inAngle: number): void;
|
|
4300
|
+
GetSteerAngle(): number;
|
|
4301
|
+
SetSteerAngle(inAngle: number): void;
|
|
4302
|
+
HasContact(): boolean;
|
|
4303
|
+
GetContactBodyID(): BodyID;
|
|
4304
|
+
GetContactPosition(): RVec3;
|
|
4305
|
+
GetContactPointVelocity(): Vec3;
|
|
4306
|
+
GetContactNormal(): Vec3;
|
|
4307
|
+
GetContactLongitudinal(): Vec3;
|
|
4308
|
+
GetContactLateral(): Vec3;
|
|
4309
|
+
GetSuspensionLength(): number;
|
|
4310
|
+
HasHitHardPoint(): boolean;
|
|
4311
|
+
GetSuspensionLambda(): number;
|
|
4312
|
+
GetLongitudinalLambda(): number;
|
|
4313
|
+
GetLateralLambda(): number;
|
|
4314
|
+
}
|
|
4315
|
+
class WheelSettingsWV extends WheelSettings {
|
|
4316
|
+
constructor();
|
|
4317
|
+
get_mInertia(): number;
|
|
4318
|
+
set_mInertia(mInertia: number): void;
|
|
4319
|
+
mInertia: number;
|
|
4320
|
+
get_mAngularDamping(): number;
|
|
4321
|
+
set_mAngularDamping(mAngularDamping: number): void;
|
|
4322
|
+
mAngularDamping: number;
|
|
4323
|
+
get_mMaxSteerAngle(): number;
|
|
4324
|
+
set_mMaxSteerAngle(mMaxSteerAngle: number): void;
|
|
4325
|
+
mMaxSteerAngle: number;
|
|
4326
|
+
get_mLongitudinalFriction(): LinearCurve;
|
|
4327
|
+
set_mLongitudinalFriction(mLongitudinalFriction: LinearCurve): void;
|
|
4328
|
+
mLongitudinalFriction: LinearCurve;
|
|
4329
|
+
get_mLateralFriction(): LinearCurve;
|
|
4330
|
+
set_mLateralFriction(mLateralFriction: LinearCurve): void;
|
|
4331
|
+
mLateralFriction: LinearCurve;
|
|
4332
|
+
get_mMaxBrakeTorque(): number;
|
|
4333
|
+
set_mMaxBrakeTorque(mMaxBrakeTorque: number): void;
|
|
4334
|
+
mMaxBrakeTorque: number;
|
|
4335
|
+
get_mMaxHandBrakeTorque(): number;
|
|
4336
|
+
set_mMaxHandBrakeTorque(mMaxHandBrakeTorque: number): void;
|
|
4337
|
+
mMaxHandBrakeTorque: number;
|
|
4338
|
+
}
|
|
4339
|
+
class WheelWV extends Wheel {
|
|
4340
|
+
constructor(inWheel: WheelSettingsWV);
|
|
4341
|
+
GetSettings(): WheelSettingsWV;
|
|
4342
|
+
get_mLongitudinalSlip(): number;
|
|
4343
|
+
set_mLongitudinalSlip(mLongitudinalSlip: number): void;
|
|
4344
|
+
mLongitudinalSlip: number;
|
|
4345
|
+
get_mLateralSlip(): number;
|
|
4346
|
+
set_mLateralSlip(mLateralSlip: number): void;
|
|
4347
|
+
mLateralSlip: number;
|
|
4348
|
+
get_mCombinedLongitudinalFriction(): number;
|
|
4349
|
+
set_mCombinedLongitudinalFriction(
|
|
4350
|
+
mCombinedLongitudinalFriction: number
|
|
4351
|
+
): void;
|
|
4352
|
+
mCombinedLongitudinalFriction: number;
|
|
4353
|
+
get_mCombinedLateralFriction(): number;
|
|
4354
|
+
set_mCombinedLateralFriction(mCombinedLateralFriction: number): void;
|
|
4355
|
+
mCombinedLateralFriction: number;
|
|
4356
|
+
get_mBrakeImpulse(): number;
|
|
4357
|
+
set_mBrakeImpulse(mBrakeImpulse: number): void;
|
|
4358
|
+
mBrakeImpulse: number;
|
|
4359
|
+
}
|
|
4360
|
+
class WheelSettingsTV extends WheelSettings {
|
|
4361
|
+
constructor();
|
|
4362
|
+
get_mLongitudinalFriction(): number;
|
|
4363
|
+
set_mLongitudinalFriction(mLongitudinalFriction: number): void;
|
|
4364
|
+
mLongitudinalFriction: number;
|
|
4365
|
+
get_mLateralFriction(): number;
|
|
4366
|
+
set_mLateralFriction(mLateralFriction: number): void;
|
|
4367
|
+
mLateralFriction: number;
|
|
4368
|
+
}
|
|
4369
|
+
class WheelTV extends Wheel {
|
|
4370
|
+
constructor(inWheel: WheelSettingsTV);
|
|
4371
|
+
GetSettings(): WheelSettingsTV;
|
|
4372
|
+
get_mTrackIndex(): number;
|
|
4373
|
+
set_mTrackIndex(mTrackIndex: number): void;
|
|
4374
|
+
mTrackIndex: number;
|
|
4375
|
+
get_mCombinedLongitudinalFriction(): number;
|
|
4376
|
+
set_mCombinedLongitudinalFriction(
|
|
4377
|
+
mCombinedLongitudinalFriction: number
|
|
4378
|
+
): void;
|
|
4379
|
+
mCombinedLongitudinalFriction: number;
|
|
4380
|
+
get_mCombinedLateralFriction(): number;
|
|
4381
|
+
set_mCombinedLateralFriction(mCombinedLateralFriction: number): void;
|
|
4382
|
+
mCombinedLateralFriction: number;
|
|
4383
|
+
get_mBrakeImpulse(): number;
|
|
4384
|
+
set_mBrakeImpulse(mBrakeImpulse: number): void;
|
|
4385
|
+
mBrakeImpulse: number;
|
|
4386
|
+
}
|
|
4387
|
+
class VehicleTrackSettings {
|
|
4388
|
+
get_mDrivenWheel(): number;
|
|
4389
|
+
set_mDrivenWheel(mDrivenWheel: number): void;
|
|
4390
|
+
mDrivenWheel: number;
|
|
4391
|
+
get_mWheels(): ArrayUint;
|
|
4392
|
+
set_mWheels(mWheels: ArrayUint): void;
|
|
4393
|
+
mWheels: ArrayUint;
|
|
4394
|
+
get_mInertia(): number;
|
|
4395
|
+
set_mInertia(mInertia: number): void;
|
|
4396
|
+
mInertia: number;
|
|
4397
|
+
get_mAngularDamping(): number;
|
|
4398
|
+
set_mAngularDamping(mAngularDamping: number): void;
|
|
4399
|
+
mAngularDamping: number;
|
|
4400
|
+
get_mMaxBrakeTorque(): number;
|
|
4401
|
+
set_mMaxBrakeTorque(mMaxBrakeTorque: number): void;
|
|
4402
|
+
mMaxBrakeTorque: number;
|
|
4403
|
+
get_mDifferentialRatio(): number;
|
|
4404
|
+
set_mDifferentialRatio(mDifferentialRatio: number): void;
|
|
4405
|
+
mDifferentialRatio: number;
|
|
4406
|
+
}
|
|
4407
|
+
class VehicleTrack extends VehicleTrackSettings {
|
|
4408
|
+
get_mAngularVelocity(): number;
|
|
4409
|
+
set_mAngularVelocity(mAngularVelocity: number): void;
|
|
4410
|
+
mAngularVelocity: number;
|
|
4411
|
+
}
|
|
4412
|
+
class WheeledVehicleControllerSettings extends VehicleControllerSettings {
|
|
4413
|
+
constructor();
|
|
4414
|
+
get_mEngine(): VehicleEngineSettings;
|
|
4415
|
+
set_mEngine(mEngine: VehicleEngineSettings): void;
|
|
4416
|
+
mEngine: VehicleEngineSettings;
|
|
4417
|
+
get_mTransmission(): VehicleTransmissionSettings;
|
|
4418
|
+
set_mTransmission(mTransmission: VehicleTransmissionSettings): void;
|
|
4419
|
+
mTransmission: VehicleTransmissionSettings;
|
|
4420
|
+
get_mDifferentials(): ArrayVehicleDifferentialSettings;
|
|
4421
|
+
set_mDifferentials(mDifferentials: ArrayVehicleDifferentialSettings): void;
|
|
4422
|
+
mDifferentials: ArrayVehicleDifferentialSettings;
|
|
4423
|
+
get_mDifferentialLimitedSlipRatio(): number;
|
|
4424
|
+
set_mDifferentialLimitedSlipRatio(
|
|
4425
|
+
mDifferentialLimitedSlipRatio: number
|
|
4426
|
+
): void;
|
|
4427
|
+
mDifferentialLimitedSlipRatio: number;
|
|
4428
|
+
}
|
|
4429
|
+
class TrackedVehicleControllerSettings extends VehicleControllerSettings {
|
|
4430
|
+
constructor();
|
|
4431
|
+
get_mEngine(): VehicleEngineSettings;
|
|
4432
|
+
set_mEngine(mEngine: VehicleEngineSettings): void;
|
|
4433
|
+
mEngine: VehicleEngineSettings;
|
|
4434
|
+
get_mTransmission(): VehicleTransmissionSettings;
|
|
4435
|
+
set_mTransmission(mTransmission: VehicleTransmissionSettings): void;
|
|
4436
|
+
mTransmission: VehicleTransmissionSettings;
|
|
4437
|
+
get_mTracks(index: number): VehicleTrackSettings;
|
|
4438
|
+
set_mTracks(index: number, mTracks: VehicleTrackSettings): void;
|
|
4439
|
+
mTracks: VehicleTrackSettings;
|
|
4440
|
+
}
|
|
4441
|
+
class TrackedVehicleController extends VehicleController {
|
|
4442
|
+
constructor(
|
|
4443
|
+
inSettings: TrackedVehicleControllerSettings,
|
|
4444
|
+
inConstraint: VehicleConstraint
|
|
4445
|
+
);
|
|
4446
|
+
SetDriverInput(
|
|
4447
|
+
inForward: number,
|
|
4448
|
+
inLeftRatio: number,
|
|
4449
|
+
inRightRatio: number,
|
|
4450
|
+
inBrake: number
|
|
4451
|
+
): void;
|
|
4452
|
+
SetForwardInput(inForward: number): void;
|
|
4453
|
+
GetForwardInput(): number;
|
|
4454
|
+
SetLeftRatio(inLeftRatio: number): void;
|
|
4455
|
+
GetLeftRatio(): number;
|
|
4456
|
+
SetRightRatio(inRightRatio: number): void;
|
|
4457
|
+
GetRightRatio(): number;
|
|
4458
|
+
SetBrakeInput(inBrake: number): void;
|
|
4459
|
+
GetBrakeInput(): number;
|
|
4460
|
+
GetEngine(): VehicleEngine;
|
|
4461
|
+
GetTransmission(): VehicleTransmission;
|
|
4462
|
+
GetTracks(): ReadonlyArray<VehicleTrack>;
|
|
4463
|
+
}
|
|
4464
|
+
class VehicleEngineSettings {
|
|
4465
|
+
get_mMaxTorque(): number;
|
|
4466
|
+
set_mMaxTorque(mMaxTorque: number): void;
|
|
4467
|
+
mMaxTorque: number;
|
|
4468
|
+
get_mMinRPM(): number;
|
|
4469
|
+
set_mMinRPM(mMinRPM: number): void;
|
|
4470
|
+
mMinRPM: number;
|
|
4471
|
+
get_mMaxRPM(): number;
|
|
4472
|
+
set_mMaxRPM(mMaxRPM: number): void;
|
|
4473
|
+
mMaxRPM: number;
|
|
4474
|
+
get_mNormalizedTorque(): LinearCurve;
|
|
4475
|
+
set_mNormalizedTorque(mNormalizedTorque: LinearCurve): void;
|
|
4476
|
+
mNormalizedTorque: LinearCurve;
|
|
4477
|
+
get_mInertia(): number;
|
|
4478
|
+
set_mInertia(mInertia: number): void;
|
|
4479
|
+
mInertia: number;
|
|
4480
|
+
get_mAngularDamping(): number;
|
|
4481
|
+
set_mAngularDamping(mAngularDamping: number): void;
|
|
4482
|
+
mAngularDamping: number;
|
|
4483
|
+
}
|
|
4484
|
+
class VehicleEngine extends VehicleEngineSettings {
|
|
4485
|
+
ClampRPM(): void;
|
|
4486
|
+
GetCurrentRPM(): number;
|
|
4487
|
+
SetCurrentRPM(inRPM: number): void;
|
|
4488
|
+
GetAngularVelocity(): number;
|
|
4489
|
+
GetTorque(inAcceleration: number): number;
|
|
4490
|
+
}
|
|
4491
|
+
class VehicleTransmissionSettings {
|
|
4492
|
+
get_mMode(): ETransmissionMode;
|
|
4493
|
+
set_mMode(mMode: ETransmissionMode): void;
|
|
4494
|
+
mMode: ETransmissionMode;
|
|
4495
|
+
get_mGearRatios(): ArrayFloat;
|
|
4496
|
+
set_mGearRatios(mGearRatios: ArrayFloat): void;
|
|
4497
|
+
mGearRatios: ArrayFloat;
|
|
4498
|
+
get_mReverseGearRatios(): ArrayFloat;
|
|
4499
|
+
set_mReverseGearRatios(mReverseGearRatios: ArrayFloat): void;
|
|
4500
|
+
mReverseGearRatios: ArrayFloat;
|
|
4501
|
+
get_mSwitchTime(): number;
|
|
4502
|
+
set_mSwitchTime(mSwitchTime: number): void;
|
|
4503
|
+
mSwitchTime: number;
|
|
4504
|
+
get_mClutchReleaseTime(): number;
|
|
4505
|
+
set_mClutchReleaseTime(mClutchReleaseTime: number): void;
|
|
4506
|
+
mClutchReleaseTime: number;
|
|
4507
|
+
get_mSwitchLatency(): number;
|
|
4508
|
+
set_mSwitchLatency(mSwitchLatency: number): void;
|
|
4509
|
+
mSwitchLatency: number;
|
|
4510
|
+
get_mShiftUpRPM(): number;
|
|
4511
|
+
set_mShiftUpRPM(mShiftUpRPM: number): void;
|
|
4512
|
+
mShiftUpRPM: number;
|
|
4513
|
+
get_mShiftDownRPM(): number;
|
|
4514
|
+
set_mShiftDownRPM(mShiftDownRPM: number): void;
|
|
4515
|
+
mShiftDownRPM: number;
|
|
4516
|
+
get_mClutchStrength(): number;
|
|
4517
|
+
set_mClutchStrength(mClutchStrength: number): void;
|
|
4518
|
+
mClutchStrength: number;
|
|
4519
|
+
}
|
|
4520
|
+
class VehicleTransmission extends VehicleTransmissionSettings {
|
|
4521
|
+
Set(inCurrentGear: number, inClutchFriction: number): void;
|
|
4522
|
+
GetCurrentGear(): number;
|
|
4523
|
+
GetClutchFriction(): number;
|
|
4524
|
+
IsSwitchingGear(): boolean;
|
|
4525
|
+
GetCurrentRatio(): number;
|
|
4526
|
+
}
|
|
4527
|
+
class VehicleDifferentialSettings {
|
|
4528
|
+
constructor();
|
|
4529
|
+
get_mLeftWheel(): number;
|
|
4530
|
+
set_mLeftWheel(mLeftWheel: number): void;
|
|
4531
|
+
mLeftWheel: number;
|
|
4532
|
+
get_mRightWheel(): number;
|
|
4533
|
+
set_mRightWheel(mRightWheel: number): void;
|
|
4534
|
+
mRightWheel: number;
|
|
4535
|
+
get_mDifferentialRatio(): number;
|
|
4536
|
+
set_mDifferentialRatio(mDifferentialRatio: number): void;
|
|
4537
|
+
mDifferentialRatio: number;
|
|
4538
|
+
get_mLeftRightSplit(): number;
|
|
4539
|
+
set_mLeftRightSplit(mLeftRightSplit: number): void;
|
|
4540
|
+
mLeftRightSplit: number;
|
|
4541
|
+
get_mLimitedSlipRatio(): number;
|
|
4542
|
+
set_mLimitedSlipRatio(mLimitedSlipRatio: number): void;
|
|
4543
|
+
mLimitedSlipRatio: number;
|
|
4544
|
+
get_mEngineTorqueRatio(): number;
|
|
4545
|
+
set_mEngineTorqueRatio(mEngineTorqueRatio: number): void;
|
|
4546
|
+
mEngineTorqueRatio: number;
|
|
4547
|
+
}
|
|
4548
|
+
class VehicleControllerSettings {}
|
|
4549
|
+
class VehicleController {
|
|
4550
|
+
GetRefCount(): number;
|
|
4551
|
+
AddRef(): void;
|
|
4552
|
+
Release(): void;
|
|
4553
|
+
}
|
|
4554
|
+
class WheeledVehicleController extends VehicleController {
|
|
4555
|
+
constructor(
|
|
4556
|
+
inSettings: WheeledVehicleControllerSettings,
|
|
4557
|
+
inConstraint: VehicleConstraint
|
|
4558
|
+
);
|
|
4559
|
+
SetDriverInput(
|
|
4560
|
+
inForward: number,
|
|
4561
|
+
inRight: number,
|
|
4562
|
+
inBrake: number,
|
|
4563
|
+
inHandBrake: number
|
|
4564
|
+
): void;
|
|
4565
|
+
SetForwardInput(inForward: number): void;
|
|
4566
|
+
GetForwardInput(): number;
|
|
4567
|
+
SetRightInput(inRight: number): void;
|
|
4568
|
+
GetRightInput(): number;
|
|
4569
|
+
SetBrakeInput(inBrake: number): void;
|
|
4570
|
+
GetBrakeInput(): number;
|
|
4571
|
+
SetHandBrakeInput(inHandBrake: number): void;
|
|
4572
|
+
GetHandBrakeInput(): number;
|
|
4573
|
+
GetEngine(): VehicleEngine;
|
|
4574
|
+
GetTransmission(): VehicleTransmission;
|
|
4575
|
+
GetDifferentials(): ArrayVehicleDifferentialSettings;
|
|
4576
|
+
GetDifferentialLimitedSlipRatio(): number;
|
|
4577
|
+
SetDifferentialLimitedSlipRatio(inV: number): void;
|
|
4578
|
+
GetWheelSpeedAtClutch(): number;
|
|
4579
|
+
}
|
|
4580
|
+
class MotorcycleControllerSettings extends WheeledVehicleControllerSettings {
|
|
4581
|
+
constructor();
|
|
4582
|
+
get_mMaxLeanAngle(): number;
|
|
4583
|
+
set_mMaxLeanAngle(mMaxLeanAngle: number): void;
|
|
4584
|
+
mMaxLeanAngle: number;
|
|
4585
|
+
get_mLeanSpringConstant(): number;
|
|
4586
|
+
set_mLeanSpringConstant(mLeanSpringConstant: number): void;
|
|
4587
|
+
mLeanSpringConstant: number;
|
|
4588
|
+
get_mLeanSpringDamping(): number;
|
|
4589
|
+
set_mLeanSpringDamping(mLeanSpringDamping: number): void;
|
|
4590
|
+
mLeanSpringDamping: number;
|
|
4591
|
+
get_mLeanSpringIntegrationCoefficient(): number;
|
|
4592
|
+
set_mLeanSpringIntegrationCoefficient(
|
|
4593
|
+
mLeanSpringIntegrationCoefficient: number
|
|
4594
|
+
): void;
|
|
4595
|
+
mLeanSpringIntegrationCoefficient: number;
|
|
4596
|
+
get_mLeanSpringIntegrationCoefficientDecay(): number;
|
|
4597
|
+
set_mLeanSpringIntegrationCoefficientDecay(
|
|
4598
|
+
mLeanSpringIntegrationCoefficientDecay: number
|
|
4599
|
+
): void;
|
|
4600
|
+
mLeanSpringIntegrationCoefficientDecay: number;
|
|
4601
|
+
get_mLeanSmoothingFactor(): number;
|
|
4602
|
+
set_mLeanSmoothingFactor(mLeanSmoothingFactor: number): void;
|
|
4603
|
+
mLeanSmoothingFactor: number;
|
|
4604
|
+
}
|
|
4605
|
+
class MotorcycleController extends WheeledVehicleController {
|
|
4606
|
+
constructor(
|
|
4607
|
+
inSettings: MotorcycleControllerSettings,
|
|
4608
|
+
inConstraint: VehicleConstraint
|
|
4609
|
+
);
|
|
4610
|
+
GetWheelBase(): number;
|
|
4611
|
+
EnableLeanController(inEnable: boolean): void;
|
|
4612
|
+
IsLeanControllerEnabled(): boolean;
|
|
4613
|
+
}
|
|
4614
|
+
class Skeleton {
|
|
4615
|
+
constructor();
|
|
4616
|
+
AddJoint(inName: JPHString, inParentIndex: number): number;
|
|
4617
|
+
GetJointCount(): number;
|
|
4618
|
+
AreJointsCorrectlyOrdered(): boolean;
|
|
4619
|
+
CalculateParentJointIndices(): void;
|
|
4620
|
+
}
|
|
4621
|
+
class SkeletalAnimationJointState {
|
|
4622
|
+
FromMatrix(inMatrix: Mat44): void;
|
|
4623
|
+
ToMatrix(): Mat44;
|
|
4624
|
+
get_mTranslation(): Vec3;
|
|
4625
|
+
set_mTranslation(mTranslation: Vec3): void;
|
|
4626
|
+
mTranslation: Vec3;
|
|
4627
|
+
get_mRotation(): Quat;
|
|
4628
|
+
set_mRotation(mRotation: Quat): void;
|
|
4629
|
+
mRotation: Quat;
|
|
4630
|
+
}
|
|
4631
|
+
class SkeletalAnimationKeyframe extends SkeletalAnimationJointState {
|
|
4632
|
+
constructor();
|
|
4633
|
+
get_mTime(): number;
|
|
4634
|
+
set_mTime(mTime: number): void;
|
|
4635
|
+
mTime: number;
|
|
4636
|
+
}
|
|
4637
|
+
class ArraySkeletonKeyframe {
|
|
4638
|
+
constructor();
|
|
4639
|
+
empty(): boolean;
|
|
4640
|
+
size(): number;
|
|
4641
|
+
at(inIndex: number): SkeletalAnimationKeyframe;
|
|
4642
|
+
push_back(inValue: SkeletalAnimationKeyframe): void;
|
|
4643
|
+
reserve(inSize: number): void;
|
|
4644
|
+
resize(inSize: number): void;
|
|
4645
|
+
clear(): void;
|
|
4646
|
+
}
|
|
4647
|
+
class SkeletalAnimationAnimatedJoint {
|
|
4648
|
+
constructor();
|
|
4649
|
+
get_mJointName(): JPHString;
|
|
4650
|
+
set_mJointName(mJointName: JPHString): void;
|
|
4651
|
+
mJointName: JPHString;
|
|
4652
|
+
get_mKeyframes(): ArraySkeletonKeyframe;
|
|
4653
|
+
set_mKeyframes(mKeyframes: ArraySkeletonKeyframe): void;
|
|
4654
|
+
mKeyframes: ArraySkeletonKeyframe;
|
|
4655
|
+
}
|
|
4656
|
+
class ArraySkeletonAnimatedJoint {
|
|
4657
|
+
constructor();
|
|
4658
|
+
empty(): boolean;
|
|
4659
|
+
size(): number;
|
|
4660
|
+
at(inIndex: number): SkeletalAnimationAnimatedJoint;
|
|
4661
|
+
push_back(inValue: SkeletalAnimationAnimatedJoint): void;
|
|
4662
|
+
reserve(inSize: number): void;
|
|
4663
|
+
resize(inSize: number): void;
|
|
4664
|
+
clear(): void;
|
|
4665
|
+
}
|
|
4666
|
+
class SkeletalAnimation {
|
|
4667
|
+
constructor();
|
|
4668
|
+
GetDuration(): number;
|
|
4669
|
+
ScaleJoints(inScale: number): void;
|
|
4670
|
+
Sample(inTime: number, ioPose: SkeletonPose): void;
|
|
4671
|
+
GetAnimatedJoints(): ArraySkeletonAnimatedJoint;
|
|
4672
|
+
}
|
|
4673
|
+
class SkeletonPose {
|
|
4674
|
+
constructor();
|
|
4675
|
+
SetSkeleton(inSkeleton: Skeleton): void;
|
|
4676
|
+
GetSkeleton(): Skeleton;
|
|
4677
|
+
SetRootOffset(inOffset: RVec3): void;
|
|
4678
|
+
GetRootOffset(): RVec3;
|
|
4679
|
+
GetJointCount(): number;
|
|
4680
|
+
GetJoint(inJoint: number): SkeletalAnimationJointState;
|
|
4681
|
+
GetJointMatrices(): ArrayMat44;
|
|
4682
|
+
GetJointMatrix(inJoint: number): Mat44;
|
|
4683
|
+
CalculateJointMatrices(): void;
|
|
4684
|
+
CalculateJointStates(): void;
|
|
4685
|
+
}
|
|
4686
|
+
class RagdollPart extends BodyCreationSettings {
|
|
4687
|
+
get_mToParent(): TwoBodyConstraintSettings;
|
|
4688
|
+
set_mToParent(mToParent: TwoBodyConstraintSettings): void;
|
|
4689
|
+
mToParent: TwoBodyConstraintSettings;
|
|
4690
|
+
}
|
|
4691
|
+
class ArrayRagdollPart {
|
|
4692
|
+
constructor();
|
|
4693
|
+
empty(): boolean;
|
|
4694
|
+
size(): number;
|
|
4695
|
+
at(inIndex: number): RagdollPart;
|
|
4696
|
+
push_back(inValue: RagdollPart): void;
|
|
4697
|
+
reserve(inSize: number): void;
|
|
4698
|
+
resize(inSize: number): void;
|
|
4699
|
+
clear(): void;
|
|
4700
|
+
}
|
|
4701
|
+
class RagdollAdditionalConstraint {
|
|
4702
|
+
get_mBodyIdx(index: number): number;
|
|
4703
|
+
set_mBodyIdx(index: number, mBodyIdx: number): void;
|
|
4704
|
+
mBodyIdx: number;
|
|
4705
|
+
get_mConstraint(): TwoBodyConstraintSettings;
|
|
4706
|
+
set_mConstraint(mConstraint: TwoBodyConstraintSettings): void;
|
|
4707
|
+
mConstraint: TwoBodyConstraintSettings;
|
|
4708
|
+
}
|
|
4709
|
+
class ArrayRagdollAdditionalConstraint {
|
|
4710
|
+
constructor();
|
|
4711
|
+
empty(): boolean;
|
|
4712
|
+
size(): number;
|
|
4713
|
+
at(inIndex: number): RagdollAdditionalConstraint;
|
|
4714
|
+
push_back(inValue: RagdollAdditionalConstraint): void;
|
|
4715
|
+
reserve(inSize: number): void;
|
|
4716
|
+
resize(inSize: number): void;
|
|
4717
|
+
clear(): void;
|
|
4718
|
+
}
|
|
4719
|
+
class RagdollSettings {
|
|
4720
|
+
constructor();
|
|
4721
|
+
Stabilize(): boolean;
|
|
4722
|
+
CreateRagdoll(
|
|
4723
|
+
inCollisionGroup: number,
|
|
4724
|
+
inUserData: number,
|
|
4725
|
+
inSystem: PhysicsSystem
|
|
4726
|
+
): Ragdoll;
|
|
4727
|
+
GetSkeleton(): Skeleton;
|
|
4728
|
+
DisableParentChildCollisions(
|
|
4729
|
+
inJointMatrices?: Mat44MemRef,
|
|
4730
|
+
inMinSeparationDistance?: number
|
|
4731
|
+
): void;
|
|
4732
|
+
CalculateBodyIndexToConstraintIndex(): void;
|
|
4733
|
+
CalculateConstraintIndexToBodyIdxPair(): void;
|
|
4734
|
+
get_mSkeleton(): Skeleton;
|
|
4735
|
+
set_mSkeleton(mSkeleton: Skeleton): void;
|
|
4736
|
+
mSkeleton: Skeleton;
|
|
4737
|
+
get_mParts(): ArrayRagdollPart;
|
|
4738
|
+
set_mParts(mParts: ArrayRagdollPart): void;
|
|
4739
|
+
mParts: ArrayRagdollPart;
|
|
4740
|
+
get_mAdditionalConstraints(): ArrayRagdollAdditionalConstraint;
|
|
4741
|
+
set_mAdditionalConstraints(
|
|
4742
|
+
mAdditionalConstraints: ArrayRagdollAdditionalConstraint
|
|
4743
|
+
): void;
|
|
4744
|
+
mAdditionalConstraints: ArrayRagdollAdditionalConstraint;
|
|
4745
|
+
}
|
|
4746
|
+
class Ragdoll {
|
|
4747
|
+
constructor(inSystem: PhysicsSystem);
|
|
4748
|
+
AddToPhysicsSystem(
|
|
4749
|
+
inActivationMode: EActivation,
|
|
4750
|
+
inLockBodies?: boolean
|
|
4751
|
+
): void;
|
|
4752
|
+
RemoveFromPhysicsSystem(inLockBodies?: boolean): void;
|
|
4753
|
+
Activate(inLockBodies?: boolean): void;
|
|
4754
|
+
IsActive(inLockBodies?: boolean): boolean;
|
|
4755
|
+
SetGroupID(inGroupID: number, inLockBodies?: boolean): void;
|
|
4756
|
+
SetPose(inPose: SkeletonPose, inLockBodies?: boolean): void;
|
|
4757
|
+
GetPose(outPose: SkeletonPose, inLockBodies?: boolean): void;
|
|
4758
|
+
ResetWarmStart(): void;
|
|
4759
|
+
DriveToPoseUsingKinematics(
|
|
4760
|
+
inPose: SkeletonPose,
|
|
4761
|
+
inDeltaTime: number,
|
|
4762
|
+
inLockBodies?: boolean
|
|
4763
|
+
): void;
|
|
4764
|
+
DriveToPoseUsingMotors(inPose: SkeletonPose): void;
|
|
4765
|
+
SetLinearAndAngularVelocity(
|
|
4766
|
+
inLinearVelocity: Vec3,
|
|
4767
|
+
inAngularVelocity: Vec3,
|
|
4768
|
+
inLockBodies?: boolean
|
|
4769
|
+
): void;
|
|
4770
|
+
SetLinearVelocity(inLinearVelocity: Vec3, inLockBodies?: boolean): void;
|
|
4771
|
+
AddLinearVelocity(inLinearVelocity: Vec3, inLockBodies?: boolean): void;
|
|
4772
|
+
AddImpulse(inImpulse: Vec3, inLockBodies?: boolean): void;
|
|
4773
|
+
GetRootTransform(
|
|
4774
|
+
outPosition: RVec3,
|
|
4775
|
+
outRotation: Quat,
|
|
4776
|
+
inLockBodies?: boolean
|
|
4777
|
+
): void;
|
|
4778
|
+
GetBodyCount(): number;
|
|
4779
|
+
GetBodyID(inBodyIndex: number): BodyID;
|
|
4780
|
+
GetBodyIDs(): BodyIDVector;
|
|
4781
|
+
GetConstraintCount(): number;
|
|
4782
|
+
GetWorldSpaceBounds(inLockBodies?: boolean): AABox;
|
|
4783
|
+
GetConstraint(inConstraintIndex: number): TwoBodyConstraint;
|
|
4784
|
+
GetRagdollSettings(): RagdollSettings;
|
|
4785
|
+
}
|
|
4786
|
+
class BroadPhaseLayerInterface {
|
|
4787
|
+
GetNumBroadPhaseLayers(): number;
|
|
4788
|
+
}
|
|
4789
|
+
class BroadPhaseLayer {
|
|
4790
|
+
constructor(inLayer: number);
|
|
4791
|
+
GetValue(): number;
|
|
4792
|
+
}
|
|
4793
|
+
class BroadPhaseLayerInterfaceEm extends BroadPhaseLayerInterface {}
|
|
4794
|
+
class BroadPhaseLayerInterfaceJS extends BroadPhaseLayerInterfaceEm {
|
|
4795
|
+
constructor();
|
|
4796
|
+
GetNumBroadPhaseLayers(): number;
|
|
4797
|
+
GetBPLayer(inLayer: number): number;
|
|
4798
|
+
}
|
|
4799
|
+
class BroadPhaseLayerInterfaceTable extends BroadPhaseLayerInterface {
|
|
4800
|
+
constructor(inNumObjectLayers: number, inNumBroadPhaseLayers: number);
|
|
4801
|
+
MapObjectToBroadPhaseLayer(
|
|
4802
|
+
inObjectLayer: number,
|
|
4803
|
+
inBroadPhaseLayer: BroadPhaseLayer
|
|
4804
|
+
): void;
|
|
4805
|
+
}
|
|
4806
|
+
class ObjectVsBroadPhaseLayerFilterTable extends ObjectVsBroadPhaseLayerFilter {
|
|
4807
|
+
constructor(
|
|
4808
|
+
inBroadPhaseLayerInterface: BroadPhaseLayerInterface,
|
|
4809
|
+
inNumBroadPhaseLayers: number,
|
|
4810
|
+
inObjectLayerPairFilter: ObjectLayerPairFilter,
|
|
4811
|
+
inNumObjectLayers: number
|
|
4812
|
+
);
|
|
4813
|
+
}
|
|
4814
|
+
class ObjectLayerPairFilterTable extends ObjectLayerPairFilter {
|
|
4815
|
+
constructor(inNumObjectLayers: number);
|
|
4816
|
+
GetNumObjectLayers(): number;
|
|
4817
|
+
DisableCollision(inLayer1: number, inLayer2: number): void;
|
|
4818
|
+
EnableCollision(inLayer1: number, inLayer2: number): void;
|
|
4819
|
+
}
|
|
4820
|
+
class BroadPhaseLayerInterfaceMask extends BroadPhaseLayerInterface {
|
|
4821
|
+
constructor(inNumBroadPhaseLayers: number);
|
|
4822
|
+
ConfigureLayer(
|
|
4823
|
+
inBroadPhaseLayer: BroadPhaseLayer,
|
|
4824
|
+
inGroupsToInclude: number,
|
|
4825
|
+
inGroupsToExclude: number
|
|
4826
|
+
): void;
|
|
4827
|
+
}
|
|
4828
|
+
class ObjectVsBroadPhaseLayerFilterMask extends ObjectVsBroadPhaseLayerFilter {
|
|
4829
|
+
constructor(inBroadPhaseLayerInterface: BroadPhaseLayerInterfaceMask);
|
|
4830
|
+
}
|
|
4831
|
+
class ObjectLayerPairFilterMask extends ObjectLayerPairFilter {
|
|
4832
|
+
constructor();
|
|
4833
|
+
sGetObjectLayer(inGroup: number, inMask: number): number;
|
|
4834
|
+
sGetGroup(inObjectLayer: number): number;
|
|
4835
|
+
sGetMask(inObjectLayer: number): number;
|
|
4836
|
+
}
|
|
4837
|
+
class JoltSettings {
|
|
4838
|
+
constructor();
|
|
4839
|
+
get_mMaxBodies(): number;
|
|
4840
|
+
set_mMaxBodies(mMaxBodies: number): void;
|
|
4841
|
+
mMaxBodies: number;
|
|
4842
|
+
get_mMaxBodyPairs(): number;
|
|
4843
|
+
set_mMaxBodyPairs(mMaxBodyPairs: number): void;
|
|
4844
|
+
mMaxBodyPairs: number;
|
|
4845
|
+
get_mMaxContactConstraints(): number;
|
|
4846
|
+
set_mMaxContactConstraints(mMaxContactConstraints: number): void;
|
|
4847
|
+
mMaxContactConstraints: number;
|
|
4848
|
+
get_mBroadPhaseLayerInterface(): BroadPhaseLayerInterface;
|
|
4849
|
+
set_mBroadPhaseLayerInterface(
|
|
4850
|
+
mBroadPhaseLayerInterface: BroadPhaseLayerInterface
|
|
4851
|
+
): void;
|
|
4852
|
+
mBroadPhaseLayerInterface: BroadPhaseLayerInterface;
|
|
4853
|
+
get_mObjectVsBroadPhaseLayerFilter(): ObjectVsBroadPhaseLayerFilter;
|
|
4854
|
+
set_mObjectVsBroadPhaseLayerFilter(
|
|
4855
|
+
mObjectVsBroadPhaseLayerFilter: ObjectVsBroadPhaseLayerFilter
|
|
4856
|
+
): void;
|
|
4857
|
+
mObjectVsBroadPhaseLayerFilter: ObjectVsBroadPhaseLayerFilter;
|
|
4858
|
+
get_mObjectLayerPairFilter(): ObjectLayerPairFilter;
|
|
4859
|
+
set_mObjectLayerPairFilter(
|
|
4860
|
+
mObjectLayerPairFilter: ObjectLayerPairFilter
|
|
4861
|
+
): void;
|
|
4862
|
+
mObjectLayerPairFilter: ObjectLayerPairFilter;
|
|
4863
|
+
}
|
|
4864
|
+
class JoltInterface {
|
|
4865
|
+
constructor(inSettings: JoltSettings);
|
|
4866
|
+
Step(inDeltaTime: number, inCollisionSteps: number): void;
|
|
4867
|
+
GetPhysicsSystem(): PhysicsSystem;
|
|
4868
|
+
GetTempAllocator(): TempAllocator;
|
|
4869
|
+
GetObjectLayerPairFilter(): ObjectLayerPairFilter;
|
|
4870
|
+
GetObjectVsBroadPhaseLayerFilter(): ObjectVsBroadPhaseLayerFilter;
|
|
4871
|
+
sGetTotalMemory(): number;
|
|
4872
|
+
sGetFreeMemory(): number;
|
|
4873
|
+
}
|
|
4874
|
+
}
|