@dimforge/rapier3d-compat
Version:
3-dimensional physics engine in Rust - official JS bindings. Compatibility package with inlined webassembly as base64.
1 lines • 2.31 MB
JavaScript
"use strict";let A;Object.defineProperty(exports,"__esModule",{value:!0});const I=new Array(128).fill(void 0);function g(A){return I[A]}I.push(void 0,null,!0,!1);let C=I.length;function B(A){C===I.length&&I.push(I.length+1);const g=C;return C=I[g],I[g]=A,g}function Q(I,g){try{return I.apply(this,g)}catch(I){A.__wbindgen_export_0(B(I))}}const E="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&E.decode();let i=null;function D(I,g){return I>>>=0,E.decode((null!==i&&0!==i.byteLength||(i=new Uint8Array(A.memory.buffer)),i).subarray(I,I+g))}function o(A){return null==A}let S=null;function w(){return(null===S||!0===S.buffer.detached||void 0===S.buffer.detached&&S.buffer!==A.memory.buffer)&&(S=new DataView(A.memory.buffer)),S}function G(A){const B=g(A);return function(A){A<132||(I[A]=C,C=A)}(A),B}function k(A,I){if(!(A instanceof I))throw new Error(`expected instance of ${I.name}`)}let K=128;function h(A){if(1==K)throw new Error("out of js stack");return I[--K]=A,K}let U=null;function y(I,g){return I>>>=0,(null!==U&&0!==U.byteLength||(U=new Int32Array(A.memory.buffer)),U).subarray(I/4,I/4+g)}let J=null;function N(){return null!==J&&0!==J.byteLength||(J=new Float32Array(A.memory.buffer)),J}function M(A,I){return A>>>=0,N().subarray(A/4,A/4+I)}let a=null;function F(){return null!==a&&0!==a.byteLength||(a=new Uint32Array(A.memory.buffer)),a}let s=0;function R(A,I){const g=I(4*A.length,4)>>>0;return F().set(A,g/4),s=A.length,g}function c(A,I){const g=I(4*A.length,4)>>>0;return N().set(A,g/4),s=A.length,g}Object.freeze({Vertex:0,0:"Vertex",Edge:1,1:"Edge",Face:2,2:"Face",Unknown:3,3:"Unknown"});const Y=Object.freeze({LinX:0,0:"LinX",LinY:1,1:"LinY",LinZ:2,2:"LinZ",AngX:3,3:"AngX",AngY:4,4:"AngY",AngZ:5,5:"AngZ"}),q=Object.freeze({Revolute:0,0:"Revolute",Fixed:1,1:"Fixed",Prismatic:2,2:"Prismatic",Rope:3,3:"Rope",Spring:4,4:"Spring",Spherical:5,5:"Spherical",Generic:6,6:"Generic"});Object.freeze({AccelerationBased:0,0:"AccelerationBased",ForceBased:1,1:"ForceBased"}),Object.freeze({Dynamic:0,0:"Dynamic",Fixed:1,1:"Fixed",KinematicPositionBased:2,2:"KinematicPositionBased",KinematicVelocityBased:3,3:"KinematicVelocityBased"});const l=Object.freeze({Ball:0,0:"Ball",Cuboid:1,1:"Cuboid",Capsule:2,2:"Capsule",Segment:3,3:"Segment",Polyline:4,4:"Polyline",Triangle:5,5:"Triangle",TriMesh:6,6:"TriMesh",HeightField:7,7:"HeightField",Compound:8,8:"Compound",ConvexPolyhedron:9,9:"ConvexPolyhedron",Cylinder:10,10:"Cylinder",Cone:11,11:"Cone",RoundCuboid:12,12:"RoundCuboid",RoundTriangle:13,13:"RoundTriangle",RoundCylinder:14,14:"RoundCylinder",RoundCone:15,15:"RoundCone",RoundConvexPolyhedron:16,16:"RoundConvexPolyhedron",HalfSpace:17,17:"HalfSpace",Voxels:18,18:"Voxels"}),L="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawbroadphase_free(I>>>0,1)));class H{static __wrap(A){A>>>=0;const I=Object.create(H.prototype);return I.__wbg_ptr=A,L.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,L.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawbroadphase_free(I,0)}constructor(){const I=A.rawbroadphase_new();return this.__wbg_ptr=I>>>0,L.register(this,this.__wbg_ptr,this),this}castRay(g,C,B,Q,E,i,D,S,w,G,U,y){try{k(g,GA),k(C,lA),k(B,T),k(Q,WA),k(E,WA);const J=A.rawbroadphase_castRay(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,E.__wbg_ptr,i,D,S,o(w)?4294967297:w>>>0,!o(G),o(G)?0:G,!o(U),o(U)?0:U,h(y));return 0===J?void 0:FA.__wrap(J)}finally{I[K++]=void 0}}castRayAndGetNormal(g,C,B,Q,E,i,D,S,w,G,U,y){try{k(g,GA),k(C,lA),k(B,T),k(Q,WA),k(E,WA);const J=A.rawbroadphase_castRayAndGetNormal(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,E.__wbg_ptr,i,D,S,o(w)?4294967297:w>>>0,!o(G),o(G)?0:G,!o(U),o(U)?0:U,h(y));return 0===J?void 0:RA.__wrap(J)}finally{I[K++]=void 0}}intersectionsWithRay(g,C,B,Q,E,i,D,S,w,G,U,y,J){try{k(g,GA),k(C,lA),k(B,T),k(Q,WA),k(E,WA),A.rawbroadphase_intersectionsWithRay(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,E.__wbg_ptr,i,D,h(S),w,o(G)?4294967297:G>>>0,!o(U),o(U)?0:U,!o(y),o(y)?0:y,h(J))}finally{I[K++]=void 0,I[K++]=void 0}}intersectionWithShape(g,C,B,Q,E,i,D,S,G,U,y){try{const M=A.__wbindgen_add_to_stack_pointer(-16);k(g,GA),k(C,lA),k(B,T),k(Q,WA),k(E,HA),k(i,TA),A.rawbroadphase_intersectionWithShape(M,this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,E.__wbg_ptr,i.__wbg_ptr,D,o(S)?4294967297:S>>>0,!o(G),o(G)?0:G,!o(U),o(U)?0:U,h(y));var J=w().getInt32(M+0,!0),N=w().getFloat64(M+8,!0);return 0===J?void 0:N}finally{A.__wbindgen_add_to_stack_pointer(16),I[K++]=void 0}}projectPoint(g,C,B,Q,E,i,D,S,w,G){try{k(g,GA),k(C,lA),k(B,T),k(Q,WA);const U=A.rawbroadphase_projectPoint(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,E,i,o(D)?4294967297:D>>>0,!o(S),o(S)?0:S,!o(w),o(w)?0:w,h(G));return 0===U?void 0:JA.__wrap(U)}finally{I[K++]=void 0}}projectPointAndGetFeature(g,C,B,Q,E,i,D,S,w){try{k(g,GA),k(C,lA),k(B,T),k(Q,WA);const G=A.rawbroadphase_projectPointAndGetFeature(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,E,o(i)?4294967297:i>>>0,!o(D),o(D)?0:D,!o(S),o(S)?0:S,h(w));return 0===G?void 0:JA.__wrap(G)}finally{I[K++]=void 0}}intersectionsWithPoint(g,C,B,Q,E,i,D,S,w,G){try{k(g,GA),k(C,lA),k(B,T),k(Q,WA),A.rawbroadphase_intersectionsWithPoint(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,h(E),i,o(D)?4294967297:D>>>0,!o(S),o(S)?0:S,!o(w),o(w)?0:w,h(G))}finally{I[K++]=void 0,I[K++]=void 0}}castShape(g,C,B,Q,E,i,D,S,w,G,U,y,J,N,M){try{k(g,GA),k(C,lA),k(B,T),k(Q,WA),k(E,HA),k(i,WA),k(D,TA);const a=A.rawbroadphase_castShape(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,E.__wbg_ptr,i.__wbg_ptr,D.__wbg_ptr,S,w,G,U,o(y)?4294967297:y>>>0,!o(J),o(J)?0:J,!o(N),o(N)?0:N,h(M));return 0===a?void 0:d.__wrap(a)}finally{I[K++]=void 0}}intersectionsWithShape(g,C,B,Q,E,i,D,S,w,G,U,y){try{k(g,GA),k(C,lA),k(B,T),k(Q,WA),k(E,HA),k(i,TA),A.rawbroadphase_intersectionsWithShape(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,E.__wbg_ptr,i.__wbg_ptr,h(D),S,o(w)?4294967297:w>>>0,!o(G),o(G)?0:G,!o(U),o(U)?0:U,h(y))}finally{I[K++]=void 0,I[K++]=void 0}}collidersWithAabbIntersectingAabb(g,C,B,Q,E,i){try{k(g,GA),k(C,lA),k(B,T),k(Q,WA),k(E,WA),A.rawbroadphase_collidersWithAabbIntersectingAabb(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,E.__wbg_ptr,h(i))}finally{I[K++]=void 0}}}const t="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawccdsolver_free(I>>>0,1)));class p{__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,t.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawccdsolver_free(I,0)}constructor(){const I=A.rawccdsolver_new();return this.__wbg_ptr=I>>>0,t.register(this,this.__wbg_ptr,this),this}}const r="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawcharactercollision_free(I>>>0,1)));class e{__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,r.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawcharactercollision_free(I,0)}constructor(){const I=A.rawcharactercollision_new();return this.__wbg_ptr=I>>>0,r.register(this,this.__wbg_ptr,this),this}handle(){return A.rawcharactercollision_handle(this.__wbg_ptr)}translationDeltaApplied(){const I=A.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);return WA.__wrap(I)}translationDeltaRemaining(){const I=A.rawcharactercollision_translationDeltaRemaining(this.__wbg_ptr);return WA.__wrap(I)}toi(){return A.rawcharactercollision_toi(this.__wbg_ptr)}worldWitness1(){const I=A.rawcharactercollision_worldWitness1(this.__wbg_ptr);return WA.__wrap(I)}worldWitness2(){const I=A.rawcharactercollision_worldWitness2(this.__wbg_ptr);return WA.__wrap(I)}worldNormal1(){const I=A.rawcharactercollision_worldNormal1(this.__wbg_ptr);return WA.__wrap(I)}worldNormal2(){const I=A.rawcharactercollision_worldNormal2(this.__wbg_ptr);return WA.__wrap(I)}}const n="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawcolliderset_free(I>>>0,1)));class T{static __wrap(A){A>>>=0;const I=Object.create(T.prototype);return I.__wbg_ptr=A,n.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,n.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawcolliderset_free(I,0)}coTranslation(I){const g=A.rawcolliderset_coTranslation(this.__wbg_ptr,I);return WA.__wrap(g)}coRotation(I){const g=A.rawcolliderset_coRotation(this.__wbg_ptr,I);return HA.__wrap(g)}coTranslationWrtParent(I){const g=A.rawcolliderset_coTranslationWrtParent(this.__wbg_ptr,I);return 0===g?void 0:WA.__wrap(g)}coRotationWrtParent(I){const g=A.rawcolliderset_coRotationWrtParent(this.__wbg_ptr,I);return 0===g?void 0:HA.__wrap(g)}coSetTranslation(I,g,C,B){A.rawcolliderset_coSetTranslation(this.__wbg_ptr,I,g,C,B)}coSetTranslationWrtParent(I,g,C,B){A.rawcolliderset_coSetTranslationWrtParent(this.__wbg_ptr,I,g,C,B)}coSetRotation(I,g,C,B,Q){A.rawcolliderset_coSetRotation(this.__wbg_ptr,I,g,C,B,Q)}coSetRotationWrtParent(I,g,C,B,Q){A.rawcolliderset_coSetRotationWrtParent(this.__wbg_ptr,I,g,C,B,Q)}coIsSensor(I){return 0!==A.rawcolliderset_coIsSensor(this.__wbg_ptr,I)}coShapeType(I){return A.rawcolliderset_coShapeType(this.__wbg_ptr,I)}coHalfspaceNormal(I){const g=A.rawcolliderset_coHalfspaceNormal(this.__wbg_ptr,I);return 0===g?void 0:WA.__wrap(g)}coHalfExtents(I){const g=A.rawcolliderset_coHalfExtents(this.__wbg_ptr,I);return 0===g?void 0:WA.__wrap(g)}coSetHalfExtents(I,g){k(g,WA),A.rawcolliderset_coSetHalfExtents(this.__wbg_ptr,I,g.__wbg_ptr)}coRadius(I){const g=A.rawcolliderset_coRadius(this.__wbg_ptr,I);return 4294967297===g?void 0:g}coSetRadius(I,g){A.rawcolliderset_coSetRadius(this.__wbg_ptr,I,g)}coHalfHeight(I){const g=A.rawcolliderset_coHalfHeight(this.__wbg_ptr,I);return 4294967297===g?void 0:g}coSetHalfHeight(I,g){A.rawcolliderset_coSetHalfHeight(this.__wbg_ptr,I,g)}coRoundRadius(I){const g=A.rawcolliderset_coRoundRadius(this.__wbg_ptr,I);return 4294967297===g?void 0:g}coSetRoundRadius(I,g){A.rawcolliderset_coSetRoundRadius(this.__wbg_ptr,I,g)}coVoxelData(I){try{const B=A.__wbindgen_add_to_stack_pointer(-16);A.rawcolliderset_coVoxelData(B,this.__wbg_ptr,I);var g=w().getInt32(B+0,!0),C=w().getInt32(B+4,!0);let Q;return 0!==g&&(Q=y(g,C).slice(),A.__wbindgen_export_1(g,4*C,4)),Q}finally{A.__wbindgen_add_to_stack_pointer(16)}}coVoxelSize(I){const g=A.rawcolliderset_coVoxelSize(this.__wbg_ptr,I);return 0===g?void 0:WA.__wrap(g)}coSetVoxel(I,g,C,B,Q){A.rawcolliderset_coSetVoxel(this.__wbg_ptr,I,g,C,B,Q)}coPropagateVoxelChange(I,g,C,B,Q,E,i,D){A.rawcolliderset_coPropagateVoxelChange(this.__wbg_ptr,I,g,C,B,Q,E,i,D)}coCombineVoxelStates(I,g,C,B,Q){A.rawcolliderset_coCombineVoxelStates(this.__wbg_ptr,I,g,C,B,Q)}coVertices(I){try{const B=A.__wbindgen_add_to_stack_pointer(-16);A.rawcolliderset_coVertices(B,this.__wbg_ptr,I);var g=w().getInt32(B+0,!0),C=w().getInt32(B+4,!0);let Q;return 0!==g&&(Q=M(g,C).slice(),A.__wbindgen_export_1(g,4*C,4)),Q}finally{A.__wbindgen_add_to_stack_pointer(16)}}coIndices(I){try{const B=A.__wbindgen_add_to_stack_pointer(-16);A.rawcolliderset_coIndices(B,this.__wbg_ptr,I);var g=w().getInt32(B+0,!0),C=w().getInt32(B+4,!0);let Q;return 0!==g&&(Q=function(A,I){return A>>>=0,F().subarray(A/4,A/4+I)}(g,C).slice(),A.__wbindgen_export_1(g,4*C,4)),Q}finally{A.__wbindgen_add_to_stack_pointer(16)}}coTriMeshFlags(I){const g=A.rawcolliderset_coTriMeshFlags(this.__wbg_ptr,I);return 4294967297===g?void 0:g}coHeightFieldFlags(I){const g=A.rawcolliderset_coHeightFieldFlags(this.__wbg_ptr,I);return 4294967297===g?void 0:g}coHeightfieldHeights(I){try{const B=A.__wbindgen_add_to_stack_pointer(-16);A.rawcolliderset_coHeightfieldHeights(B,this.__wbg_ptr,I);var g=w().getInt32(B+0,!0),C=w().getInt32(B+4,!0);let Q;return 0!==g&&(Q=M(g,C).slice(),A.__wbindgen_export_1(g,4*C,4)),Q}finally{A.__wbindgen_add_to_stack_pointer(16)}}coHeightfieldScale(I){const g=A.rawcolliderset_coHeightfieldScale(this.__wbg_ptr,I);return 0===g?void 0:WA.__wrap(g)}coHeightfieldNRows(I){const g=A.rawcolliderset_coHeightfieldNRows(this.__wbg_ptr,I);return 4294967297===g?void 0:g}coHeightfieldNCols(I){const g=A.rawcolliderset_coHeightfieldNCols(this.__wbg_ptr,I);return 4294967297===g?void 0:g}coParent(I){try{const B=A.__wbindgen_add_to_stack_pointer(-16);A.rawcolliderset_coParent(B,this.__wbg_ptr,I);var g=w().getInt32(B+0,!0),C=w().getFloat64(B+8,!0);return 0===g?void 0:C}finally{A.__wbindgen_add_to_stack_pointer(16)}}coSetEnabled(I,g){A.rawcolliderset_coSetEnabled(this.__wbg_ptr,I,g)}coIsEnabled(I){return 0!==A.rawcolliderset_coIsEnabled(this.__wbg_ptr,I)}coSetContactSkin(I,g){A.rawcolliderset_coSetContactSkin(this.__wbg_ptr,I,g)}coContactSkin(I){return A.rawcolliderset_coContactSkin(this.__wbg_ptr,I)}coFriction(I){return A.rawcolliderset_coFriction(this.__wbg_ptr,I)}coRestitution(I){return A.rawcolliderset_coRestitution(this.__wbg_ptr,I)}coDensity(I){return A.rawcolliderset_coDensity(this.__wbg_ptr,I)}coMass(I){return A.rawcolliderset_coMass(this.__wbg_ptr,I)}coVolume(I){return A.rawcolliderset_coVolume(this.__wbg_ptr,I)}coCollisionGroups(I){return A.rawcolliderset_coCollisionGroups(this.__wbg_ptr,I)>>>0}coSolverGroups(I){return A.rawcolliderset_coSolverGroups(this.__wbg_ptr,I)>>>0}coActiveHooks(I){return A.rawcolliderset_coActiveHooks(this.__wbg_ptr,I)>>>0}coActiveCollisionTypes(I){return A.rawcolliderset_coActiveCollisionTypes(this.__wbg_ptr,I)}coActiveEvents(I){return A.rawcolliderset_coActiveEvents(this.__wbg_ptr,I)>>>0}coContactForceEventThreshold(I){return A.rawcolliderset_coContactForceEventThreshold(this.__wbg_ptr,I)}coContainsPoint(I,g){k(g,WA);return 0!==A.rawcolliderset_coContainsPoint(this.__wbg_ptr,I,g.__wbg_ptr)}coCastShape(I,g,C,B,Q,E,i,D,o){k(g,WA),k(C,TA),k(B,WA),k(Q,HA),k(E,WA);const S=A.rawcolliderset_coCastShape(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,E.__wbg_ptr,i,D,o);return 0===S?void 0:dA.__wrap(S)}coCastCollider(I,g,C,B,Q,E,i){k(g,WA),k(B,WA);const D=A.rawcolliderset_coCastCollider(this.__wbg_ptr,I,g.__wbg_ptr,C,B.__wbg_ptr,Q,E,i);return 0===D?void 0:d.__wrap(D)}coIntersectsShape(I,g,C,B){k(g,TA),k(C,WA),k(B,HA);return 0!==A.rawcolliderset_coIntersectsShape(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr)}coContactShape(I,g,C,B,Q){k(g,TA),k(C,WA),k(B,HA);const E=A.rawcolliderset_coContactShape(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q);return 0===E?void 0:bA.__wrap(E)}coContactCollider(I,g,C){const B=A.rawcolliderset_coContactCollider(this.__wbg_ptr,I,g,C);return 0===B?void 0:bA.__wrap(B)}coProjectPoint(I,g,C){k(g,WA);const B=A.rawcolliderset_coProjectPoint(this.__wbg_ptr,I,g.__wbg_ptr,C);return MA.__wrap(B)}coIntersectsRay(I,g,C,B){k(g,WA),k(C,WA);return 0!==A.rawcolliderset_coIntersectsRay(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,B)}coCastRay(I,g,C,B,Q){k(g,WA),k(C,WA);return A.rawcolliderset_coCastRay(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,B,Q)}coCastRayAndGetNormal(I,g,C,B,Q){k(g,WA),k(C,WA);const E=A.rawcolliderset_coCastRayAndGetNormal(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,B,Q);return 0===E?void 0:YA.__wrap(E)}coSetSensor(I,g){A.rawcolliderset_coSetSensor(this.__wbg_ptr,I,g)}coSetRestitution(I,g){A.rawcolliderset_coSetRestitution(this.__wbg_ptr,I,g)}coSetFriction(I,g){A.rawcolliderset_coSetFriction(this.__wbg_ptr,I,g)}coFrictionCombineRule(I){return A.rawcolliderset_coFrictionCombineRule(this.__wbg_ptr,I)>>>0}coSetFrictionCombineRule(I,g){A.rawcolliderset_coSetFrictionCombineRule(this.__wbg_ptr,I,g)}coRestitutionCombineRule(I){return A.rawcolliderset_coRestitutionCombineRule(this.__wbg_ptr,I)>>>0}coSetRestitutionCombineRule(I,g){A.rawcolliderset_coSetRestitutionCombineRule(this.__wbg_ptr,I,g)}coSetCollisionGroups(I,g){A.rawcolliderset_coSetCollisionGroups(this.__wbg_ptr,I,g)}coSetSolverGroups(I,g){A.rawcolliderset_coSetSolverGroups(this.__wbg_ptr,I,g)}coSetActiveHooks(I,g){A.rawcolliderset_coSetActiveHooks(this.__wbg_ptr,I,g)}coSetActiveEvents(I,g){A.rawcolliderset_coSetActiveEvents(this.__wbg_ptr,I,g)}coSetActiveCollisionTypes(I,g){A.rawcolliderset_coSetActiveCollisionTypes(this.__wbg_ptr,I,g)}coSetShape(I,g){k(g,TA),A.rawcolliderset_coSetShape(this.__wbg_ptr,I,g.__wbg_ptr)}coSetContactForceEventThreshold(I,g){A.rawcolliderset_coSetContactForceEventThreshold(this.__wbg_ptr,I,g)}coSetDensity(I,g){A.rawcolliderset_coSetDensity(this.__wbg_ptr,I,g)}coSetMass(I,g){A.rawcolliderset_coSetMass(this.__wbg_ptr,I,g)}coSetMassProperties(I,g,C,B,Q){k(C,WA),k(B,WA),k(Q,HA),A.rawcolliderset_coSetMassProperties(this.__wbg_ptr,I,g,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr)}constructor(){const I=A.rawcolliderset_new();return this.__wbg_ptr=I>>>0,n.register(this,this.__wbg_ptr,this),this}len(){return A.rawcolliderset_len(this.__wbg_ptr)>>>0}contains(I){return 0!==A.rawcolliderset_contains(this.__wbg_ptr,I)}createCollider(I,g,C,B,Q,E,i,D,o,S,G,K,h,U,y,J,N,M,a,F,s,R,c,Y,q){try{const H=A.__wbindgen_add_to_stack_pointer(-16);k(g,TA),k(C,WA),k(B,HA),k(i,WA),k(D,WA),k(o,HA),k(q,lA),A.rawcolliderset_createCollider(H,this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q,E,i.__wbg_ptr,D.__wbg_ptr,o.__wbg_ptr,S,G,K,h,U,y,J,N,M,a,F,s,R,c,Y,q.__wbg_ptr);var l=w().getInt32(H+0,!0),L=w().getFloat64(H+8,!0);return 0===l?void 0:L}finally{A.__wbindgen_add_to_stack_pointer(16)}}remove(I,g,C,B){k(g,EA),k(C,lA),A.rawcolliderset_remove(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,B)}isHandleValid(I){return 0!==A.rawcolliderset_contains(this.__wbg_ptr,I)}forEachColliderHandle(g){try{A.rawcolliderset_forEachColliderHandle(this.__wbg_ptr,h(g))}finally{I[K++]=void 0}}}const O="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawcollidershapecasthit_free(I>>>0,1)));class d{static __wrap(A){A>>>=0;const I=Object.create(d.prototype);return I.__wbg_ptr=A,O.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,O.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawcollidershapecasthit_free(I,0)}colliderHandle(){return A.rawcharactercollision_handle(this.__wbg_ptr)}time_of_impact(){return A.rawcollidershapecasthit_time_of_impact(this.__wbg_ptr)}witness1(){const I=A.rawcollidershapecasthit_witness1(this.__wbg_ptr);return WA.__wrap(I)}witness2(){const I=A.rawcollidershapecasthit_witness2(this.__wbg_ptr);return WA.__wrap(I)}normal1(){const I=A.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);return WA.__wrap(I)}normal2(){const I=A.rawcharactercollision_translationDeltaRemaining(this.__wbg_ptr);return WA.__wrap(I)}}const Z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawcontactforceevent_free(I>>>0,1)));class b{static __wrap(A){A>>>=0;const I=Object.create(b.prototype);return I.__wbg_ptr=A,Z.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawcontactforceevent_free(I,0)}collider1(){return A.rawcharactercollision_handle(this.__wbg_ptr)}collider2(){return A.rawcontactforceevent_collider2(this.__wbg_ptr)}total_force(){const I=A.rawcontactforceevent_total_force(this.__wbg_ptr);return WA.__wrap(I)}total_force_magnitude(){return A.rawcontactforceevent_total_force_magnitude(this.__wbg_ptr)}max_force_direction(){const I=A.rawcontactforceevent_max_force_direction(this.__wbg_ptr);return WA.__wrap(I)}max_force_magnitude(){return A.rawcontactforceevent_max_force_magnitude(this.__wbg_ptr)}}const j="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawcontactmanifold_free(I>>>0,1)));class W{static __wrap(A){A>>>=0;const I=Object.create(W.prototype);return I.__wbg_ptr=A,j.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,j.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawcontactmanifold_free(I,0)}normal(){const I=A.rawcontactmanifold_normal(this.__wbg_ptr);return WA.__wrap(I)}local_n1(){const I=A.rawcontactmanifold_local_n1(this.__wbg_ptr);return WA.__wrap(I)}local_n2(){const I=A.rawcontactmanifold_local_n2(this.__wbg_ptr);return WA.__wrap(I)}subshape1(){return A.rawcontactmanifold_subshape1(this.__wbg_ptr)>>>0}subshape2(){return A.rawcontactmanifold_subshape2(this.__wbg_ptr)>>>0}num_contacts(){return A.rawcontactmanifold_num_contacts(this.__wbg_ptr)>>>0}contact_local_p1(I){const g=A.rawcontactmanifold_contact_local_p1(this.__wbg_ptr,I);return 0===g?void 0:WA.__wrap(g)}contact_local_p2(I){const g=A.rawcontactmanifold_contact_local_p2(this.__wbg_ptr,I);return 0===g?void 0:WA.__wrap(g)}contact_dist(I){return A.rawcontactmanifold_contact_dist(this.__wbg_ptr,I)}contact_fid1(I){return A.rawcontactmanifold_contact_fid1(this.__wbg_ptr,I)>>>0}contact_fid2(I){return A.rawcontactmanifold_contact_fid2(this.__wbg_ptr,I)>>>0}contact_impulse(I){return A.rawcontactmanifold_contact_impulse(this.__wbg_ptr,I)}contact_tangent_impulse_x(I){return A.rawcontactmanifold_contact_tangent_impulse_x(this.__wbg_ptr,I)}contact_tangent_impulse_y(I){return A.rawcontactmanifold_contact_tangent_impulse_y(this.__wbg_ptr,I)}num_solver_contacts(){return A.rawcontactmanifold_num_solver_contacts(this.__wbg_ptr)>>>0}solver_contact_point(I){const g=A.rawcontactmanifold_solver_contact_point(this.__wbg_ptr,I);return 0===g?void 0:WA.__wrap(g)}solver_contact_dist(I){return A.rawcontactmanifold_solver_contact_dist(this.__wbg_ptr,I)}solver_contact_friction(I){return A.rawcontactmanifold_solver_contact_friction(this.__wbg_ptr,I)}solver_contact_restitution(I){return A.rawcontactmanifold_solver_contact_restitution(this.__wbg_ptr,I)}solver_contact_tangent_velocity(I){const g=A.rawcontactmanifold_solver_contact_tangent_velocity(this.__wbg_ptr,I);return WA.__wrap(g)}}const x="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawcontactpair_free(I>>>0,1)));class m{static __wrap(A){A>>>=0;const I=Object.create(m.prototype);return I.__wbg_ptr=A,x.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,x.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawcontactpair_free(I,0)}collider1(){return A.rawcontactpair_collider1(this.__wbg_ptr)}collider2(){return A.rawcontactpair_collider2(this.__wbg_ptr)}numContactManifolds(){return A.rawcontactpair_numContactManifolds(this.__wbg_ptr)>>>0}contactManifold(I){const g=A.rawcontactpair_contactManifold(this.__wbg_ptr,I);return 0===g?void 0:W.__wrap(g)}}const f="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawdebugrenderpipeline_free(I>>>0,1)));class P{__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,f.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawdebugrenderpipeline_free(I,0)}constructor(){const I=A.rawdebugrenderpipeline_new();return this.__wbg_ptr=I>>>0,f.register(this,this.__wbg_ptr,this),this}vertices(){return G(A.rawdebugrenderpipeline_vertices(this.__wbg_ptr))}colors(){return G(A.rawdebugrenderpipeline_colors(this.__wbg_ptr))}render(g,C,B,Q,E,i,D){try{k(g,lA),k(C,T),k(B,gA),k(Q,SA),k(E,GA),A.rawdebugrenderpipeline_render(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,E.__wbg_ptr,i,h(D))}finally{I[K++]=void 0}}}const X="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawdeserializedworld_free(I>>>0,1)));class V{static __wrap(A){A>>>=0;const I=Object.create(V.prototype);return I.__wbg_ptr=A,X.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawdeserializedworld_free(I,0)}takeGravity(){const I=A.rawdeserializedworld_takeGravity(this.__wbg_ptr);return 0===I?void 0:WA.__wrap(I)}takeIntegrationParameters(){const I=A.rawdeserializedworld_takeIntegrationParameters(this.__wbg_ptr);return 0===I?void 0:BA.__wrap(I)}takeIslandManager(){const I=A.rawdeserializedworld_takeIslandManager(this.__wbg_ptr);return 0===I?void 0:EA.__wrap(I)}takeBroadPhase(){const I=A.rawdeserializedworld_takeBroadPhase(this.__wbg_ptr);return 0===I?void 0:H.__wrap(I)}takeNarrowPhase(){const I=A.rawdeserializedworld_takeNarrowPhase(this.__wbg_ptr);return 0===I?void 0:GA.__wrap(I)}takeBodies(){const I=A.rawdeserializedworld_takeBodies(this.__wbg_ptr);return 0===I?void 0:lA.__wrap(I)}takeColliders(){const I=A.rawdeserializedworld_takeColliders(this.__wbg_ptr);return 0===I?void 0:T.__wrap(I)}takeImpulseJoints(){const I=A.rawdeserializedworld_takeImpulseJoints(this.__wbg_ptr);return 0===I?void 0:gA.__wrap(I)}takeMultibodyJoints(){const I=A.rawdeserializedworld_takeMultibodyJoints(this.__wbg_ptr);return 0===I?void 0:SA.__wrap(I)}}const u="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawdynamicraycastvehiclecontroller_free(I>>>0,1)));class z{__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,u.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawdynamicraycastvehiclecontroller_free(I,0)}constructor(I){const g=A.rawdynamicraycastvehiclecontroller_new(I);return this.__wbg_ptr=g>>>0,u.register(this,this.__wbg_ptr,this),this}current_vehicle_speed(){return A.rawdynamicraycastvehiclecontroller_current_vehicle_speed(this.__wbg_ptr)}chassis(){return A.rawdynamicraycastvehiclecontroller_chassis(this.__wbg_ptr)}index_up_axis(){return A.rawdynamicraycastvehiclecontroller_index_up_axis(this.__wbg_ptr)>>>0}set_index_up_axis(I){A.rawdynamicraycastvehiclecontroller_set_index_up_axis(this.__wbg_ptr,I)}index_forward_axis(){return A.rawdynamicraycastvehiclecontroller_index_forward_axis(this.__wbg_ptr)>>>0}set_index_forward_axis(I){A.rawdynamicraycastvehiclecontroller_set_index_forward_axis(this.__wbg_ptr,I)}add_wheel(I,g,C,B,Q){k(I,WA),k(g,WA),k(C,WA),A.rawdynamicraycastvehiclecontroller_add_wheel(this.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B,Q)}num_wheels(){return A.rawdynamicraycastvehiclecontroller_num_wheels(this.__wbg_ptr)>>>0}update_vehicle(g,C,B,Q,E,i,D,S){try{k(C,H),k(B,GA),k(Q,lA),k(E,T),A.rawdynamicraycastvehiclecontroller_update_vehicle(this.__wbg_ptr,g,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,E.__wbg_ptr,i,o(D)?4294967297:D>>>0,h(S))}finally{I[K++]=void 0}}wheel_chassis_connection_point_cs(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_chassis_connection_point_cs(this.__wbg_ptr,I);return 0===g?void 0:WA.__wrap(g)}set_wheel_chassis_connection_point_cs(I,g){k(g,WA),A.rawdynamicraycastvehiclecontroller_set_wheel_chassis_connection_point_cs(this.__wbg_ptr,I,g.__wbg_ptr)}wheel_suspension_rest_length(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_suspension_rest_length(this.__wbg_ptr,I);return 4294967297===g?void 0:g}set_wheel_suspension_rest_length(I,g){A.rawdynamicraycastvehiclecontroller_set_wheel_suspension_rest_length(this.__wbg_ptr,I,g)}wheel_max_suspension_travel(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_max_suspension_travel(this.__wbg_ptr,I);return 4294967297===g?void 0:g}set_wheel_max_suspension_travel(I,g){A.rawdynamicraycastvehiclecontroller_set_wheel_max_suspension_travel(this.__wbg_ptr,I,g)}wheel_radius(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_radius(this.__wbg_ptr,I);return 4294967297===g?void 0:g}set_wheel_radius(I,g){A.rawdynamicraycastvehiclecontroller_set_wheel_radius(this.__wbg_ptr,I,g)}wheel_suspension_stiffness(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_suspension_stiffness(this.__wbg_ptr,I);return 4294967297===g?void 0:g}set_wheel_suspension_stiffness(I,g){A.rawdynamicraycastvehiclecontroller_set_wheel_suspension_stiffness(this.__wbg_ptr,I,g)}wheel_suspension_compression(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_suspension_compression(this.__wbg_ptr,I);return 4294967297===g?void 0:g}set_wheel_suspension_compression(I,g){A.rawdynamicraycastvehiclecontroller_set_wheel_suspension_compression(this.__wbg_ptr,I,g)}wheel_suspension_relaxation(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_suspension_relaxation(this.__wbg_ptr,I);return 4294967297===g?void 0:g}set_wheel_suspension_relaxation(I,g){A.rawdynamicraycastvehiclecontroller_set_wheel_suspension_relaxation(this.__wbg_ptr,I,g)}wheel_max_suspension_force(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_max_suspension_force(this.__wbg_ptr,I);return 4294967297===g?void 0:g}set_wheel_max_suspension_force(I,g){A.rawdynamicraycastvehiclecontroller_set_wheel_max_suspension_force(this.__wbg_ptr,I,g)}wheel_brake(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_brake(this.__wbg_ptr,I);return 4294967297===g?void 0:g}set_wheel_brake(I,g){A.rawdynamicraycastvehiclecontroller_set_wheel_brake(this.__wbg_ptr,I,g)}wheel_steering(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_steering(this.__wbg_ptr,I);return 4294967297===g?void 0:g}set_wheel_steering(I,g){A.rawdynamicraycastvehiclecontroller_set_wheel_steering(this.__wbg_ptr,I,g)}wheel_engine_force(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_engine_force(this.__wbg_ptr,I);return 4294967297===g?void 0:g}set_wheel_engine_force(I,g){A.rawdynamicraycastvehiclecontroller_set_wheel_engine_force(this.__wbg_ptr,I,g)}wheel_direction_cs(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_direction_cs(this.__wbg_ptr,I);return 0===g?void 0:WA.__wrap(g)}set_wheel_direction_cs(I,g){k(g,WA),A.rawdynamicraycastvehiclecontroller_set_wheel_direction_cs(this.__wbg_ptr,I,g.__wbg_ptr)}wheel_axle_cs(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_axle_cs(this.__wbg_ptr,I);return 0===g?void 0:WA.__wrap(g)}set_wheel_axle_cs(I,g){k(g,WA),A.rawdynamicraycastvehiclecontroller_set_wheel_axle_cs(this.__wbg_ptr,I,g.__wbg_ptr)}wheel_friction_slip(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_friction_slip(this.__wbg_ptr,I);return 4294967297===g?void 0:g}set_wheel_friction_slip(I,g){A.rawdynamicraycastvehiclecontroller_set_wheel_friction_slip(this.__wbg_ptr,I,g)}wheel_side_friction_stiffness(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_side_friction_stiffness(this.__wbg_ptr,I);return 4294967297===g?void 0:g}set_wheel_side_friction_stiffness(I,g){A.rawdynamicraycastvehiclecontroller_set_wheel_side_friction_stiffness(this.__wbg_ptr,I,g)}wheel_rotation(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_rotation(this.__wbg_ptr,I);return 4294967297===g?void 0:g}wheel_forward_impulse(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_forward_impulse(this.__wbg_ptr,I);return 4294967297===g?void 0:g}wheel_side_impulse(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_side_impulse(this.__wbg_ptr,I);return 4294967297===g?void 0:g}wheel_suspension_force(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_suspension_force(this.__wbg_ptr,I);return 4294967297===g?void 0:g}wheel_contact_normal_ws(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_contact_normal_ws(this.__wbg_ptr,I);return 0===g?void 0:WA.__wrap(g)}wheel_contact_point_ws(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_contact_point_ws(this.__wbg_ptr,I);return 0===g?void 0:WA.__wrap(g)}wheel_suspension_length(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_suspension_length(this.__wbg_ptr,I);return 4294967297===g?void 0:g}wheel_hard_point_ws(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_hard_point_ws(this.__wbg_ptr,I);return 0===g?void 0:WA.__wrap(g)}wheel_is_in_contact(I){return 0!==A.rawdynamicraycastvehiclecontroller_wheel_is_in_contact(this.__wbg_ptr,I)}wheel_ground_object(I){try{const B=A.__wbindgen_add_to_stack_pointer(-16);A.rawdynamicraycastvehiclecontroller_wheel_ground_object(B,this.__wbg_ptr,I);var g=w().getInt32(B+0,!0),C=w().getFloat64(B+8,!0);return 0===g?void 0:C}finally{A.__wbindgen_add_to_stack_pointer(16)}}}const v="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_raweventqueue_free(I>>>0,1)));class _{__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,v.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_raweventqueue_free(I,0)}constructor(I){const g=A.raweventqueue_new(I);return this.__wbg_ptr=g>>>0,v.register(this,this.__wbg_ptr,this),this}drainCollisionEvents(g){try{A.raweventqueue_drainCollisionEvents(this.__wbg_ptr,h(g))}finally{I[K++]=void 0}}drainContactForceEvents(g){try{A.raweventqueue_drainContactForceEvents(this.__wbg_ptr,h(g))}finally{I[K++]=void 0}}clear(){A.raweventqueue_clear(this.__wbg_ptr)}}const $="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawgenericjoint_free(I>>>0,1)));class AA{static __wrap(A){A>>>=0;const I=Object.create(AA.prototype);return I.__wbg_ptr=A,$.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,$.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawgenericjoint_free(I,0)}static generic(I,g,C,B){k(I,WA),k(g,WA),k(C,WA);const Q=A.rawgenericjoint_generic(I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B);return 0===Q?void 0:AA.__wrap(Q)}static spring(I,g,C,B,Q){k(B,WA),k(Q,WA);const E=A.rawgenericjoint_spring(I,g,C,B.__wbg_ptr,Q.__wbg_ptr);return AA.__wrap(E)}static rope(I,g,C){k(g,WA),k(C,WA);const B=A.rawgenericjoint_rope(I,g.__wbg_ptr,C.__wbg_ptr);return AA.__wrap(B)}static spherical(I,g){k(I,WA),k(g,WA);const C=A.rawgenericjoint_spherical(I.__wbg_ptr,g.__wbg_ptr);return AA.__wrap(C)}static prismatic(I,g,C,B,Q,E){k(I,WA),k(g,WA),k(C,WA);const i=A.rawgenericjoint_prismatic(I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B,Q,E);return 0===i?void 0:AA.__wrap(i)}static fixed(I,g,C,B){k(I,WA),k(g,HA),k(C,WA),k(B,HA);const Q=A.rawgenericjoint_fixed(I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr);return AA.__wrap(Q)}static revolute(I,g,C){k(I,WA),k(g,WA),k(C,WA);const B=A.rawgenericjoint_revolute(I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr);return 0===B?void 0:AA.__wrap(B)}}const IA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawimpulsejointset_free(I>>>0,1)));class gA{static __wrap(A){A>>>=0;const I=Object.create(gA.prototype);return I.__wbg_ptr=A,IA.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,IA.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawimpulsejointset_free(I,0)}jointType(I){return A.rawimpulsejointset_jointType(this.__wbg_ptr,I)}jointBodyHandle1(I){return A.rawimpulsejointset_jointBodyHandle1(this.__wbg_ptr,I)}jointBodyHandle2(I){return A.rawimpulsejointset_jointBodyHandle2(this.__wbg_ptr,I)}jointFrameX1(I){const g=A.rawimpulsejointset_jointFrameX1(this.__wbg_ptr,I);return HA.__wrap(g)}jointFrameX2(I){const g=A.rawimpulsejointset_jointFrameX2(this.__wbg_ptr,I);return HA.__wrap(g)}jointAnchor1(I){const g=A.rawimpulsejointset_jointAnchor1(this.__wbg_ptr,I);return WA.__wrap(g)}jointAnchor2(I){const g=A.rawimpulsejointset_jointAnchor2(this.__wbg_ptr,I);return WA.__wrap(g)}jointSetAnchor1(I,g){k(g,WA),A.rawimpulsejointset_jointSetAnchor1(this.__wbg_ptr,I,g.__wbg_ptr)}jointSetAnchor2(I,g){k(g,WA),A.rawimpulsejointset_jointSetAnchor2(this.__wbg_ptr,I,g.__wbg_ptr)}jointContactsEnabled(I){return 0!==A.rawimpulsejointset_jointContactsEnabled(this.__wbg_ptr,I)}jointSetContactsEnabled(I,g){A.rawimpulsejointset_jointSetContactsEnabled(this.__wbg_ptr,I,g)}jointLimitsEnabled(I,g){return 0!==A.rawimpulsejointset_jointLimitsEnabled(this.__wbg_ptr,I,g)}jointLimitsMin(I,g){return A.rawimpulsejointset_jointLimitsMin(this.__wbg_ptr,I,g)}jointLimitsMax(I,g){return A.rawimpulsejointset_jointLimitsMax(this.__wbg_ptr,I,g)}jointSetLimits(I,g,C,B){A.rawimpulsejointset_jointSetLimits(this.__wbg_ptr,I,g,C,B)}jointConfigureMotorModel(I,g,C){A.rawimpulsejointset_jointConfigureMotorModel(this.__wbg_ptr,I,g,C)}jointConfigureMotorVelocity(I,g,C,B){A.rawimpulsejointset_jointConfigureMotorVelocity(this.__wbg_ptr,I,g,C,B)}jointConfigureMotorPosition(I,g,C,B,Q){A.rawimpulsejointset_jointConfigureMotorPosition(this.__wbg_ptr,I,g,C,B,Q)}jointConfigureMotor(I,g,C,B,Q,E){A.rawimpulsejointset_jointConfigureMotor(this.__wbg_ptr,I,g,C,B,Q,E)}constructor(){const I=A.rawimpulsejointset_new();return this.__wbg_ptr=I>>>0,IA.register(this,this.__wbg_ptr,this),this}createJoint(I,g,C,B){k(I,AA);return A.rawimpulsejointset_createJoint(this.__wbg_ptr,I.__wbg_ptr,g,C,B)}remove(I,g){A.rawimpulsejointset_remove(this.__wbg_ptr,I,g)}len(){return A.rawimpulsejointset_len(this.__wbg_ptr)>>>0}contains(I){return 0!==A.rawimpulsejointset_contains(this.__wbg_ptr,I)}forEachJointHandle(g){try{A.rawimpulsejointset_forEachJointHandle(this.__wbg_ptr,h(g))}finally{I[K++]=void 0}}forEachJointAttachedToRigidBody(g,C){try{A.rawimpulsejointset_forEachJointAttachedToRigidBody(this.__wbg_ptr,g,h(C))}finally{I[K++]=void 0}}}const CA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawintegrationparameters_free(I>>>0,1)));class BA{static __wrap(A){A>>>=0;const I=Object.create(BA.prototype);return I.__wbg_ptr=A,CA.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,CA.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawintegrationparameters_free(I,0)}constructor(){const I=A.rawintegrationparameters_new();return this.__wbg_ptr=I>>>0,CA.register(this,this.__wbg_ptr,this),this}get dt(){return A.rawintegrationparameters_dt(this.__wbg_ptr)}get contact_erp(){return A.rawintegrationparameters_contact_erp(this.__wbg_ptr)}get normalizedAllowedLinearError(){return A.rawdynamicraycastvehiclecontroller_current_vehicle_speed(this.__wbg_ptr)}get normalizedPredictionDistance(){return A.rawcontactforceevent_max_force_magnitude(this.__wbg_ptr)}get numSolverIterations(){return A.rawintegrationparameters_numSolverIterations(this.__wbg_ptr)>>>0}get numAdditionalFrictionIterations(){return A.rawdynamicraycastvehiclecontroller_index_up_axis(this.__wbg_ptr)>>>0}get numInternalPgsIterations(){return A.rawdynamicraycastvehiclecontroller_index_forward_axis(this.__wbg_ptr)>>>0}get minIslandSize(){return A.rawintegrationparameters_minIslandSize(this.__wbg_ptr)>>>0}get maxCcdSubsteps(){return A.rawintegrationparameters_maxCcdSubsteps(this.__wbg_ptr)>>>0}get lengthUnit(){return A.rawintegrationparameters_lengthUnit(this.__wbg_ptr)}set dt(I){A.rawintegrationparameters_set_dt(this.__wbg_ptr,I)}set contact_natural_frequency(I){A.rawintegrationparameters_set_contact_natural_frequency(this.__wbg_ptr,I)}set normalizedAllowedLinearError(I){A.rawintegrationparameters_set_normalizedAllowedLinearError(this.__wbg_ptr,I)}set normalizedPredictionDistance(I){A.rawintegrationparameters_set_normalizedPredictionDistance(this.__wbg_ptr,I)}set numSolverIterations(I){A.rawintegrationparameters_set_numSolverIterations(this.__wbg_ptr,I)}set numAdditionalFrictionIterations(I){A.rawdynamicraycastvehiclecontroller_set_index_up_axis(this.__wbg_ptr,I)}set numInternalPgsIterations(I){A.rawdynamicraycastvehiclecontroller_set_index_forward_axis(this.__wbg_ptr,I)}set minIslandSize(I){A.rawintegrationparameters_set_minIslandSize(this.__wbg_ptr,I)}set maxCcdSubsteps(I){A.rawintegrationparameters_set_maxCcdSubsteps(this.__wbg_ptr,I)}set lengthUnit(I){A.rawintegrationparameters_set_lengthUnit(this.__wbg_ptr,I)}switchToStandardPgsSolver(){A.rawintegrationparameters_switchToStandardPgsSolver(this.__wbg_ptr)}switchToSmallStepsPgsSolver(){A.rawintegrationparameters_switchToSmallStepsPgsSolver(this.__wbg_ptr)}switchToSmallStepsPgsSolverWithoutWarmstart(){A.rawintegrationparameters_switchToSmallStepsPgsSolverWithoutWarmstart(this.__wbg_ptr)}}const QA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawislandmanager_free(I>>>0,1)));class EA{static __wrap(A){A>>>=0;const I=Object.create(EA.prototype);return I.__wbg_ptr=A,QA.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,QA.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawislandmanager_free(I,0)}constructor(){const I=A.rawislandmanager_new();return this.__wbg_ptr=I>>>0,QA.register(this,this.__wbg_ptr,this),this}forEachActiveRigidBodyHandle(g){try{A.rawislandmanager_forEachActiveRigidBodyHandle(this.__wbg_ptr,h(g))}finally{I[K++]=void 0}}}const iA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawkinematiccharactercontroller_free(I>>>0,1)));class DA{__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,iA.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawkinematiccharactercontroller_free(I,0)}constructor(I){const g=A.rawkinematiccharactercontroller_new(I);return this.__wbg_ptr=g>>>0,iA.register(this,this.__wbg_ptr,this),this}up(){const I=A.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);return WA.__wrap(I)}setUp(I){k(I,WA),A.rawkinematiccharactercontroller_setUp(this.__wbg_ptr,I.__wbg_ptr)}normalNudgeFactor(){return A.rawkinematiccharactercontroller_normalNudgeFactor(this.__wbg_ptr)}setNormalNudgeFactor(I){A.rawkinematiccharactercontroller_setNormalNudgeFactor(this.__wbg_ptr,I)}offset(){return A.rawintegrationparameters_dt(this.__wbg_ptr)}setOffset(I){A.rawkinematiccharactercontroller_setOffset(this.__wbg_ptr,I)}slideEnabled(){return 0!==A.rawkinematiccharactercontroller_slideEnabled(this.__wbg_ptr)}setSlideEnabled(I){A.rawkinematiccharactercontroller_setSlideEnabled(this.__wbg_ptr,I)}autostepMaxHeight(){const I=A.rawkinematiccharactercontroller_autostepMaxHeight(this.__wbg_ptr);return 4294967297===I?void 0:I}autostepMinWidth(){const I=A.rawkinematiccharactercontroller_autostepMinWidth(this.__wbg_ptr);return 4294967297===I?void 0:I}autostepIncludesDynamicBodies(){const I=A.rawkinematiccharactercontroller_autostepIncludesDynamicBodies(this.__wbg_ptr);return 16777215===I?void 0:0!==I}autostepEnabled(){return 0!==A.rawkinematiccharactercontroller_autostepEnabled(this.__wbg_ptr)}enableAutostep(I,g,C){A.rawkinematiccharactercontroller_enableAutostep(this.__wbg_ptr,I,g,C)}disableAutostep(){A.rawkinematiccharactercontroller_disableAutostep(this.__wbg_ptr)}maxSlopeClimbAngle(){return A.rawkinematiccharactercontroller_maxSlopeClimbAngle(this.__wbg_ptr)}setMaxSlopeClimbAngle(I){A.rawkinematiccharactercontroller_setMaxSlopeClimbAngle(this.__wbg_ptr,I)}minSlopeSlideAngle(){return A.rawkinematiccharactercontroller_minSlopeSlideAngle(this.__wbg_ptr)}setMinSlopeSlideAngle(I){A.rawkinematiccharactercontroller_setMinSlopeSlideAngle(this.__wbg_ptr,I)}snapToGroundDistance(){const I=A.rawkinematiccharactercontroller_snapToGroundDistance(this.__wbg_ptr);return 4294967297===I?void 0:I}enableSnapToGround(I){A.rawkinematiccharactercontroller_enableSnapToGround(this.__wbg_ptr,I)}disableSnapToGround(){A.rawkinematiccharactercontroller_disableSnapToGround(this.__wbg_ptr)}snapToGroundEnabled(){return 0!==A.rawkinematiccharactercontroller_snapToGroundEnabled(this.__wbg_ptr)}computeColliderMovement(g,C,B,Q,E,i,D,S,w,G,U,y){try{k(C,H),k(B,GA),k(Q,lA),k(E,T),k(D,WA),A.rawkinematiccharactercontroller_computeColliderMovement(this.__wbg_ptr,g,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,E.__wbg_ptr,i,D.__wbg_ptr,S,o(w)?4294967297:Math.fround(w),G,o(U)?4294967297:U>>>0,h(y))}finally{I[K++]=void 0}}computedMovement(){const I=A.rawkinematiccharactercontroller_computedMovement(this.__wbg_ptr);return WA.__wrap(I)}computedGrounded(){return 0!==A.rawkinematiccharactercontroller_computedGrounded(this.__wbg_ptr)}numComputedCollisions(){return A.rawkinematiccharactercontroller_numComputedCollisions(this.__wbg_ptr)>>>0}computedCollision(I,g){k(g,e);return 0!==A.rawkinematiccharactercontroller_computedCollision(this.__wbg_ptr,I,g.__wbg_ptr)}}const oA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawmultibodyjointset_free(I>>>0,1)));class SA{static __wrap(A){A>>>=0;const I=Object.create(SA.prototype);return I.__wbg_ptr=A,oA.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,oA.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawmultibodyjointset_free(I,0)}jointType(I){return A.rawmultibodyjointset_jointType(this.__wbg_ptr,I)}jointFrameX1(I){const g=A.rawmultibodyjointset_jointFrameX1(this.__wbg_ptr,I);return HA.__wrap(g)}jointFrameX2(I){const g=A.rawmultibodyjointset_jointFrameX2(this.__wbg_ptr,I);return HA.__wrap(g)}jointAnchor1(I){const g=A.rawmultibodyjointset_jointAnchor1(this.__wbg_ptr,I);return WA.__wrap(g)}jointAnchor2(I){const g=A.rawmultibodyjointset_jointAnchor2(this.__wbg_ptr,I);return WA.__wrap(g)}jointContactsEnabled(I){return 0!==A.rawmultibodyjointset_jointContactsEnabled(this.__wbg_ptr,I)}jointSetContactsEnabled(I,g){A.rawmultibodyjointset_jointSetContactsEnabled(this.__wbg_ptr,I,g)}jointLimitsEnabled(I,g){return 0!==A.rawmultibodyjointset_jointLimitsEnabled(this.__wbg_ptr,I,g)}jointLimitsMin(I,g){return A.rawmultibodyjointset_jointLimitsMin(this.__wbg_ptr,I,g)}jointLimitsMax(I,g){return A.rawmultibodyjointset_jointLimitsMax(this.__wbg_ptr,I,g)}constructor(){const I=A.rawmultibodyjointset_new();return this.__wbg_ptr=I>>>0,oA.register(this,this.__wbg_ptr,this),this}createJoint(I,g,C,B){k(I,AA);return A.rawmultibodyjointset_createJoint(this.__wbg_ptr,I.__wbg_ptr,g,C,B)}remove(I,g){A.rawmultibodyjointset_remove(this.__wbg_ptr,I,g)}contains(I){return 0!==A.rawmultibodyjointset_contains(this.__wbg_ptr,I)}forEachJointHandle(g){try{A.rawmultibodyjointset_forEachJointHandle(this.__wbg_ptr,h(g))}finally{I[K++]=void 0}}forEachJointAttachedToRigidBody(g,C){try{A.rawmultibodyjointset_forEachJointAttachedToRigidBody(this.__wbg_ptr,g,h(C))}finally{I[K++]=void 0}}}const wA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawnarrowphase_free(I>>>0,1)));class GA{static __wrap(A){A>>>=0;const I=Object.create(GA.prototype);return I.__wbg_ptr=A,wA.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,wA.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawnarrowphase_free(I,0)}constructor(){const I=A.rawnarrowphase_new();return this.__wbg_ptr=I>>>0,wA.register(this,this.__wbg_ptr,this),this}contact_pairs_with(I,g){A.rawnarrowphase_contact_pairs_with(this.__wbg_ptr,I,B(g))}contact_pair(I,g){const C=A.rawnarrowphase_contact_pair(this.__wbg_ptr,I,g);return 0===C?void 0:m.__wrap(C)}intersection_pairs_with(I,g){A.rawnarrowphase_intersection_pairs_with(this.__wbg_ptr,I,B(g))}intersection_pair(I,g){return 0!==A.rawnarrowphase_intersection_pair(this.__wbg_ptr,I,g)}}const kA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawphysicspipeline_free(I>>>0,1)));class KA{__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,kA.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawphysicspipeline_free(I,0)}constructor(){const I=A.rawphysicspipeline_new();return this.__wbg_ptr=I>>>0,kA.register(this,this.__wbg_ptr,this),this}set_profiler_enabled(I){A.rawphysicspipeline_set_profiler_enabled(this.__wbg_ptr,I)}is_profiler_enabled(){return 0!==A.rawphysicspipeline_is_profiler_enabled(this.__wbg_ptr)}timing_step(){return A.rawphysicspipeline_timing_step(this.__wbg_ptr)}timing_collision_detection(){return A.rawphysicspipeline_timing_collision_detection(this.__wbg_ptr)}timing_broad_phase(){return A.rawphysicspipeline_timing_broad_phase(this.__wbg_ptr)}timing_narrow_phase(){return A.rawphysicspipeline_timing_narrow_phase(this.__wbg_ptr)}timing_solver(){return A.rawphysicspipeline_timing_solver(this.__wbg_ptr)}timing_velocity_assembly(){return A.rawphysicspipeline_timing_velocity_assembly(this.__wbg_ptr)}timing_velocity_resolution(){return A.rawphysicspipeline_timing_velocity_resolution(this.__wbg_ptr)}timing_velocity_update(){return A.rawphysicspipeline_timing_velocity_update(this.__wbg_ptr)}timing_velocity_writeback(){return A.rawphysicspipeline_timing_velocity_writeback(this.__wbg_ptr)}timing_ccd(){return A.rawphysicspipeline_timing_ccd(this.__wbg_ptr)}timing_ccd_toi_computation(){return A.rawphysicspipeline_timing_ccd_toi_computation(this.__wbg_ptr)}timing_ccd_broad_phase(){return A.rawphysicspipeline_timing_ccd_broad_phase(this.__wbg_ptr)}timing_ccd_narrow_phase(){return A.rawphysicspipeline_timing_ccd_narrow_phase(this.__wbg_ptr)}timing_ccd_solver(){return A.rawphysicspipeline_timing_ccd_solver(this.__wbg_ptr)}timing_island_construction(){return A.rawphysicspipeline_timing_island_construction(this.__wbg_ptr)}timing_user_changes(){return A.rawphysicspipeline_timing_user_changes(this.__wbg_ptr)}step(I,g,C,B,Q,E,i,D,o,S){k(I,WA),k(g,BA),k(C,EA),k(B,H),k(Q,GA),k(E,lA),k(i,T),k(D,gA),k(o,SA),k(S,p),A.rawphysicspipeline_step(this.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,E.__wbg_ptr,i.__wbg_ptr,D.__wbg_ptr,o.__wbg_ptr,S.__wbg_ptr)}stepWithEvents(I,g,C,Q,E,i,D,o,S,w,G,K,h,U){k(I,WA),k(g,BA),k(C,EA),k(Q,H),k(E,GA),k(i,lA),k(D,T),k(o,gA),k(S,SA),k(w,p),k(G,_),A.rawphysicspipeline_stepWithEvents(this.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,E.__wbg_ptr,i.__wbg_ptr,D.__wbg_ptr,o.__wbg_ptr,S.__wbg_ptr,w.__wbg_ptr,G.__wbg_ptr,B(K),B(h),B(U))}}const hA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawpidcontroller_free(I>>>0,1)));class UA{__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,hA.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawpi