jolt-physics
Version:
A WebAssembly port of JoltPhysics, a rigid body physics and collision detection library, suitable for games and VR applications
1,014 lines • 202 kB
TypeScript
export default Jolt;
declare function Jolt<T>(target?: T): Promise<T & typeof Jolt>;
declare module Jolt {
function destroy(obj: any): void;
function _malloc(size: number): number;
function _free(ptr: number): void;
function wrapPointer<C extends new (...args: any) => any>(ptr: number, Class: C): InstanceType<C>;
function getPointer(obj: unknown): number;
function castObject<C extends new (...args: any) => any>(object: unknown, Class: C): InstanceType<C>;
function compare(object1: unknown, object2: unknown): boolean;
const HEAP8: Int8Array;
const HEAP16: Int16Array;
const HEAP32: Int32Array;
const HEAPU8: Uint8Array;
const HEAPU16: Uint16Array;
const HEAPU32: Uint32Array;
const HEAPF32: Float32Array;
const HEAPF64: Float64Array;
class JPHString {
constructor(str: string, length: number);
c_str(): string;
size(): number;
}
class ArrayVec3 {
constructor();
empty(): boolean;
size(): number;
at(inIndex: number): Vec3;
push_back(inValue: Vec3): void;
reserve(inSize: number): void;
resize(inSize: number): void;
clear(): void;
data(): Vec3MemRef;
}
class ArrayQuat {
constructor();
empty(): boolean;
size(): number;
at(inIndex: number): Quat;
push_back(inValue: Quat): void;
reserve(inSize: number): void;
resize(inSize: number): void;
clear(): void;
data(): QuatMemRef;
}
class ArrayMat44 {
constructor();
empty(): boolean;
size(): number;
at(inIndex: number): Mat44;
push_back(inValue: Mat44): void;
reserve(inSize: number): void;
resize(inSize: number): void;
clear(): void;
data(): Mat44MemRef;
}
class ArrayBodyID {
constructor();
empty(): boolean;
size(): number;
at(inIndex: number): BodyID;
push_back(inValue: BodyID): void;
reserve(inSize: number): void;
resize(inSize: number): void;
clear(): void;
data(): BodyIDMemRef;
}
class ArrayBodyPtr {
constructor();
empty(): boolean;
size(): number;
at(inIndex: number): Body;
push_back(inValue: Body): void;
reserve(inSize: number): void;
resize(inSize: number): void;
clear(): void;
data(): BodyPtrMemRef;
}
const EBodyType_RigidBody: number;
const EBodyType_SoftBody: number;
type EBodyType = typeof EBodyType_RigidBody | typeof EBodyType_SoftBody;
function _emscripten_enum_EBodyType_EBodyType_RigidBody(): EBodyType;
function _emscripten_enum_EBodyType_EBodyType_SoftBody(): EBodyType;
const EMotionType_Static: number;
const EMotionType_Kinematic: number;
const EMotionType_Dynamic: number;
type EMotionType = typeof EMotionType_Static | typeof EMotionType_Kinematic | typeof EMotionType_Dynamic;
function _emscripten_enum_EMotionType_EMotionType_Static(): EMotionType;
function _emscripten_enum_EMotionType_EMotionType_Kinematic(): EMotionType;
function _emscripten_enum_EMotionType_EMotionType_Dynamic(): EMotionType;
const EMotionQuality_Discrete: number;
const EMotionQuality_LinearCast: number;
type EMotionQuality = typeof EMotionQuality_Discrete | typeof EMotionQuality_LinearCast;
function _emscripten_enum_EMotionQuality_EMotionQuality_Discrete(): EMotionQuality;
function _emscripten_enum_EMotionQuality_EMotionQuality_LinearCast(): EMotionQuality;
const EActivation_Activate: number;
const EActivation_DontActivate: number;
type EActivation = typeof EActivation_Activate | typeof EActivation_DontActivate;
function _emscripten_enum_EActivation_EActivation_Activate(): EActivation;
function _emscripten_enum_EActivation_EActivation_DontActivate(): EActivation;
const EShapeType_Convex: number;
const EShapeType_Compound: number;
const EShapeType_Decorated: number;
const EShapeType_Mesh: number;
const EShapeType_HeightField: number;
const EShapeType_Plane: number;
const EShapeType_Empty: number;
type EShapeType = typeof EShapeType_Convex | typeof EShapeType_Compound | typeof EShapeType_Decorated | typeof EShapeType_Mesh | typeof EShapeType_HeightField | typeof EShapeType_Plane | typeof EShapeType_Empty;
function _emscripten_enum_EShapeType_EShapeType_Convex(): EShapeType;
function _emscripten_enum_EShapeType_EShapeType_Compound(): EShapeType;
function _emscripten_enum_EShapeType_EShapeType_Decorated(): EShapeType;
function _emscripten_enum_EShapeType_EShapeType_Mesh(): EShapeType;
function _emscripten_enum_EShapeType_EShapeType_HeightField(): EShapeType;
function _emscripten_enum_EShapeType_EShapeType_Plane(): EShapeType;
function _emscripten_enum_EShapeType_EShapeType_Empty(): EShapeType;
const EShapeSubType_Sphere: number;
const EShapeSubType_Box: number;
const EShapeSubType_Capsule: number;
const EShapeSubType_TaperedCapsule: number;
const EShapeSubType_Cylinder: number;
const EShapeSubType_TaperedCylinder: number;
const EShapeSubType_ConvexHull: number;
const EShapeSubType_StaticCompound: number;
const EShapeSubType_MutableCompound: number;
const EShapeSubType_RotatedTranslated: number;
const EShapeSubType_Scaled: number;
const EShapeSubType_OffsetCenterOfMass: number;
const EShapeSubType_Mesh: number;
const EShapeSubType_HeightField: number;
const EShapeSubType_Plane: number;
const EShapeSubType_Empty: number;
type EShapeSubType = typeof EShapeSubType_Sphere | typeof EShapeSubType_Box | typeof EShapeSubType_Capsule | typeof EShapeSubType_TaperedCapsule | typeof EShapeSubType_Cylinder | typeof EShapeSubType_TaperedCylinder | typeof EShapeSubType_ConvexHull | typeof EShapeSubType_StaticCompound | typeof EShapeSubType_MutableCompound | typeof EShapeSubType_RotatedTranslated | typeof EShapeSubType_Scaled | typeof EShapeSubType_OffsetCenterOfMass | typeof EShapeSubType_Mesh | typeof EShapeSubType_HeightField | typeof EShapeSubType_Plane | typeof EShapeSubType_Empty;
function _emscripten_enum_EShapeSubType_EShapeSubType_Sphere(): EShapeSubType;
function _emscripten_enum_EShapeSubType_EShapeSubType_Box(): EShapeSubType;
function _emscripten_enum_EShapeSubType_EShapeSubType_Capsule(): EShapeSubType;
function _emscripten_enum_EShapeSubType_EShapeSubType_TaperedCapsule(): EShapeSubType;
function _emscripten_enum_EShapeSubType_EShapeSubType_Cylinder(): EShapeSubType;
function _emscripten_enum_EShapeSubType_EShapeSubType_TaperedCylinder(): EShapeSubType;
function _emscripten_enum_EShapeSubType_EShapeSubType_ConvexHull(): EShapeSubType;
function _emscripten_enum_EShapeSubType_EShapeSubType_StaticCompound(): EShapeSubType;
function _emscripten_enum_EShapeSubType_EShapeSubType_MutableCompound(): EShapeSubType;
function _emscripten_enum_EShapeSubType_EShapeSubType_RotatedTranslated(): EShapeSubType;
function _emscripten_enum_EShapeSubType_EShapeSubType_Scaled(): EShapeSubType;
function _emscripten_enum_EShapeSubType_EShapeSubType_OffsetCenterOfMass(): EShapeSubType;
function _emscripten_enum_EShapeSubType_EShapeSubType_Mesh(): EShapeSubType;
function _emscripten_enum_EShapeSubType_EShapeSubType_HeightField(): EShapeSubType;
function _emscripten_enum_EShapeSubType_EShapeSubType_Plane(): EShapeSubType;
function _emscripten_enum_EShapeSubType_EShapeSubType_Empty(): EShapeSubType;
const EConstraintSpace_LocalToBodyCOM: number;
const EConstraintSpace_WorldSpace: number;
type EConstraintSpace = typeof EConstraintSpace_LocalToBodyCOM | typeof EConstraintSpace_WorldSpace;
function _emscripten_enum_EConstraintSpace_EConstraintSpace_LocalToBodyCOM(): EConstraintSpace;
function _emscripten_enum_EConstraintSpace_EConstraintSpace_WorldSpace(): EConstraintSpace;
const ESpringMode_FrequencyAndDamping: number;
const ESpringMode_StiffnessAndDamping: number;
type ESpringMode = typeof ESpringMode_FrequencyAndDamping | typeof ESpringMode_StiffnessAndDamping;
function _emscripten_enum_ESpringMode_ESpringMode_FrequencyAndDamping(): ESpringMode;
function _emscripten_enum_ESpringMode_ESpringMode_StiffnessAndDamping(): ESpringMode;
const EOverrideMassProperties_CalculateMassAndInertia: number;
const EOverrideMassProperties_CalculateInertia: number;
const EOverrideMassProperties_MassAndInertiaProvided: number;
type EOverrideMassProperties = typeof EOverrideMassProperties_CalculateMassAndInertia | typeof EOverrideMassProperties_CalculateInertia | typeof EOverrideMassProperties_MassAndInertiaProvided;
function _emscripten_enum_EOverrideMassProperties_EOverrideMassProperties_CalculateMassAndInertia(): EOverrideMassProperties;
function _emscripten_enum_EOverrideMassProperties_EOverrideMassProperties_CalculateInertia(): EOverrideMassProperties;
function _emscripten_enum_EOverrideMassProperties_EOverrideMassProperties_MassAndInertiaProvided(): EOverrideMassProperties;
const EAllowedDOFs_TranslationX: number;
const EAllowedDOFs_TranslationY: number;
const EAllowedDOFs_TranslationZ: number;
const EAllowedDOFs_RotationX: number;
const EAllowedDOFs_RotationY: number;
const EAllowedDOFs_RotationZ: number;
const EAllowedDOFs_Plane2D: number;
const EAllowedDOFs_All: number;
type EAllowedDOFs = typeof EAllowedDOFs_TranslationX | typeof EAllowedDOFs_TranslationY | typeof EAllowedDOFs_TranslationZ | typeof EAllowedDOFs_RotationX | typeof EAllowedDOFs_RotationY | typeof EAllowedDOFs_RotationZ | typeof EAllowedDOFs_Plane2D | typeof EAllowedDOFs_All;
function _emscripten_enum_EAllowedDOFs_EAllowedDOFs_TranslationX(): EAllowedDOFs;
function _emscripten_enum_EAllowedDOFs_EAllowedDOFs_TranslationY(): EAllowedDOFs;
function _emscripten_enum_EAllowedDOFs_EAllowedDOFs_TranslationZ(): EAllowedDOFs;
function _emscripten_enum_EAllowedDOFs_EAllowedDOFs_RotationX(): EAllowedDOFs;
function _emscripten_enum_EAllowedDOFs_EAllowedDOFs_RotationY(): EAllowedDOFs;
function _emscripten_enum_EAllowedDOFs_EAllowedDOFs_RotationZ(): EAllowedDOFs;
function _emscripten_enum_EAllowedDOFs_EAllowedDOFs_Plane2D(): EAllowedDOFs;
function _emscripten_enum_EAllowedDOFs_EAllowedDOFs_All(): EAllowedDOFs;
const EStateRecorderState_None: number;
const EStateRecorderState_Global: number;
const EStateRecorderState_Bodies: number;
const EStateRecorderState_Contacts: number;
const EStateRecorderState_Constraints: number;
const EStateRecorderState_All: number;
type EStateRecorderState = typeof EStateRecorderState_None | typeof EStateRecorderState_Global | typeof EStateRecorderState_Bodies | typeof EStateRecorderState_Contacts | typeof EStateRecorderState_Constraints | typeof EStateRecorderState_All;
function _emscripten_enum_EStateRecorderState_EStateRecorderState_None(): EStateRecorderState;
function _emscripten_enum_EStateRecorderState_EStateRecorderState_Global(): EStateRecorderState;
function _emscripten_enum_EStateRecorderState_EStateRecorderState_Bodies(): EStateRecorderState;
function _emscripten_enum_EStateRecorderState_EStateRecorderState_Contacts(): EStateRecorderState;
function _emscripten_enum_EStateRecorderState_EStateRecorderState_Constraints(): EStateRecorderState;
function _emscripten_enum_EStateRecorderState_EStateRecorderState_All(): EStateRecorderState;
const EBackFaceMode_IgnoreBackFaces: number;
const EBackFaceMode_CollideWithBackFaces: number;
type EBackFaceMode = typeof EBackFaceMode_IgnoreBackFaces | typeof EBackFaceMode_CollideWithBackFaces;
function _emscripten_enum_EBackFaceMode_EBackFaceMode_IgnoreBackFaces(): EBackFaceMode;
function _emscripten_enum_EBackFaceMode_EBackFaceMode_CollideWithBackFaces(): EBackFaceMode;
const EGroundState_OnGround: number;
const EGroundState_OnSteepGround: number;
const EGroundState_NotSupported: number;
const EGroundState_InAir: number;
type EGroundState = typeof EGroundState_OnGround | typeof EGroundState_OnSteepGround | typeof EGroundState_NotSupported | typeof EGroundState_InAir;
function _emscripten_enum_EGroundState_EGroundState_OnGround(): EGroundState;
function _emscripten_enum_EGroundState_EGroundState_OnSteepGround(): EGroundState;
function _emscripten_enum_EGroundState_EGroundState_NotSupported(): EGroundState;
function _emscripten_enum_EGroundState_EGroundState_InAir(): EGroundState;
const ValidateResult_AcceptAllContactsForThisBodyPair: number;
const ValidateResult_AcceptContact: number;
const ValidateResult_RejectContact: number;
const ValidateResult_RejectAllContactsForThisBodyPair: number;
type ValidateResult = typeof ValidateResult_AcceptAllContactsForThisBodyPair | typeof ValidateResult_AcceptContact | typeof ValidateResult_RejectContact | typeof ValidateResult_RejectAllContactsForThisBodyPair;
function _emscripten_enum_ValidateResult_ValidateResult_AcceptAllContactsForThisBodyPair(): ValidateResult;
function _emscripten_enum_ValidateResult_ValidateResult_AcceptContact(): ValidateResult;
function _emscripten_enum_ValidateResult_ValidateResult_RejectContact(): ValidateResult;
function _emscripten_enum_ValidateResult_ValidateResult_RejectAllContactsForThisBodyPair(): ValidateResult;
const SoftBodyValidateResult_AcceptContact: number;
const SoftBodyValidateResult_RejectContact: number;
type SoftBodyValidateResult = typeof SoftBodyValidateResult_AcceptContact | typeof SoftBodyValidateResult_RejectContact;
function _emscripten_enum_SoftBodyValidateResult_SoftBodyValidateResult_AcceptContact(): SoftBodyValidateResult;
function _emscripten_enum_SoftBodyValidateResult_SoftBodyValidateResult_RejectContact(): SoftBodyValidateResult;
const EActiveEdgeMode_CollideOnlyWithActive: number;
const EActiveEdgeMode_CollideWithAll: number;
type EActiveEdgeMode = typeof EActiveEdgeMode_CollideOnlyWithActive | typeof EActiveEdgeMode_CollideWithAll;
function _emscripten_enum_EActiveEdgeMode_EActiveEdgeMode_CollideOnlyWithActive(): EActiveEdgeMode;
function _emscripten_enum_EActiveEdgeMode_EActiveEdgeMode_CollideWithAll(): EActiveEdgeMode;
const ECollectFacesMode_CollectFaces: number;
const ECollectFacesMode_NoFaces: number;
type ECollectFacesMode = typeof ECollectFacesMode_CollectFaces | typeof ECollectFacesMode_NoFaces;
function _emscripten_enum_ECollectFacesMode_ECollectFacesMode_CollectFaces(): ECollectFacesMode;
function _emscripten_enum_ECollectFacesMode_ECollectFacesMode_NoFaces(): ECollectFacesMode;
const SixDOFConstraintSettings_EAxis_TranslationX: number;
const SixDOFConstraintSettings_EAxis_TranslationY: number;
const SixDOFConstraintSettings_EAxis_TranslationZ: number;
const SixDOFConstraintSettings_EAxis_RotationX: number;
const SixDOFConstraintSettings_EAxis_RotationY: number;
const SixDOFConstraintSettings_EAxis_RotationZ: number;
type SixDOFConstraintSettings_EAxis = typeof SixDOFConstraintSettings_EAxis_TranslationX | typeof SixDOFConstraintSettings_EAxis_TranslationY | typeof SixDOFConstraintSettings_EAxis_TranslationZ | typeof SixDOFConstraintSettings_EAxis_RotationX | typeof SixDOFConstraintSettings_EAxis_RotationY | typeof SixDOFConstraintSettings_EAxis_RotationZ;
function _emscripten_enum_SixDOFConstraintSettings_EAxis_SixDOFConstraintSettings_EAxis_TranslationX(): SixDOFConstraintSettings_EAxis;
function _emscripten_enum_SixDOFConstraintSettings_EAxis_SixDOFConstraintSettings_EAxis_TranslationY(): SixDOFConstraintSettings_EAxis;
function _emscripten_enum_SixDOFConstraintSettings_EAxis_SixDOFConstraintSettings_EAxis_TranslationZ(): SixDOFConstraintSettings_EAxis;
function _emscripten_enum_SixDOFConstraintSettings_EAxis_SixDOFConstraintSettings_EAxis_RotationX(): SixDOFConstraintSettings_EAxis;
function _emscripten_enum_SixDOFConstraintSettings_EAxis_SixDOFConstraintSettings_EAxis_RotationY(): SixDOFConstraintSettings_EAxis;
function _emscripten_enum_SixDOFConstraintSettings_EAxis_SixDOFConstraintSettings_EAxis_RotationZ(): SixDOFConstraintSettings_EAxis;
const EConstraintType_Constraint: number;
const EConstraintType_TwoBodyConstraint: number;
type EConstraintType = typeof EConstraintType_Constraint | typeof EConstraintType_TwoBodyConstraint;
function _emscripten_enum_EConstraintType_EConstraintType_Constraint(): EConstraintType;
function _emscripten_enum_EConstraintType_EConstraintType_TwoBodyConstraint(): EConstraintType;
const EConstraintSubType_Fixed: number;
const EConstraintSubType_Point: number;
const EConstraintSubType_Hinge: number;
const EConstraintSubType_Slider: number;
const EConstraintSubType_Distance: number;
const EConstraintSubType_Cone: number;
const EConstraintSubType_SwingTwist: number;
const EConstraintSubType_SixDOF: number;
const EConstraintSubType_Path: number;
const EConstraintSubType_Vehicle: number;
const EConstraintSubType_RackAndPinion: number;
const EConstraintSubType_Gear: number;
const EConstraintSubType_Pulley: number;
type EConstraintSubType = typeof EConstraintSubType_Fixed | typeof EConstraintSubType_Point | typeof EConstraintSubType_Hinge | typeof EConstraintSubType_Slider | typeof EConstraintSubType_Distance | typeof EConstraintSubType_Cone | typeof EConstraintSubType_SwingTwist | typeof EConstraintSubType_SixDOF | typeof EConstraintSubType_Path | typeof EConstraintSubType_Vehicle | typeof EConstraintSubType_RackAndPinion | typeof EConstraintSubType_Gear | typeof EConstraintSubType_Pulley;
function _emscripten_enum_EConstraintSubType_EConstraintSubType_Fixed(): EConstraintSubType;
function _emscripten_enum_EConstraintSubType_EConstraintSubType_Point(): EConstraintSubType;
function _emscripten_enum_EConstraintSubType_EConstraintSubType_Hinge(): EConstraintSubType;
function _emscripten_enum_EConstraintSubType_EConstraintSubType_Slider(): EConstraintSubType;
function _emscripten_enum_EConstraintSubType_EConstraintSubType_Distance(): EConstraintSubType;
function _emscripten_enum_EConstraintSubType_EConstraintSubType_Cone(): EConstraintSubType;
function _emscripten_enum_EConstraintSubType_EConstraintSubType_SwingTwist(): EConstraintSubType;
function _emscripten_enum_EConstraintSubType_EConstraintSubType_SixDOF(): EConstraintSubType;
function _emscripten_enum_EConstraintSubType_EConstraintSubType_Path(): EConstraintSubType;
function _emscripten_enum_EConstraintSubType_EConstraintSubType_Vehicle(): EConstraintSubType;
function _emscripten_enum_EConstraintSubType_EConstraintSubType_RackAndPinion(): EConstraintSubType;
function _emscripten_enum_EConstraintSubType_EConstraintSubType_Gear(): EConstraintSubType;
function _emscripten_enum_EConstraintSubType_EConstraintSubType_Pulley(): EConstraintSubType;
const EMotorState_Off: number;
const EMotorState_Velocity: number;
const EMotorState_Position: number;
type EMotorState = typeof EMotorState_Off | typeof EMotorState_Velocity | typeof EMotorState_Position;
function _emscripten_enum_EMotorState_EMotorState_Off(): EMotorState;
function _emscripten_enum_EMotorState_EMotorState_Velocity(): EMotorState;
function _emscripten_enum_EMotorState_EMotorState_Position(): EMotorState;
const ETransmissionMode_Auto: number;
const ETransmissionMode_Manual: number;
type ETransmissionMode = typeof ETransmissionMode_Auto | typeof ETransmissionMode_Manual;
function _emscripten_enum_ETransmissionMode_ETransmissionMode_Auto(): ETransmissionMode;
function _emscripten_enum_ETransmissionMode_ETransmissionMode_Manual(): ETransmissionMode;
const ETireFrictionDirection_Longitudinal: number;
const ETireFrictionDirection_Lateral: number;
type ETireFrictionDirection = typeof ETireFrictionDirection_Longitudinal | typeof ETireFrictionDirection_Lateral;
function _emscripten_enum_ETireFrictionDirection_ETireFrictionDirection_Longitudinal(): ETireFrictionDirection;
function _emscripten_enum_ETireFrictionDirection_ETireFrictionDirection_Lateral(): ETireFrictionDirection;
const ESwingType_Cone: number;
const ESwingType_Pyramid: number;
type ESwingType = typeof ESwingType_Cone | typeof ESwingType_Pyramid;
function _emscripten_enum_ESwingType_ESwingType_Cone(): ESwingType;
function _emscripten_enum_ESwingType_ESwingType_Pyramid(): ESwingType;
const EPathRotationConstraintType_Free: number;
const EPathRotationConstraintType_ConstrainAroundTangent: number;
const EPathRotationConstraintType_ConstrainAroundNormal: number;
const EPathRotationConstraintType_ConstrainAroundBinormal: number;
const EPathRotationConstraintType_ConstrainToPath: number;
const EPathRotationConstraintType_FullyConstrained: number;
type EPathRotationConstraintType = typeof EPathRotationConstraintType_Free | typeof EPathRotationConstraintType_ConstrainAroundTangent | typeof EPathRotationConstraintType_ConstrainAroundNormal | typeof EPathRotationConstraintType_ConstrainAroundBinormal | typeof EPathRotationConstraintType_ConstrainToPath | typeof EPathRotationConstraintType_FullyConstrained;
function _emscripten_enum_EPathRotationConstraintType_EPathRotationConstraintType_Free(): EPathRotationConstraintType;
function _emscripten_enum_EPathRotationConstraintType_EPathRotationConstraintType_ConstrainAroundTangent(): EPathRotationConstraintType;
function _emscripten_enum_EPathRotationConstraintType_EPathRotationConstraintType_ConstrainAroundNormal(): EPathRotationConstraintType;
function _emscripten_enum_EPathRotationConstraintType_EPathRotationConstraintType_ConstrainAroundBinormal(): EPathRotationConstraintType;
function _emscripten_enum_EPathRotationConstraintType_EPathRotationConstraintType_ConstrainToPath(): EPathRotationConstraintType;
function _emscripten_enum_EPathRotationConstraintType_EPathRotationConstraintType_FullyConstrained(): EPathRotationConstraintType;
const SoftBodySharedSettings_EBendType_None: number;
const SoftBodySharedSettings_EBendType_Distance: number;
const SoftBodySharedSettings_EBendType_Dihedral: number;
type SoftBodySharedSettings_EBendType = typeof SoftBodySharedSettings_EBendType_None | typeof SoftBodySharedSettings_EBendType_Distance | typeof SoftBodySharedSettings_EBendType_Dihedral;
function _emscripten_enum_SoftBodySharedSettings_EBendType_SoftBodySharedSettings_EBendType_None(): SoftBodySharedSettings_EBendType;
function _emscripten_enum_SoftBodySharedSettings_EBendType_SoftBodySharedSettings_EBendType_Distance(): SoftBodySharedSettings_EBendType;
function _emscripten_enum_SoftBodySharedSettings_EBendType_SoftBodySharedSettings_EBendType_Dihedral(): SoftBodySharedSettings_EBendType;
const SoftBodySharedSettings_ELRAType_None: number;
const SoftBodySharedSettings_ELRAType_EuclideanDistance: number;
const SoftBodySharedSettings_ELRAType_GeodesicDistance: number;
type SoftBodySharedSettings_ELRAType = typeof SoftBodySharedSettings_ELRAType_None | typeof SoftBodySharedSettings_ELRAType_EuclideanDistance | typeof SoftBodySharedSettings_ELRAType_GeodesicDistance;
function _emscripten_enum_SoftBodySharedSettings_ELRAType_SoftBodySharedSettings_ELRAType_None(): SoftBodySharedSettings_ELRAType;
function _emscripten_enum_SoftBodySharedSettings_ELRAType_SoftBodySharedSettings_ELRAType_EuclideanDistance(): SoftBodySharedSettings_ELRAType;
function _emscripten_enum_SoftBodySharedSettings_ELRAType_SoftBodySharedSettings_ELRAType_GeodesicDistance(): SoftBodySharedSettings_ELRAType;
const MeshShapeSettings_EBuildQuality_FavorRuntimePerformance: number;
const MeshShapeSettings_EBuildQuality_FavorBuildSpeed: number;
type MeshShapeSettings_EBuildQuality = typeof MeshShapeSettings_EBuildQuality_FavorRuntimePerformance | typeof MeshShapeSettings_EBuildQuality_FavorBuildSpeed;
function _emscripten_enum_MeshShapeSettings_EBuildQuality_MeshShapeSettings_EBuildQuality_FavorRuntimePerformance(): MeshShapeSettings_EBuildQuality;
function _emscripten_enum_MeshShapeSettings_EBuildQuality_MeshShapeSettings_EBuildQuality_FavorBuildSpeed(): MeshShapeSettings_EBuildQuality;
class Vec3MemRef {
}
class QuatMemRef {
}
class Mat44MemRef {
}
class BodyIDMemRef {
}
class BodyPtrMemRef {
}
class FloatMemRef {
}
class Uint8MemRef {
}
class UintMemRef {
}
class Vec3 {
constructor();
constructor(inV: Float3);
constructor(inX: number, inY: number, inZ: number);
sZero(): Vec3;
sOne(): Vec3;
sAxisX(): Vec3;
sAxisY(): Vec3;
sAxisZ(): Vec3;
sReplicate(inValue: number): Vec3;
sMin(inLHS: Vec3, inRHS: Vec3): Vec3;
sMax(inLHS: Vec3, inRHS: Vec3): Vec3;
sClamp(inValue: Vec3, inMin: Vec3, inMax: Vec3): Vec3;
sFusedMultiplyAdd(inMul1: Vec3, inMul2: Vec3, inAdd: Vec3): Vec3;
sOr(inV1: Vec3, inV2: Vec3): Vec3;
sXor(inV1: Vec3, inV2: Vec3): Vec3;
sAnd(inV1: Vec3, inV2: Vec3): Vec3;
sUnitSpherical(inTheta: number, inPhi: number): Vec3;
GetComponent(inCoordinate: number): number;
Equals(inV: Vec3): boolean;
NotEquals(inV: Vec3): boolean;
LengthSq(): number;
Length(): number;
Normalized(): Vec3;
NormalizedOr(inZeroValue: Vec3): Vec3;
GetNormalizedPerpendicular(): Vec3;
GetX(): number;
GetY(): number;
GetZ(): number;
SetX(inX: number): void;
SetY(inY: number): void;
SetZ(inZ: number): void;
Set(inX: number, inY: number, inZ: number): void;
SetComponent(inCoordinate: number, inValue: number): void;
IsNearZero(inMaxDistSq?: number): boolean;
IsClose(inV: Vec3, inMaxDistSq?: number): boolean;
IsNormalized(inTolerance?: number): boolean;
GetLowestComponentIndex(): number;
GetHighestComponentIndex(): number;
Abs(): Vec3;
Reciprocal(): Vec3;
Cross(inRHS: Vec3): Vec3;
Dot(inRHS: Vec3): number;
DotV(inRHS: Vec3): Vec3;
DotV4(inRHS: Vec3): Vec4;
Add(inV: Vec3): Vec3;
Sub(inV: Vec3): Vec3;
Mul(inV: number): Vec3;
Div(inV: number): Vec3;
MulVec3(inV: Vec3): Vec3;
MulFloat(inV: number): Vec3;
DivVec3(inV: Vec3): Vec3;
DivFloat(inV: number): Vec3;
AddVec3(inV: Vec3): Vec3;
SubVec3(inV: Vec3): Vec3;
SplatX(): Vec4;
SplatY(): Vec4;
SplatZ(): Vec4;
ReduceMin(): number;
ReduceMax(): number;
Sqrt(): Vec3;
GetSign(): Vec3;
}
class RVec3 {
constructor();
constructor(inX: number, inY: number, inZ: number);
sZero(): RVec3;
sOne(): RVec3;
sAxisX(): RVec3;
sAxisY(): RVec3;
sAxisZ(): RVec3;
sReplicate(inValue: number): RVec3;
sMin(inLHS: RVec3, inRHS: RVec3): RVec3;
sMax(inLHS: RVec3, inRHS: RVec3): RVec3;
sClamp(inValue: RVec3, inMin: RVec3, inMax: RVec3): RVec3;
GetComponent(inCoordinate: number): number;
Equals(inV: RVec3): boolean;
NotEquals(inV: RVec3): boolean;
LengthSq(): number;
Length(): number;
Normalized(): RVec3;
GetX(): number;
GetY(): number;
GetZ(): number;
SetX(inX: number): void;
SetY(inY: number): void;
SetZ(inZ: number): void;
Set(inX: number, inY: number, inZ: number): void;
SetComponent(inCoordinate: number, inValue: number): void;
IsNearZero(inMaxDistSq?: number): boolean;
IsClose(inV: RVec3, inMaxDistSq?: number): boolean;
IsNormalized(inTolerance?: number): boolean;
Abs(): RVec3;
Reciprocal(): RVec3;
Cross(inRHS: RVec3): RVec3;
Dot(inRHS: RVec3): number;
Add(inV: Vec3): RVec3;
Sub(inV: Vec3): RVec3;
Mul(inV: number): RVec3;
Div(inV: number): RVec3;
MulRVec3(inV: RVec3): RVec3;
MulFloat(inV: number): RVec3;
DivRVec3(inV: RVec3): RVec3;
DivFloat(inV: number): RVec3;
AddRVec3(inV: RVec3): RVec3;
SubRVec3(inV: RVec3): RVec3;
Sqrt(): RVec3;
GetSign(): RVec3;
}
class Vec4 {
constructor();
constructor(inV: Vec4);
constructor(inV: Vec3, inW: number);
constructor(inX: number, inY: number, inZ: number, inW: number);
sZero(): Vec4;
sOne(): Vec4;
sReplicate(inV: number): Vec4;
sMin(inLHS: Vec4, inRHS: Vec4): Vec4;
sMax(inLHS: Vec4, inRHS: Vec4): Vec4;
sFusedMultiplyAdd(inMul1: Vec4, inMul2: Vec4, inAdd: Vec4): Vec4;
sOr(inV1: Vec4, inV2: Vec4): Vec4;
sXor(inV1: Vec4, inV2: Vec4): Vec4;
sAnd(inV1: Vec4, inV2: Vec4): Vec4;
GetX(): number;
GetY(): number;
GetZ(): number;
GetW(): number;
SetX(inX: number): void;
SetY(inY: number): void;
SetZ(inZ: number): void;
SetW(inW: number): void;
Set(inX: number, inY: number, inZ: number, inW: number): void;
GetComponent(inCoordinate: number): number;
IsClose(inV: Vec4, inMaxDistSq?: number): boolean;
IsNearZero(inMaxDistSq?: number): boolean;
IsNormalized(inTolerance?: number): boolean;
Add(inV: Vec4): Vec4;
Sub(inV: Vec4): Vec4;
Mul(inV: number): Vec4;
Div(inV: number): Vec4;
MulVec4(inV: Vec4): Vec4;
MulFloat(inV: number): Vec4;
DivVec4(inV: Vec4): Vec4;
DivFloat(inV: number): Vec4;
AddVec4(inV: Vec4): Vec4;
SubVec4(inV: Vec4): Vec4;
}
class Vector2 {
constructor();
SetZero(): void;
IsZero(): void;
IsClose(inV: Vector2, inMaxDistSq?: number): void;
IsNormalized(inTolerance?: number): void;
Normalized(): Vector2;
GetComponent(inCoordinate: number): number;
Add(inV: Vector2): Vector2;
Sub(inV: Vector2): Vector2;
Mul(inV: number): Vector2;
Div(inV: number): Vector2;
MulFloat(inV: number): Vector2;
DivFloat(inV: number): Vector2;
AddVector2(inV: Vector2): Vector2;
SubVector2(inV: Vector2): Vector2;
Dot(inRHS: Vector2): number;
}
class Quat {
constructor();
constructor(inX: number, inY: number, inZ: number, inW: number);
sZero(): Quat;
sIdentity(): Quat;
sRotation(inRotation: Vec3, inAngle: number): Quat;
sFromTo(inFrom: Vec3, inTo: Vec3): Quat;
Equals(inQ: Quat): boolean;
NotEquals(inQ: Quat): boolean;
MulQuat(inQ: Quat): Quat;
MulVec3(inV: Vec3): Vec3;
MulFloat(inV: number): Quat;
IsClose(inQ: Quat, inMaxDistSq?: number): boolean;
IsNormalized(inTolerance?: number): boolean;
Length(): number;
LengthSq(): number;
Normalized(): Quat;
sEulerAngles(inInput: Vec3): Quat;
GetEulerAngles(): Vec3;
GetX(): number;
GetY(): number;
GetZ(): number;
GetW(): number;
GetXYZ(): Vec3;
SetX(inX: number): void;
SetY(inY: number): void;
SetZ(inZ: number): void;
SetW(inW: number): void;
Set(inX: number, inY: number, inZ: number, inW: number): void;
InverseRotate(inV: Vec3): Vec3;
RotateAxisX(): Vec3;
RotateAxisY(): Vec3;
RotateAxisZ(): Vec3;
Dot(inQ: Quat): number;
Conjugated(): Quat;
Inversed(): Quat;
EnsureWPositive(): Quat;
GetPerpendicular(): Quat;
GetRotationAngle(inAxis: Vec3): number;
GetTwist(inAxis: Vec3): Quat;
GetSwingTwist(outSwing: Quat, outTwist: Quat): void;
LERP(inDestination: Quat, inFraction: number): Quat;
SLERP(inDestination: Quat, inFraction: number): Quat;
}
class Float3 {
constructor(inX: number, inY: number, inZ: number);
Equals(inV: Float3): boolean;
NotEquals(inV: Float3): boolean;
get_x(): number;
set_x(x: number): void;
x: number;
get_y(): number;
set_y(y: number): void;
y: number;
get_z(): number;
set_z(z: number): void;
z: number;
}
class Mat44 {
constructor();
sZero(): Mat44;
sIdentity(): Mat44;
sRotationX(inX: number): Mat44;
sRotationY(inY: number): Mat44;
sRotationZ(inZ: number): Mat44;
sRotation(inQ: Quat): Mat44;
sRotationAxisAngle(inAxis: Vec3, inAngle: number): Mat44;
sTranslation(inTranslation: Vec3): Mat44;
sRotationTranslation(inRotation: Quat, inTranslation: Vec3): Mat44;
sInverseRotationTranslation(inRotation: Quat, inTranslation: Vec3): Mat44;
sScale(inScale: number): Mat44;
sScaleVec3(inScale: Vec3): Mat44;
sOuterProduct(inV1: Vec3, inV2: Vec3): Mat44;
sCrossProduct(inV: Vec3): Mat44;
sQuatLeftMultiply(inQ: Quat): Mat44;
sQuatRightMultiply(inQ: Quat): Mat44;
sLookAt(inPos: Vec3, inTarget: Vec3, inUp: Vec3): Mat44;
sPerspective(inFovY: number, inAspect: number, inNear: number, inFar: number): Mat44;
GetAxisX(): Vec3;
GetAxisY(): Vec3;
GetAxisZ(): Vec3;
GetDiagonal3(): Vec3;
GetDiagonal4(): Vec4;
GetRotation(): Mat44;
GetRotationSafe(): Mat44;
GetQuaternion(): Quat;
GetTranslation(): Vec3;
Equals(inV: Mat44): boolean;
NotEquals(inV: Mat44): boolean;
IsClose(inM: Mat44, inMaxDistSq?: number): boolean;
Add(inM: Mat44): Mat44;
MulFloat(inV: number): Mat44;
MulMat44(inM: Mat44): Mat44;
MulVec3(inV: Vec3): Vec3;
MulVec4(inV: Vec4): Vec4;
AddMat44(inM: Mat44): Mat44;
SubMat44(inM: Mat44): Mat44;
Multiply3x3(inV: Vec3): Vec3;
Multiply3x3Transposed(inV: Vec3): Vec3;
Multiply3x3LeftTransposed(inM: Mat44): Mat44;
Multiply3x3RightTransposed(inM: Mat44): Mat44;
Transposed(): Mat44;
Transposed3x3(): Mat44;
Inversed(): Mat44;
InversedRotationTranslation(): Mat44;
Adjointed3x3(): Mat44;
SetInversed3x3(inM: Mat44): boolean;
GetDeterminant3x3(): number;
Inversed3x3(): Mat44;
GetDirectionPreservingMatrix(): Mat44;
PreTranslated(inTranslation: Vec3): Mat44;
PostTranslated(inTranslation: Vec3): Mat44;
PreScaled(inScale: Vec3): Mat44;
PostScaled(inScale: Vec3): Mat44;
Decompose(outScale: Vec3): Mat44;
SetColumn3(inCol: number, inV: Vec3): void;
SetColumn4(inCol: number, inV: Vec4): void;
SetAxisX(inV: Vec3): void;
SetAxisY(inV: Vec3): void;
SetAxisZ(inV: Vec3): void;
SetDiagonal3(inV: Vec3): void;
SetDiagonal4(inV: Vec4): void;
SetTranslation(inV: Vec3): void;
GetColumn3(inCol: number): Vec3;
GetColumn4(inCol: number): Vec4;
}
class RMat44 {
constructor();
sZero(): RMat44;
sIdentity(): RMat44;
sRotation(inQ: Quat): RMat44;
sTranslation(inTranslation: RVec3): RMat44;
sRotationTranslation(inRotation: Quat, inTranslation: RVec3): RMat44;
sInverseRotationTranslation(inRotation: Quat, inTranslation: RVec3): RMat44;
ToMat44(): Mat44;
Equals(inV: RMat44): boolean;
NotEquals(inV: RMat44): boolean;
MulVec3(inV: Vec3): RVec3;
MulRVec3(inV: RVec3): RVec3;
MulMat44(inM: Mat44): RMat44;
MulRMat44(inM: RMat44): RMat44;
GetAxisX(): Vec3;
GetAxisY(): Vec3;
GetAxisZ(): Vec3;
GetRotation(): Mat44;
SetRotation(inRotation: Mat44): void;
GetQuaternion(): Quat;
GetTranslation(): RVec3;
IsClose(inM: RMat44, inMaxDistSq?: number): boolean;
Multiply3x3(inV: Vec3): Vec3;
Multiply3x3Transposed(inV: Vec3): Vec3;
Transposed3x3(): Mat44;
Inversed(): RMat44;
InversedRotationTranslation(): RMat44;
PreTranslated(inTranslation: Vec3): RMat44;
PostTranslated(inTranslation: Vec3): RMat44;
PreScaled(inScale: Vec3): RMat44;
PostScaled(inScale: Vec3): RMat44;
GetDirectionPreservingMatrix(): Mat44;
SetColumn3(inCol: number, inV: Vec3): void;
GetColumn3(inCol: number): Vec3;
SetAxisX(inV: Vec3): void;
SetAxisY(inV: Vec3): void;
SetAxisZ(inV: Vec3): void;
SetTranslation(inV: RVec3): void;
SetColumn4(inCol: number, inV: Vec4): void;
GetColumn4(inCol: number): Vec4;
Decompose(outScale: Vec3): RMat44;
}
class AABox {
constructor();
constructor(inMin: Vec3, inMax: Vec3);
sBiggest(): AABox;
sFromTwoPoints(inP1: Vec3, inP2: Vec3): AABox;
sFromTriangle(inVertices: VertexList, inTriangle: IndexedTriangle): AABox;
Equals(inB: AABox): boolean;
NotEquals(inB: AABox): boolean;
SetEmpty(): void;
IsValid(): boolean;
EncapsulateVec3(inV: Vec3): void;
EncapsulateAABox(inBox: AABox): void;
EncapsulateTriangle(inTriangle: Triangle): void;
EncapsulateIndexedTriangle(inVertices: VertexList, inTriangle: IndexedTriangle): void;
Intersect(inOther: AABox): AABox;
EnsureMinimalEdgeLength(inMinEdgeLength: number): void;
ExpandBy(inV: Vec3): void;
GetCenter(): Vec3;
GetExtent(): Vec3;
GetSize(): Vec3;
GetSurfaceArea(): number;
GetVolume(): number;
ContainsVec3(inOther: Vec3): boolean;
ContainsRVec3(inOther: RVec3): boolean;
OverlapsAABox(inOther: AABox): boolean;
OverlapsPlane(inOther: AABox): boolean;
TranslateVec3(inOther: Vec3): void;
TranslateRVec3(inOther: RVec3): void;
TransformedMat44(inOther: Mat44): AABox;
TransformedRMat44(inOther: RMat44): AABox;
Scaled(inScale: Vec3): AABox;
GetClosestPoint(inV: Vec3): Vec3;
GetSqDistanceTo(inV: Vec3): number;
get_mMin(): Vec3;
set_mMin(mMin: Vec3): void;
mMin: Vec3;
get_mMax(): Vec3;
set_mMax(mMax: Vec3): void;
mMax: Vec3;
}
class OrientedBox {
constructor();
constructor(inOrientation: Mat44, inHalfExtents: Vec3);
get_mOrientation(): Mat44;
set_mOrientation(mOrientation: Mat44): void;
mOrientation: Mat44;
get_mHalfExtents(): Vec3;
set_mHalfExtents(mHalfExtents: Vec3): void;
mHalfExtents: Vec3;
}
class RayCast {
constructor();
constructor(inOrigin: Vec3, inDirection: Vec3);
Transformed(inTransform: Mat44): RayCast;
Translated(inTranslation: Vec3): RayCast;
GetPointOnRay(inFraction: number): Vec3;
get_mOrigin(): Vec3;
set_mOrigin(mOrigin: Vec3): void;
mOrigin: Vec3;
get_mDirection(): Vec3;
set_mDirection(mDirection: Vec3): void;
mDirection: Vec3;
}
class RRayCast {
constructor();
constructor(inOrigin: RVec3, inDirection: Vec3);
Transformed(inTransform: RMat44): RRayCast;
Translated(inTranslation: RVec3): RRayCast;
GetPointOnRay(inFraction: number): RVec3;
get_mOrigin(): RVec3;
set_mOrigin(mOrigin: RVec3): void;
mOrigin: RVec3;
get_mDirection(): Vec3;
set_mDirection(mDirection: Vec3): void;
mDirection: Vec3;
}
class BroadPhaseCastResult {
constructor();
Reset(): void;
get_mBodyID(): BodyID;
set_mBodyID(mBodyID: BodyID): void;
mBodyID: BodyID;
get_mFraction(): number;
set_mFraction(mFraction: number): void;
mFraction: number;
}
class RayCastResult extends BroadPhaseCastResult {
constructor();
get_mSubShapeID2(): SubShapeID;
set_mSubShapeID2(mSubShapeID2: SubShapeID): void;
mSubShapeID2: SubShapeID;
}
class AABoxCast {
constructor();
get_mBox(): AABox;
set_mBox(mBox: AABox): void;
mBox: AABox;
get_mDirection(): Vec3;
set_mDirection(mDirection: Vec3): void;
mDirection: Vec3;
}
class ShapeCast {
constructor(inShape: Shape, inScale: Vec3, inCenterOfMassStart: Mat44, inDirection: Vec3);
get_mShape(): Shape;
set_mShape(mShape: Shape): void;
readonly mShape: Shape;
get_mScale(): Vec3;
set_mScale(mScale: Vec3): void;
readonly mScale: Vec3;
get_mCenterOfMassStart(): Mat44;
set_mCenterOfMassStart(mCenterOfMassStart: Mat44): void;
readonly mCenterOfMassStart: Mat44;
get_mDirection(): Vec3;
set_mDirection(mDirection: Vec3): void;
readonly mDirection: Vec3;
GetPointOnRay(inFraction: number): Vec3;
}
class RShapeCast {
constructor(inShape: Shape, inScale: Vec3, inCenterOfMassStart: RMat44, inDirection: Vec3);
get_mShape(): Shape;
set_mShape(mShape: Shape): void;
readonly mShape: Shape;
get_mScale(): Vec3;
set_mScale(mScale: Vec3): void;
readonly mScale: Vec3;
get_mCenterOfMassStart(): RMat44;
set_mCenterOfMassStart(mCenterOfMassStart: RMat44): void;
readonly mCenterOfMassStart: RMat44;
get_mDirection(): Vec3;
set_mDirection(mDirection: Vec3): void;
readonly mDirection: Vec3;
GetPointOnRay(inFraction: number): RVec3;
}
class Plane {
constructor(inNormal: Vec3, inConstant: number);
GetNormal(): Vec3;
SetNormal(inNormal: Vec3): void;
GetConstant(): number;
SetConstant(inConstant: number): void;
sFromPointAndNormal(inPoint: Vec3, inNormal: Vec3): Plane;
sFromPointsCCW(inPoint1: Vec3, inPoint2: Vec3, inPoint3: Vec3): Plane;
Offset(inDistance: number): Plane;
Scaled(inScale: Vec3): Plane;
GetTransformed(inTransform: Mat44): Plane;
ProjectPointOnPlane(inPoint: Vec3): Vec3;
SignedDistance(inPoint: Vec3): number;
}
class TransformedShape {
constructor();
CastRay(inRay: RRayCast, ioHit: RayCastResult): void;
CastRay(inRay: RRayCast, inRayCastSettings: RayCastSettings, ioCollector: CastRayCollector, inShapeFilter: ShapeFilter): void;
CollidePoint(inPoint: RVec3, ioCollector: CollidePointCollector, inShapeFilter: ShapeFilter): void;
CollideShape(inShape: Shape, inShapeScale: Vec3, inCenterOfMassTransform: RMat44, inCollideShapeSettings: CollideShapeSettings, inBaseOffset: RVec3, ioCollector: CollideShapeCollector, inShapeFilter: ShapeFilter): void;
CastShape(inShapeCast: RShapeCast, inShapeCastSettings: ShapeCastSettings, inBaseOffset: RVec3, ioCollector: CastShapeCollector, inShapeFilter: ShapeFilter): void;
CollectTransformedShapes(inBox: AABox, ioCollector: TransformedShapeCollector, inShapeFilter: ShapeFilter): void;
GetShapeScale(): Vec3;
SetShapeScale(inScale: Vec3): void;
GetCenterOfMassTransform(): RMat44;
GetInverseCenterOfMassTransform(): RMat44;
SetWorldTransform(inPosition: RVec3, inRotation: Quat, inScale: Vec3): void;
SetWorldTransform(inTransform: RMat44): void;
GetWorldTransform(): RMat44;
GetWorldSpaceBounds(): AABox;
GetWorldSpaceSurfaceNormal(inSubShapeID: SubShapeID, inPosition: RVec3): Vec3;
GetMaterial(inSubShapeID: SubShapeID): PhysicsMaterial;
get_mShapePositionCOM(): RVec3;
set_mShapePositionCOM(mShapePositionCOM: RVec3): void;
mShapePositionCOM: RVec3;
get_mShapeRotation(): Quat;
set_mShapeRotation(mShapeRotation: Quat): void;
mShapeRotation: Quat;
get_mShape(): Shape;
set_mShape(mShape: Shape): void;
mShape: Shape;
get_mShapeScale(): Float3;
set_mShapeScale(mShapeScale: Float3): void;
mShapeScale: Float3;
get_mBodyID(): BodyID;
set_mBodyID(mBodyID: BodyID): void;
mBodyID: BodyID;
}
class PhysicsMaterial {
constructor();
GetRefCount(): number;
AddRef(): void;
Release(): void;
}
class PhysicsMaterialList {
constructor();
empty(): boolean;
size(): number;
at(inIndex: number): PhysicsMaterial;
push_back(inMaterial: PhysicsMaterial): void;
reserve(inSize: number): void;
resize(inSize: number): void;
clear(): void;
}
class Triangle {
constructor();
constructor(inV1: Vec3, inV2: Vec3, inV3: Vec3, inMaterialIndex?: number, inUserData?: number);
get_mV(index: number): Float3;
set_mV(index: number, mV: Float3): void;
mV: Float3;
get_mMaterialIndex(): number;
set_mMaterialIndex(mMaterialIndex: number): void;
mMaterialIndex: number;
get_mUserData(): number;
set_mUserData(mUserData: number): void;
mUserData: number;
}
class TriangleList {
constructor();
empty(): boolean;
size(): number;
at(inIndex: number): Triangle;
push_back(inTriangle: Triangle): void;
reserve(inSize: number): void;
resize(inSize: number): void;
clear(): void;
}
class VertexList {
constructor();
empty(): boolean;
size(): number;
at(inIndex: number): Float3;
push_back(inVertex: Float3): void;
reserve(inSize: number): void;
resize(inSize: number): void;
clear(): void;
}
class IndexedTriangle {
constructor();
constructor(inI1: number, inI2: number, inI3: number, inMaterialIndex: number, inUserData?: number);
get_mIdx(index: number): number;
set_mIdx(index: number, mIdx: number): void;
mIdx: number;
get_mMaterialIndex(): number;
set_mMaterialIndex(mMaterialIndex: number): void;
mMaterialIndex: number;
get_mUserData(): number;
set_mUserData(mUserData: number): void;
mUserData: number;
}
class IndexedTriangleList {
constructor();
empty(): boolean;
size(): number;
at(inIndex: number): IndexedTriangle;
push_back(inTriangle: IndexedTriangle): void;
reserve(inSize: number): void;
resize(inSize: number): void;
clear(): void;
}
class ShapeResult {
IsValid(): boolean;
HasError(): boolean;
GetError(): JPHString;
Get(): Shape;
Clear(): void;
}
class ShapeSettings {
GetRefCount(): number;
AddRef(): void;
Release(): void;
Create(): ShapeResult;
ClearCachedResult(): void;
get_mUserData(): number;
set_mUserData(mUserData: number): void;
mUserData: number;
}
class Shape {
GetRefCount(): number;
AddRef(): void;
Release(): void;
GetType(): EShapeType;
GetSubType(): EShapeSubType;
MustBeStatic(): boolean;
GetLocalBounds(): AABox;
GetWorldSpaceBounds(inCenterOfMassTransform: Mat44, inScale: Vec3): AABox;
GetCenterOfMass(): Vec3;
GetUserData(): number;
SetUserData(inUserData: number): void;
GetSubShapeIDBitsRecursive(): number;
GetInnerRadius(): number;
GetMassProperties(): MassProperties;
GetLeafShape(inSubShapeID: SubShapeID, outRemainder: SubShapeID): Shape;
GetMaterial(inSubShapeID: SubShapeID): PhysicsMaterial;
GetSurfaceNormal(inSubShapeID: SubShapeID, inLocalSurfacePosition: Vec3): Vec3;
GetSubShapeUserData(inSubShapeID: SubShapeID): number;
GetSubShapeTransformedShape(inSubShapeID: SubShapeID, inPositionCOM: Vec3, inRotation: Quat, inScale: Vec3, outRemainder: SubShapeID): TransformedShape;
GetVolume(): number;
IsValidScale(inScale: Vec3): boolean;
MakeScaleValid(inScale: Vec3): Vec3;
ScaleShape(inScale: Vec3): ShapeResult;
}
class ShapeGetTriangles {
constructor(inShape: Shape, inBox: AABox, inPositionCOM: Vec3, inRotation: Quat, inScale: Vec3);
GetNumTriangles(): number;
GetVerticesSize(): number;
GetVerticesData(): any;
GetMaterial(inTriangle: number): PhysicsMaterial;
}
class ConvexShapeSettings extends ShapeSettings {
get_mMaterial(): PhysicsMaterial;
set_mMaterial(mMaterial: PhysicsMaterial): void;
mMaterial: PhysicsMaterial;
get_mDensity(): number;
set_mDensity(mDensity: number): void;
mDensity: number;
}
class ConvexShape extends Shape {
SetMaterial(inMaterial: PhysicsMaterial): void;
GetDensity(): number;
SetDensity(inDensity: number): void;
}
class SphereShapeSettings extends ConvexShapeSettings {
constructor(inRadius: number, inMaterial?: PhysicsMaterial);
get_mRadius(): number;
set_mRadius(mRadius: number): void;
mRadius: number;
}
class SphereShape extends ConvexShape {
constructor(inRadius: number, inMaterial?: PhysicsMaterial);
GetRadius(): number;
}
class BoxShapeSettings extends ConvexShapeSettings {
constructor(inHalfExtent: Vec3, inConvexRadius?: number, inMaterial?: PhysicsMaterial);
get_mHalfExtent(): Vec3;
set_mHalfExtent(mHalfExtent: Vec3): void;
mHalfExtent: Vec3;
get_mConvexRadius(): number;
set_mCo