UNPKG

@rjfwhite/random-lib

Version:

Core engine for MML

1 lines 2.37 MB
var E,c=new Array(128).fill(void 0);function Y(Q){return c[Q]}c.push(void 0,null,!0,!1);var OA=c.length;function b(Q){OA===c.length&&c.push(c.length+1);let A=OA;return OA=c[A],c[A]=Q,A}function ng(Q,A){try{return Q.apply(this,A)}catch(I){E.__wbindgen_export_0(b(I))}}function N(Q){return Q==null}var JA=null;function x(){return(JA===null||JA.buffer.detached===!0||JA.buffer.detached===void 0&&JA.buffer!==E.memory.buffer)&&(JA=new DataView(E.memory.buffer)),JA}function ZA(Q){let A=Y(Q);return function(I){I<132||(c[I]=OA,OA=I)}(Q),A}var xC=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&xC.decode();var pA=null;function mC(Q,A){return Q>>>=0,xC.decode((pA!==null&&pA.byteLength!==0||(pA=new Uint8Array(E.memory.buffer)),pA).subarray(Q,Q+A))}function w(Q,A){if(!(Q instanceof A))throw new Error(`expected instance of ${A.name}`)}var L=128;function p(Q){if(L==1)throw new Error("out of js stack");return c[--L]=Q,L}var nA=null;function VC(Q,A){return Q>>>=0,(nA!==null&&nA.byteLength!==0||(nA=new Int32Array(E.memory.buffer)),nA).subarray(Q/4,Q/4+A)}var dA=null;function WC(){return dA!==null&&dA.byteLength!==0||(dA=new Float32Array(E.memory.buffer)),dA}function GC(Q,A){return Q>>>=0,WC().subarray(Q/4,Q/4+A)}var TA=null;function jC(){return TA!==null&&TA.byteLength!==0||(TA=new Uint32Array(E.memory.buffer)),TA}var P=0;function HA(Q,A){let I=A(4*Q.length,4)>>>0;return jC().set(Q,I/4),P=Q.length,I}function aA(Q,A){let I=A(4*Q.length,4)>>>0;return WC().set(Q,I/4),P=Q.length,I}Object.freeze({Vertex:0,0:"Vertex",Edge:1,1:"Edge",Face:2,2:"Face",Unknown:3,3:"Unknown"});var Lg=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"}),IA=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"});var j=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"}),dg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(Q=>E.__wbg_rawbroadphase_free(Q>>>0,1)),DA=class Q{static __wrap(A){A>>>=0;let I=Object.create(Q.prototype);return I.__wbg_ptr=A,dg.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){let A=this.__wbg_ptr;return this.__wbg_ptr=0,dg.unregister(this),A}free(){let A=this.__destroy_into_raw();E.__wbg_rawbroadphase_free(A,0)}constructor(){let A=E.rawbroadphase_new();return this.__wbg_ptr=A>>>0,dg.register(this,this.__wbg_ptr,this),this}castRay(A,I,g,C,B,i,D,o,S,k,K,s){try{w(A,m),w(I,r),w(g,n),w(C,h),w(B,h);let a=E.rawbroadphase_castRay(this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,i,D,o,N(S)?4294967297:S>>>0,!N(k),N(k)?0:k,!N(K),N(K)?0:K,p(s));return a===0?void 0:IC.__wrap(a)}finally{c[L++]=void 0}}castRayAndGetNormal(A,I,g,C,B,i,D,o,S,k,K,s){try{w(A,m),w(I,r),w(g,n),w(C,h),w(B,h);let a=E.rawbroadphase_castRayAndGetNormal(this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,i,D,o,N(S)?4294967297:S>>>0,!N(k),N(k)?0:k,!N(K),N(K)?0:K,p(s));return a===0?void 0:fI.__wrap(a)}finally{c[L++]=void 0}}intersectionsWithRay(A,I,g,C,B,i,D,o,S,k,K,s,a){try{w(A,m),w(I,r),w(g,n),w(C,h),w(B,h),E.rawbroadphase_intersectionsWithRay(this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,i,D,p(o),S,N(k)?4294967297:k>>>0,!N(K),N(K)?0:K,!N(s),N(s)?0:s,p(a))}finally{c[L++]=void 0,c[L++]=void 0}}intersectionWithShape(A,I,g,C,B,i,D,o,S,k,K){try{let U=E.__wbindgen_add_to_stack_pointer(-16);w(A,m),w(I,r),w(g,n),w(C,h),w(B,R),w(i,q),E.rawbroadphase_intersectionWithShape(U,this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,i.__wbg_ptr,D,N(o)?4294967297:o>>>0,!N(S),N(S)?0:S,!N(k),N(k)?0:k,p(K));var s=x().getInt32(U+0,!0),a=x().getFloat64(U+8,!0);return s===0?void 0:a}finally{E.__wbindgen_add_to_stack_pointer(16),c[L++]=void 0}}projectPoint(A,I,g,C,B,i,D,o,S,k){try{w(A,m),w(I,r),w(g,n),w(C,h);let K=E.rawbroadphase_projectPoint(this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B,i,N(D)?4294967297:D>>>0,!N(o),N(o)?0:o,!N(S),N(S)?0:S,p(k));return K===0?void 0:WI.__wrap(K)}finally{c[L++]=void 0}}projectPointAndGetFeature(A,I,g,C,B,i,D,o,S){try{w(A,m),w(I,r),w(g,n),w(C,h);let k=E.rawbroadphase_projectPointAndGetFeature(this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B,N(i)?4294967297:i>>>0,!N(D),N(D)?0:D,!N(o),N(o)?0:o,p(S));return k===0?void 0:WI.__wrap(k)}finally{c[L++]=void 0}}intersectionsWithPoint(A,I,g,C,B,i,D,o,S,k){try{w(A,m),w(I,r),w(g,n),w(C,h),E.rawbroadphase_intersectionsWithPoint(this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,p(B),i,N(D)?4294967297:D>>>0,!N(o),N(o)?0:o,!N(S),N(S)?0:S,p(k))}finally{c[L++]=void 0,c[L++]=void 0}}castShape(A,I,g,C,B,i,D,o,S,k,K,s,a,U,J){try{w(A,m),w(I,r),w(g,n),w(C,h),w(B,R),w(i,h),w(D,q);let y=E.rawbroadphase_castShape(this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,i.__wbg_ptr,D.__wbg_ptr,o,S,k,K,N(s)?4294967297:s>>>0,!N(a),N(a)?0:a,!N(U),N(U)?0:U,p(J));return y===0?void 0:xI.__wrap(y)}finally{c[L++]=void 0}}intersectionsWithShape(A,I,g,C,B,i,D,o,S,k,K,s){try{w(A,m),w(I,r),w(g,n),w(C,h),w(B,R),w(i,q),E.rawbroadphase_intersectionsWithShape(this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,i.__wbg_ptr,p(D),o,N(S)?4294967297:S>>>0,!N(k),N(k)?0:k,!N(K),N(K)?0:K,p(s))}finally{c[L++]=void 0,c[L++]=void 0}}collidersWithAabbIntersectingAabb(A,I,g,C,B,i){try{w(A,m),w(I,r),w(g,n),w(C,h),w(B,h),E.rawbroadphase_collidersWithAabbIntersectingAabb(this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,p(i))}finally{c[L++]=void 0}}},hC=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(Q=>E.__wbg_rawccdsolver_free(Q>>>0,1)),bA=class{__destroy_into_raw(){let A=this.__wbg_ptr;return this.__wbg_ptr=0,hC.unregister(this),A}free(){let A=this.__destroy_into_raw();E.__wbg_rawccdsolver_free(A,0)}constructor(){let A=E.rawccdsolver_new();return this.__wbg_ptr=A>>>0,hC.register(this,this.__wbg_ptr,this),this}},KC=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(Q=>E.__wbg_rawcharactercollision_free(Q>>>0,1)),bI=class{__destroy_into_raw(){let A=this.__wbg_ptr;return this.__wbg_ptr=0,KC.unregister(this),A}free(){let A=this.__destroy_into_raw();E.__wbg_rawcharactercollision_free(A,0)}constructor(){let A=E.rawcharactercollision_new();return this.__wbg_ptr=A>>>0,KC.register(this,this.__wbg_ptr,this),this}handle(){return E.rawcharactercollision_handle(this.__wbg_ptr)}translationDeltaApplied(){let A=E.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);return h.__wrap(A)}translationDeltaRemaining(){let A=E.rawcharactercollision_translationDeltaRemaining(this.__wbg_ptr);return h.__wrap(A)}toi(){return E.rawcharactercollision_toi(this.__wbg_ptr)}worldWitness1(){let A=E.rawcharactercollision_worldWitness1(this.__wbg_ptr);return h.__wrap(A)}worldWitness2(){let A=E.rawcharactercollision_worldWitness2(this.__wbg_ptr);return h.__wrap(A)}worldNormal1(){let A=E.rawcharactercollision_worldNormal1(this.__wbg_ptr);return h.__wrap(A)}worldNormal2(){let A=E.rawcharactercollision_worldNormal2(this.__wbg_ptr);return h.__wrap(A)}},Tg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(Q=>E.__wbg_rawcolliderset_free(Q>>>0,1)),n=class Q{static __wrap(A){A>>>=0;let I=Object.create(Q.prototype);return I.__wbg_ptr=A,Tg.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){let A=this.__wbg_ptr;return this.__wbg_ptr=0,Tg.unregister(this),A}free(){let A=this.__destroy_into_raw();E.__wbg_rawcolliderset_free(A,0)}coTranslation(A){let I=E.rawcolliderset_coTranslation(this.__wbg_ptr,A);return h.__wrap(I)}coRotation(A){let I=E.rawcolliderset_coRotation(this.__wbg_ptr,A);return R.__wrap(I)}coTranslationWrtParent(A){let I=E.rawcolliderset_coTranslationWrtParent(this.__wbg_ptr,A);return I===0?void 0:h.__wrap(I)}coRotationWrtParent(A){let I=E.rawcolliderset_coRotationWrtParent(this.__wbg_ptr,A);return I===0?void 0:R.__wrap(I)}coSetTranslation(A,I,g,C){E.rawcolliderset_coSetTranslation(this.__wbg_ptr,A,I,g,C)}coSetTranslationWrtParent(A,I,g,C){E.rawcolliderset_coSetTranslationWrtParent(this.__wbg_ptr,A,I,g,C)}coSetRotation(A,I,g,C,B){E.rawcolliderset_coSetRotation(this.__wbg_ptr,A,I,g,C,B)}coSetRotationWrtParent(A,I,g,C,B){E.rawcolliderset_coSetRotationWrtParent(this.__wbg_ptr,A,I,g,C,B)}coIsSensor(A){return E.rawcolliderset_coIsSensor(this.__wbg_ptr,A)!==0}coShapeType(A){return E.rawcolliderset_coShapeType(this.__wbg_ptr,A)}coHalfspaceNormal(A){let I=E.rawcolliderset_coHalfspaceNormal(this.__wbg_ptr,A);return I===0?void 0:h.__wrap(I)}coHalfExtents(A){let I=E.rawcolliderset_coHalfExtents(this.__wbg_ptr,A);return I===0?void 0:h.__wrap(I)}coSetHalfExtents(A,I){w(I,h),E.rawcolliderset_coSetHalfExtents(this.__wbg_ptr,A,I.__wbg_ptr)}coRadius(A){let I=E.rawcolliderset_coRadius(this.__wbg_ptr,A);return I===4294967297?void 0:I}coSetRadius(A,I){E.rawcolliderset_coSetRadius(this.__wbg_ptr,A,I)}coHalfHeight(A){let I=E.rawcolliderset_coHalfHeight(this.__wbg_ptr,A);return I===4294967297?void 0:I}coSetHalfHeight(A,I){E.rawcolliderset_coSetHalfHeight(this.__wbg_ptr,A,I)}coRoundRadius(A){let I=E.rawcolliderset_coRoundRadius(this.__wbg_ptr,A);return I===4294967297?void 0:I}coSetRoundRadius(A,I){E.rawcolliderset_coSetRoundRadius(this.__wbg_ptr,A,I)}coVoxelData(A){try{let C=E.__wbindgen_add_to_stack_pointer(-16);E.rawcolliderset_coVoxelData(C,this.__wbg_ptr,A);var I=x().getInt32(C+0,!0),g=x().getInt32(C+4,!0);let B;return I!==0&&(B=VC(I,g).slice(),E.__wbindgen_export_1(I,4*g,4)),B}finally{E.__wbindgen_add_to_stack_pointer(16)}}coVoxelSize(A){let I=E.rawcolliderset_coVoxelSize(this.__wbg_ptr,A);return I===0?void 0:h.__wrap(I)}coSetVoxel(A,I,g,C,B){E.rawcolliderset_coSetVoxel(this.__wbg_ptr,A,I,g,C,B)}coPropagateVoxelChange(A,I,g,C,B,i,D,o){E.rawcolliderset_coPropagateVoxelChange(this.__wbg_ptr,A,I,g,C,B,i,D,o)}coCombineVoxelStates(A,I,g,C,B){E.rawcolliderset_coCombineVoxelStates(this.__wbg_ptr,A,I,g,C,B)}coVertices(A){try{let C=E.__wbindgen_add_to_stack_pointer(-16);E.rawcolliderset_coVertices(C,this.__wbg_ptr,A);var I=x().getInt32(C+0,!0),g=x().getInt32(C+4,!0);let B;return I!==0&&(B=GC(I,g).slice(),E.__wbindgen_export_1(I,4*g,4)),B}finally{E.__wbindgen_add_to_stack_pointer(16)}}coIndices(A){try{let C=E.__wbindgen_add_to_stack_pointer(-16);E.rawcolliderset_coIndices(C,this.__wbg_ptr,A);var I=x().getInt32(C+0,!0),g=x().getInt32(C+4,!0);let B;return I!==0&&(B=function(i,D){return i>>>=0,jC().subarray(i/4,i/4+D)}(I,g).slice(),E.__wbindgen_export_1(I,4*g,4)),B}finally{E.__wbindgen_add_to_stack_pointer(16)}}coTriMeshFlags(A){let I=E.rawcolliderset_coTriMeshFlags(this.__wbg_ptr,A);return I===4294967297?void 0:I}coHeightFieldFlags(A){let I=E.rawcolliderset_coHeightFieldFlags(this.__wbg_ptr,A);return I===4294967297?void 0:I}coHeightfieldHeights(A){try{let C=E.__wbindgen_add_to_stack_pointer(-16);E.rawcolliderset_coHeightfieldHeights(C,this.__wbg_ptr,A);var I=x().getInt32(C+0,!0),g=x().getInt32(C+4,!0);let B;return I!==0&&(B=GC(I,g).slice(),E.__wbindgen_export_1(I,4*g,4)),B}finally{E.__wbindgen_add_to_stack_pointer(16)}}coHeightfieldScale(A){let I=E.rawcolliderset_coHeightfieldScale(this.__wbg_ptr,A);return I===0?void 0:h.__wrap(I)}coHeightfieldNRows(A){let I=E.rawcolliderset_coHeightfieldNRows(this.__wbg_ptr,A);return I===4294967297?void 0:I}coHeightfieldNCols(A){let I=E.rawcolliderset_coHeightfieldNCols(this.__wbg_ptr,A);return I===4294967297?void 0:I}coParent(A){try{let C=E.__wbindgen_add_to_stack_pointer(-16);E.rawcolliderset_coParent(C,this.__wbg_ptr,A);var I=x().getInt32(C+0,!0),g=x().getFloat64(C+8,!0);return I===0?void 0:g}finally{E.__wbindgen_add_to_stack_pointer(16)}}coSetEnabled(A,I){E.rawcolliderset_coSetEnabled(this.__wbg_ptr,A,I)}coIsEnabled(A){return E.rawcolliderset_coIsEnabled(this.__wbg_ptr,A)!==0}coSetContactSkin(A,I){E.rawcolliderset_coSetContactSkin(this.__wbg_ptr,A,I)}coContactSkin(A){return E.rawcolliderset_coContactSkin(this.__wbg_ptr,A)}coFriction(A){return E.rawcolliderset_coFriction(this.__wbg_ptr,A)}coRestitution(A){return E.rawcolliderset_coRestitution(this.__wbg_ptr,A)}coDensity(A){return E.rawcolliderset_coDensity(this.__wbg_ptr,A)}coMass(A){return E.rawcolliderset_coMass(this.__wbg_ptr,A)}coVolume(A){return E.rawcolliderset_coVolume(this.__wbg_ptr,A)}coCollisionGroups(A){return E.rawcolliderset_coCollisionGroups(this.__wbg_ptr,A)>>>0}coSolverGroups(A){return E.rawcolliderset_coSolverGroups(this.__wbg_ptr,A)>>>0}coActiveHooks(A){return E.rawcolliderset_coActiveHooks(this.__wbg_ptr,A)>>>0}coActiveCollisionTypes(A){return E.rawcolliderset_coActiveCollisionTypes(this.__wbg_ptr,A)}coActiveEvents(A){return E.rawcolliderset_coActiveEvents(this.__wbg_ptr,A)>>>0}coContactForceEventThreshold(A){return E.rawcolliderset_coContactForceEventThreshold(this.__wbg_ptr,A)}coContainsPoint(A,I){return w(I,h),E.rawcolliderset_coContainsPoint(this.__wbg_ptr,A,I.__wbg_ptr)!==0}coCastShape(A,I,g,C,B,i,D,o,S){w(I,h),w(g,q),w(C,h),w(B,R),w(i,h);let k=E.rawcolliderset_coCastShape(this.__wbg_ptr,A,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,i.__wbg_ptr,D,o,S);return k===0?void 0:VI.__wrap(k)}coCastCollider(A,I,g,C,B,i,D){w(I,h),w(C,h);let o=E.rawcolliderset_coCastCollider(this.__wbg_ptr,A,I.__wbg_ptr,g,C.__wbg_ptr,B,i,D);return o===0?void 0:xI.__wrap(o)}coIntersectsShape(A,I,g,C){return w(I,q),w(g,h),w(C,R),E.rawcolliderset_coIntersectsShape(this.__wbg_ptr,A,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr)!==0}coContactShape(A,I,g,C,B){w(I,q),w(g,h),w(C,R);let i=E.rawcolliderset_coContactShape(this.__wbg_ptr,A,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B);return i===0?void 0:xA.__wrap(i)}coContactCollider(A,I,g){let C=E.rawcolliderset_coContactCollider(this.__wbg_ptr,A,I,g);return C===0?void 0:xA.__wrap(C)}coProjectPoint(A,I,g){w(I,h);let C=E.rawcolliderset_coProjectPoint(this.__wbg_ptr,A,I.__wbg_ptr,g);return jI.__wrap(C)}coIntersectsRay(A,I,g,C){return w(I,h),w(g,h),E.rawcolliderset_coIntersectsRay(this.__wbg_ptr,A,I.__wbg_ptr,g.__wbg_ptr,C)!==0}coCastRay(A,I,g,C,B){return w(I,h),w(g,h),E.rawcolliderset_coCastRay(this.__wbg_ptr,A,I.__wbg_ptr,g.__wbg_ptr,C,B)}coCastRayAndGetNormal(A,I,g,C,B){w(I,h),w(g,h);let i=E.rawcolliderset_coCastRayAndGetNormal(this.__wbg_ptr,A,I.__wbg_ptr,g.__wbg_ptr,C,B);return i===0?void 0:uI.__wrap(i)}coSetSensor(A,I){E.rawcolliderset_coSetSensor(this.__wbg_ptr,A,I)}coSetRestitution(A,I){E.rawcolliderset_coSetRestitution(this.__wbg_ptr,A,I)}coSetFriction(A,I){E.rawcolliderset_coSetFriction(this.__wbg_ptr,A,I)}coFrictionCombineRule(A){return E.rawcolliderset_coFrictionCombineRule(this.__wbg_ptr,A)>>>0}coSetFrictionCombineRule(A,I){E.rawcolliderset_coSetFrictionCombineRule(this.__wbg_ptr,A,I)}coRestitutionCombineRule(A){return E.rawcolliderset_coRestitutionCombineRule(this.__wbg_ptr,A)>>>0}coSetRestitutionCombineRule(A,I){E.rawcolliderset_coSetRestitutionCombineRule(this.__wbg_ptr,A,I)}coSetCollisionGroups(A,I){E.rawcolliderset_coSetCollisionGroups(this.__wbg_ptr,A,I)}coSetSolverGroups(A,I){E.rawcolliderset_coSetSolverGroups(this.__wbg_ptr,A,I)}coSetActiveHooks(A,I){E.rawcolliderset_coSetActiveHooks(this.__wbg_ptr,A,I)}coSetActiveEvents(A,I){E.rawcolliderset_coSetActiveEvents(this.__wbg_ptr,A,I)}coSetActiveCollisionTypes(A,I){E.rawcolliderset_coSetActiveCollisionTypes(this.__wbg_ptr,A,I)}coSetShape(A,I){w(I,q),E.rawcolliderset_coSetShape(this.__wbg_ptr,A,I.__wbg_ptr)}coSetContactForceEventThreshold(A,I){E.rawcolliderset_coSetContactForceEventThreshold(this.__wbg_ptr,A,I)}coSetDensity(A,I){E.rawcolliderset_coSetDensity(this.__wbg_ptr,A,I)}coSetMass(A,I){E.rawcolliderset_coSetMass(this.__wbg_ptr,A,I)}coSetMassProperties(A,I,g,C,B){w(g,h),w(C,h),w(B,R),E.rawcolliderset_coSetMassProperties(this.__wbg_ptr,A,I,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr)}constructor(){let A=E.rawcolliderset_new();return this.__wbg_ptr=A>>>0,Tg.register(this,this.__wbg_ptr,this),this}len(){return E.rawcolliderset_len(this.__wbg_ptr)>>>0}contains(A){return E.rawcolliderset_contains(this.__wbg_ptr,A)!==0}createCollider(A,I,g,C,B,i,D,o,S,k,K,s,a,U,J,y,M,e,H,Z,W,V,l,GA,iA){try{let KA=E.__wbindgen_add_to_stack_pointer(-16);w(I,q),w(g,h),w(C,R),w(D,h),w(o,h),w(S,R),w(iA,r),E.rawcolliderset_createCollider(KA,this.__wbg_ptr,A,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B,i,D.__wbg_ptr,o.__wbg_ptr,S.__wbg_ptr,k,K,s,a,U,J,y,M,e,H,Z,W,V,l,GA,iA.__wbg_ptr);var hA=x().getInt32(KA+0,!0),RA=x().getFloat64(KA+8,!0);return hA===0?void 0:RA}finally{E.__wbindgen_add_to_stack_pointer(16)}}remove(A,I,g,C){w(I,SA),w(g,r),E.rawcolliderset_remove(this.__wbg_ptr,A,I.__wbg_ptr,g.__wbg_ptr,C)}isHandleValid(A){return E.rawcolliderset_contains(this.__wbg_ptr,A)!==0}forEachColliderHandle(A){try{E.rawcolliderset_forEachColliderHandle(this.__wbg_ptr,p(A))}finally{c[L++]=void 0}}},aC=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(Q=>E.__wbg_rawcollidershapecasthit_free(Q>>>0,1)),xI=class Q{static __wrap(A){A>>>=0;let I=Object.create(Q.prototype);return I.__wbg_ptr=A,aC.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){let A=this.__wbg_ptr;return this.__wbg_ptr=0,aC.unregister(this),A}free(){let A=this.__destroy_into_raw();E.__wbg_rawcollidershapecasthit_free(A,0)}colliderHandle(){return E.rawcharactercollision_handle(this.__wbg_ptr)}time_of_impact(){return E.rawcollidershapecasthit_time_of_impact(this.__wbg_ptr)}witness1(){let A=E.rawcollidershapecasthit_witness1(this.__wbg_ptr);return h.__wrap(A)}witness2(){let A=E.rawcollidershapecasthit_witness2(this.__wbg_ptr);return h.__wrap(A)}normal1(){let A=E.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);return h.__wrap(A)}normal2(){let A=E.rawcharactercollision_translationDeltaRemaining(this.__wbg_ptr);return h.__wrap(A)}},sC=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(Q=>E.__wbg_rawcontactforceevent_free(Q>>>0,1)),ug=class Q{static __wrap(A){A>>>=0;let I=Object.create(Q.prototype);return I.__wbg_ptr=A,sC.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){let A=this.__wbg_ptr;return this.__wbg_ptr=0,sC.unregister(this),A}free(){let A=this.__destroy_into_raw();E.__wbg_rawcontactforceevent_free(A,0)}collider1(){return E.rawcharactercollision_handle(this.__wbg_ptr)}collider2(){return E.rawcontactforceevent_collider2(this.__wbg_ptr)}total_force(){let A=E.rawcontactforceevent_total_force(this.__wbg_ptr);return h.__wrap(A)}total_force_magnitude(){return E.rawcontactforceevent_total_force_magnitude(this.__wbg_ptr)}max_force_direction(){let A=E.rawcontactforceevent_max_force_direction(this.__wbg_ptr);return h.__wrap(A)}max_force_magnitude(){return E.rawcontactforceevent_max_force_magnitude(this.__wbg_ptr)}},UC=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(Q=>E.__wbg_rawcontactmanifold_free(Q>>>0,1)),Xg=class Q{static __wrap(A){A>>>=0;let I=Object.create(Q.prototype);return I.__wbg_ptr=A,UC.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){let A=this.__wbg_ptr;return this.__wbg_ptr=0,UC.unregister(this),A}free(){let A=this.__destroy_into_raw();E.__wbg_rawcontactmanifold_free(A,0)}normal(){let A=E.rawcontactmanifold_normal(this.__wbg_ptr);return h.__wrap(A)}local_n1(){let A=E.rawcontactmanifold_local_n1(this.__wbg_ptr);return h.__wrap(A)}local_n2(){let A=E.rawcontactmanifold_local_n2(this.__wbg_ptr);return h.__wrap(A)}subshape1(){return E.rawcontactmanifold_subshape1(this.__wbg_ptr)>>>0}subshape2(){return E.rawcontactmanifold_subshape2(this.__wbg_ptr)>>>0}num_contacts(){return E.rawcontactmanifold_num_contacts(this.__wbg_ptr)>>>0}contact_local_p1(A){let I=E.rawcontactmanifold_contact_local_p1(this.__wbg_ptr,A);return I===0?void 0:h.__wrap(I)}contact_local_p2(A){let I=E.rawcontactmanifold_contact_local_p2(this.__wbg_ptr,A);return I===0?void 0:h.__wrap(I)}contact_dist(A){return E.rawcontactmanifold_contact_dist(this.__wbg_ptr,A)}contact_fid1(A){return E.rawcontactmanifold_contact_fid1(this.__wbg_ptr,A)>>>0}contact_fid2(A){return E.rawcontactmanifold_contact_fid2(this.__wbg_ptr,A)>>>0}contact_impulse(A){return E.rawcontactmanifold_contact_impulse(this.__wbg_ptr,A)}contact_tangent_impulse_x(A){return E.rawcontactmanifold_contact_tangent_impulse_x(this.__wbg_ptr,A)}contact_tangent_impulse_y(A){return E.rawcontactmanifold_contact_tangent_impulse_y(this.__wbg_ptr,A)}num_solver_contacts(){return E.rawcontactmanifold_num_solver_contacts(this.__wbg_ptr)>>>0}solver_contact_point(A){let I=E.rawcontactmanifold_solver_contact_point(this.__wbg_ptr,A);return I===0?void 0:h.__wrap(I)}solver_contact_dist(A){return E.rawcontactmanifold_solver_contact_dist(this.__wbg_ptr,A)}solver_contact_friction(A){return E.rawcontactmanifold_solver_contact_friction(this.__wbg_ptr,A)}solver_contact_restitution(A){return E.rawcontactmanifold_solver_contact_restitution(this.__wbg_ptr,A)}solver_contact_tangent_velocity(A){let I=E.rawcontactmanifold_solver_contact_tangent_velocity(this.__wbg_ptr,A);return h.__wrap(I)}},yC=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(Q=>E.__wbg_rawcontactpair_free(Q>>>0,1)),Vg=class Q{static __wrap(A){A>>>=0;let I=Object.create(Q.prototype);return I.__wbg_ptr=A,yC.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){let A=this.__wbg_ptr;return this.__wbg_ptr=0,yC.unregister(this),A}free(){let A=this.__destroy_into_raw();E.__wbg_rawcontactpair_free(A,0)}collider1(){return E.rawcontactpair_collider1(this.__wbg_ptr)}collider2(){return E.rawcontactpair_collider2(this.__wbg_ptr)}numContactManifolds(){return E.rawcontactpair_numContactManifolds(this.__wbg_ptr)>>>0}contactManifold(A){let I=E.rawcontactpair_contactManifold(this.__wbg_ptr,A);return I===0?void 0:Xg.__wrap(I)}},JC=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(Q=>E.__wbg_rawdebugrenderpipeline_free(Q>>>0,1)),Pg=class{__destroy_into_raw(){let A=this.__wbg_ptr;return this.__wbg_ptr=0,JC.unregister(this),A}free(){let A=this.__destroy_into_raw();E.__wbg_rawdebugrenderpipeline_free(A,0)}constructor(){let A=E.rawdebugrenderpipeline_new();return this.__wbg_ptr=A>>>0,JC.register(this,this.__wbg_ptr,this),this}vertices(){return ZA(E.rawdebugrenderpipeline_vertices(this.__wbg_ptr))}colors(){return ZA(E.rawdebugrenderpipeline_colors(this.__wbg_ptr))}render(A,I,g,C,B,i,D){try{w(A,r),w(I,n),w(g,oA),w(C,wA),w(B,m),E.rawdebugrenderpipeline_render(this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,i,p(D))}finally{c[L++]=void 0}}},NC=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(Q=>E.__wbg_rawdeserializedworld_free(Q>>>0,1)),zg=class Q{static __wrap(A){A>>>=0;let I=Object.create(Q.prototype);return I.__wbg_ptr=A,NC.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){let A=this.__wbg_ptr;return this.__wbg_ptr=0,NC.unregister(this),A}free(){let A=this.__destroy_into_raw();E.__wbg_rawdeserializedworld_free(A,0)}takeGravity(){let A=E.rawdeserializedworld_takeGravity(this.__wbg_ptr);return A===0?void 0:h.__wrap(A)}takeIntegrationParameters(){let A=E.rawdeserializedworld_takeIntegrationParameters(this.__wbg_ptr);return A===0?void 0:MA.__wrap(A)}takeIslandManager(){let A=E.rawdeserializedworld_takeIslandManager(this.__wbg_ptr);return A===0?void 0:SA.__wrap(A)}takeBroadPhase(){let A=E.rawdeserializedworld_takeBroadPhase(this.__wbg_ptr);return A===0?void 0:DA.__wrap(A)}takeNarrowPhase(){let A=E.rawdeserializedworld_takeNarrowPhase(this.__wbg_ptr);return A===0?void 0:m.__wrap(A)}takeBodies(){let A=E.rawdeserializedworld_takeBodies(this.__wbg_ptr);return A===0?void 0:r.__wrap(A)}takeColliders(){let A=E.rawdeserializedworld_takeColliders(this.__wbg_ptr);return A===0?void 0:n.__wrap(A)}takeImpulseJoints(){let A=E.rawdeserializedworld_takeImpulseJoints(this.__wbg_ptr);return A===0?void 0:oA.__wrap(A)}takeMultibodyJoints(){let A=E.rawdeserializedworld_takeMultibodyJoints(this.__wbg_ptr);return A===0?void 0:wA.__wrap(A)}},MC=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(Q=>E.__wbg_rawdynamicraycastvehiclecontroller_free(Q>>>0,1)),vg=class{__destroy_into_raw(){let A=this.__wbg_ptr;return this.__wbg_ptr=0,MC.unregister(this),A}free(){let A=this.__destroy_into_raw();E.__wbg_rawdynamicraycastvehiclecontroller_free(A,0)}constructor(A){let I=E.rawdynamicraycastvehiclecontroller_new(A);return this.__wbg_ptr=I>>>0,MC.register(this,this.__wbg_ptr,this),this}current_vehicle_speed(){return E.rawdynamicraycastvehiclecontroller_current_vehicle_speed(this.__wbg_ptr)}chassis(){return E.rawdynamicraycastvehiclecontroller_chassis(this.__wbg_ptr)}index_up_axis(){return E.rawdynamicraycastvehiclecontroller_index_up_axis(this.__wbg_ptr)>>>0}set_index_up_axis(A){E.rawdynamicraycastvehiclecontroller_set_index_up_axis(this.__wbg_ptr,A)}index_forward_axis(){return E.rawdynamicraycastvehiclecontroller_index_forward_axis(this.__wbg_ptr)>>>0}set_index_forward_axis(A){E.rawdynamicraycastvehiclecontroller_set_index_forward_axis(this.__wbg_ptr,A)}add_wheel(A,I,g,C,B){w(A,h),w(I,h),w(g,h),E.rawdynamicraycastvehiclecontroller_add_wheel(this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,C,B)}num_wheels(){return E.rawdynamicraycastvehiclecontroller_num_wheels(this.__wbg_ptr)>>>0}update_vehicle(A,I,g,C,B,i,D,o){try{w(I,DA),w(g,m),w(C,r),w(B,n),E.rawdynamicraycastvehiclecontroller_update_vehicle(this.__wbg_ptr,A,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,i,N(D)?4294967297:D>>>0,p(o))}finally{c[L++]=void 0}}wheel_chassis_connection_point_cs(A){let I=E.rawdynamicraycastvehiclecontroller_wheel_chassis_connection_point_cs(this.__wbg_ptr,A);return I===0?void 0:h.__wrap(I)}set_wheel_chassis_connection_point_cs(A,I){w(I,h),E.rawdynamicraycastvehiclecontroller_set_wheel_chassis_connection_point_cs(this.__wbg_ptr,A,I.__wbg_ptr)}wheel_suspension_rest_length(A){let I=E.rawdynamicraycastvehiclecontroller_wheel_suspension_rest_length(this.__wbg_ptr,A);return I===4294967297?void 0:I}set_wheel_suspension_rest_length(A,I){E.rawdynamicraycastvehiclecontroller_set_wheel_suspension_rest_length(this.__wbg_ptr,A,I)}wheel_max_suspension_travel(A){let I=E.rawdynamicraycastvehiclecontroller_wheel_max_suspension_travel(this.__wbg_ptr,A);return I===4294967297?void 0:I}set_wheel_max_suspension_travel(A,I){E.rawdynamicraycastvehiclecontroller_set_wheel_max_suspension_travel(this.__wbg_ptr,A,I)}wheel_radius(A){let I=E.rawdynamicraycastvehiclecontroller_wheel_radius(this.__wbg_ptr,A);return I===4294967297?void 0:I}set_wheel_radius(A,I){E.rawdynamicraycastvehiclecontroller_set_wheel_radius(this.__wbg_ptr,A,I)}wheel_suspension_stiffness(A){let I=E.rawdynamicraycastvehiclecontroller_wheel_suspension_stiffness(this.__wbg_ptr,A);return I===4294967297?void 0:I}set_wheel_suspension_stiffness(A,I){E.rawdynamicraycastvehiclecontroller_set_wheel_suspension_stiffness(this.__wbg_ptr,A,I)}wheel_suspension_compression(A){let I=E.rawdynamicraycastvehiclecontroller_wheel_suspension_compression(this.__wbg_ptr,A);return I===4294967297?void 0:I}set_wheel_suspension_compression(A,I){E.rawdynamicraycastvehiclecontroller_set_wheel_suspension_compression(this.__wbg_ptr,A,I)}wheel_suspension_relaxation(A){let I=E.rawdynamicraycastvehiclecontroller_wheel_suspension_relaxation(this.__wbg_ptr,A);return I===4294967297?void 0:I}set_wheel_suspension_relaxation(A,I){E.rawdynamicraycastvehiclecontroller_set_wheel_suspension_relaxation(this.__wbg_ptr,A,I)}wheel_max_suspension_force(A){let I=E.rawdynamicraycastvehiclecontroller_wheel_max_suspension_force(this.__wbg_ptr,A);return I===4294967297?void 0:I}set_wheel_max_suspension_force(A,I){E.rawdynamicraycastvehiclecontroller_set_wheel_max_suspension_force(this.__wbg_ptr,A,I)}wheel_brake(A){let I=E.rawdynamicraycastvehiclecontroller_wheel_brake(this.__wbg_ptr,A);return I===4294967297?void 0:I}set_wheel_brake(A,I){E.rawdynamicraycastvehiclecontroller_set_wheel_brake(this.__wbg_ptr,A,I)}wheel_steering(A){let I=E.rawdynamicraycastvehiclecontroller_wheel_steering(this.__wbg_ptr,A);return I===4294967297?void 0:I}set_wheel_steering(A,I){E.rawdynamicraycastvehiclecontroller_set_wheel_steering(this.__wbg_ptr,A,I)}wheel_engine_force(A){let I=E.rawdynamicraycastvehiclecontroller_wheel_engine_force(this.__wbg_ptr,A);return I===4294967297?void 0:I}set_wheel_engine_force(A,I){E.rawdynamicraycastvehiclecontroller_set_wheel_engine_force(this.__wbg_ptr,A,I)}wheel_direction_cs(A){let I=E.rawdynamicraycastvehiclecontroller_wheel_direction_cs(this.__wbg_ptr,A);return I===0?void 0:h.__wrap(I)}set_wheel_direction_cs(A,I){w(I,h),E.rawdynamicraycastvehiclecontroller_set_wheel_direction_cs(this.__wbg_ptr,A,I.__wbg_ptr)}wheel_axle_cs(A){let I=E.rawdynamicraycastvehiclecontroller_wheel_axle_cs(this.__wbg_ptr,A);return I===0?void 0:h.__wrap(I)}set_wheel_axle_cs(A,I){w(I,h),E.rawdynamicraycastvehiclecontroller_set_wheel_axle_cs(this.__wbg_ptr,A,I.__wbg_ptr)}wheel_friction_slip(A){let I=E.rawdynamicraycastvehiclecontroller_wheel_friction_slip(this.__wbg_ptr,A);return I===4294967297?void 0:I}set_wheel_friction_slip(A,I){E.rawdynamicraycastvehiclecontroller_set_wheel_friction_slip(this.__wbg_ptr,A,I)}wheel_side_friction_stiffness(A){let I=E.rawdynamicraycastvehiclecontroller_wheel_side_friction_stiffness(this.__wbg_ptr,A);return I===4294967297?void 0:I}set_wheel_side_friction_stiffness(A,I){E.rawdynamicraycastvehiclecontroller_set_wheel_side_friction_stiffness(this.__wbg_ptr,A,I)}wheel_rotation(A){let I=E.rawdynamicraycastvehiclecontroller_wheel_rotation(this.__wbg_ptr,A);return I===4294967297?void 0:I}wheel_forward_impulse(A){let I=E.rawdynamicraycastvehiclecontroller_wheel_forward_impulse(this.__wbg_ptr,A);return I===4294967297?void 0:I}wheel_side_impulse(A){let I=E.rawdynamicraycastvehiclecontroller_wheel_side_impulse(this.__wbg_ptr,A);return I===4294967297?void 0:I}wheel_suspension_force(A){let I=E.rawdynamicraycastvehiclecontroller_wheel_suspension_force(this.__wbg_ptr,A);return I===4294967297?void 0:I}wheel_contact_normal_ws(A){let I=E.rawdynamicraycastvehiclecontroller_wheel_contact_normal_ws(this.__wbg_ptr,A);return I===0?void 0:h.__wrap(I)}wheel_contact_point_ws(A){let I=E.rawdynamicraycastvehiclecontroller_wheel_contact_point_ws(this.__wbg_ptr,A);return I===0?void 0:h.__wrap(I)}wheel_suspension_length(A){let I=E.rawdynamicraycastvehiclecontroller_wheel_suspension_length(this.__wbg_ptr,A);return I===4294967297?void 0:I}wheel_hard_point_ws(A){let I=E.rawdynamicraycastvehiclecontroller_wheel_hard_point_ws(this.__wbg_ptr,A);return I===0?void 0:h.__wrap(I)}wheel_is_in_contact(A){return E.rawdynamicraycastvehiclecontroller_wheel_is_in_contact(this.__wbg_ptr,A)!==0}wheel_ground_object(A){try{let C=E.__wbindgen_add_to_stack_pointer(-16);E.rawdynamicraycastvehiclecontroller_wheel_ground_object(C,this.__wbg_ptr,A);var I=x().getInt32(C+0,!0),g=x().getFloat64(C+8,!0);return I===0?void 0:g}finally{E.__wbindgen_add_to_stack_pointer(16)}}},FC=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(Q=>E.__wbg_raweventqueue_free(Q>>>0,1)),mI=class{__destroy_into_raw(){let A=this.__wbg_ptr;return this.__wbg_ptr=0,FC.unregister(this),A}free(){let A=this.__destroy_into_raw();E.__wbg_raweventqueue_free(A,0)}constructor(A){let I=E.raweventqueue_new(A);return this.__wbg_ptr=I>>>0,FC.register(this,this.__wbg_ptr,this),this}drainCollisionEvents(A){try{E.raweventqueue_drainCollisionEvents(this.__wbg_ptr,p(A))}finally{c[L++]=void 0}}drainContactForceEvents(A){try{E.raweventqueue_drainContactForceEvents(this.__wbg_ptr,p(A))}finally{c[L++]=void 0}}clear(){E.raweventqueue_clear(this.__wbg_ptr)}},RC=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(Q=>E.__wbg_rawgenericjoint_free(Q>>>0,1)),gA=class Q{static __wrap(A){A>>>=0;let I=Object.create(Q.prototype);return I.__wbg_ptr=A,RC.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){let A=this.__wbg_ptr;return this.__wbg_ptr=0,RC.unregister(this),A}free(){let A=this.__destroy_into_raw();E.__wbg_rawgenericjoint_free(A,0)}static generic(A,I,g,C){w(A,h),w(I,h),w(g,h);let B=E.rawgenericjoint_generic(A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,C);return B===0?void 0:Q.__wrap(B)}static spring(A,I,g,C,B){w(C,h),w(B,h);let i=E.rawgenericjoint_spring(A,I,g,C.__wbg_ptr,B.__wbg_ptr);return Q.__wrap(i)}static rope(A,I,g){w(I,h),w(g,h);let C=E.rawgenericjoint_rope(A,I.__wbg_ptr,g.__wbg_ptr);return Q.__wrap(C)}static spherical(A,I){w(A,h),w(I,h);let g=E.rawgenericjoint_spherical(A.__wbg_ptr,I.__wbg_ptr);return Q.__wrap(g)}static prismatic(A,I,g,C,B,i){w(A,h),w(I,h),w(g,h);let D=E.rawgenericjoint_prismatic(A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,C,B,i);return D===0?void 0:Q.__wrap(D)}static fixed(A,I,g,C){w(A,h),w(I,R),w(g,h),w(C,R);let B=E.rawgenericjoint_fixed(A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr);return Q.__wrap(B)}static revolute(A,I,g){w(A,h),w(I,h),w(g,h);let C=E.rawgenericjoint_revolute(A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr);return C===0?void 0:Q.__wrap(C)}},Og=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(Q=>E.__wbg_rawimpulsejointset_free(Q>>>0,1)),oA=class Q{static __wrap(A){A>>>=0;let I=Object.create(Q.prototype);return I.__wbg_ptr=A,Og.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){let A=this.__wbg_ptr;return this.__wbg_ptr=0,Og.unregister(this),A}free(){let A=this.__destroy_into_raw();E.__wbg_rawimpulsejointset_free(A,0)}jointType(A){return E.rawimpulsejointset_jointType(this.__wbg_ptr,A)}jointBodyHandle1(A){return E.rawimpulsejointset_jointBodyHandle1(this.__wbg_ptr,A)}jointBodyHandle2(A){return E.rawimpulsejointset_jointBodyHandle2(this.__wbg_ptr,A)}jointFrameX1(A){let I=E.rawimpulsejointset_jointFrameX1(this.__wbg_ptr,A);return R.__wrap(I)}jointFrameX2(A){let I=E.rawimpulsejointset_jointFrameX2(this.__wbg_ptr,A);return R.__wrap(I)}jointAnchor1(A){let I=E.rawimpulsejointset_jointAnchor1(this.__wbg_ptr,A);return h.__wrap(I)}jointAnchor2(A){let I=E.rawimpulsejointset_jointAnchor2(this.__wbg_ptr,A);return h.__wrap(I)}jointSetAnchor1(A,I){w(I,h),E.rawimpulsejointset_jointSetAnchor1(this.__wbg_ptr,A,I.__wbg_ptr)}jointSetAnchor2(A,I){w(I,h),E.rawimpulsejointset_jointSetAnchor2(this.__wbg_ptr,A,I.__wbg_ptr)}jointContactsEnabled(A){return E.rawimpulsejointset_jointContactsEnabled(this.__wbg_ptr,A)!==0}jointSetContactsEnabled(A,I){E.rawimpulsejointset_jointSetContactsEnabled(this.__wbg_ptr,A,I)}jointLimitsEnabled(A,I){return E.rawimpulsejointset_jointLimitsEnabled(this.__wbg_ptr,A,I)!==0}jointLimitsMin(A,I){return E.rawimpulsejointset_jointLimitsMin(this.__wbg_ptr,A,I)}jointLimitsMax(A,I){return E.rawimpulsejointset_jointLimitsMax(this.__wbg_ptr,A,I)}jointSetLimits(A,I,g,C){E.rawimpulsejointset_jointSetLimits(this.__wbg_ptr,A,I,g,C)}jointConfigureMotorModel(A,I,g){E.rawimpulsejointset_jointConfigureMotorModel(this.__wbg_ptr,A,I,g)}jointConfigureMotorVelocity(A,I,g,C){E.rawimpulsejointset_jointConfigureMotorVelocity(this.__wbg_ptr,A,I,g,C)}jointConfigureMotorPosition(A,I,g,C,B){E.rawimpulsejointset_jointConfigureMotorPosition(this.__wbg_ptr,A,I,g,C,B)}jointConfigureMotor(A,I,g,C,B,i){E.rawimpulsejointset_jointConfigureMotor(this.__wbg_ptr,A,I,g,C,B,i)}constructor(){let A=E.rawimpulsejointset_new();return this.__wbg_ptr=A>>>0,Og.register(this,this.__wbg_ptr,this),this}createJoint(A,I,g,C){return w(A,gA),E.rawimpulsejointset_createJoint(this.__wbg_ptr,A.__wbg_ptr,I,g,C)}remove(A,I){E.rawimpulsejointset_remove(this.__wbg_ptr,A,I)}len(){return E.rawimpulsejointset_len(this.__wbg_ptr)>>>0}contains(A){return E.rawimpulsejointset_contains(this.__wbg_ptr,A)!==0}forEachJointHandle(A){try{E.rawimpulsejointset_forEachJointHandle(this.__wbg_ptr,p(A))}finally{c[L++]=void 0}}forEachJointAttachedToRigidBody(A,I){try{E.rawimpulsejointset_forEachJointAttachedToRigidBody(this.__wbg_ptr,A,p(I))}finally{c[L++]=void 0}}},Zg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(Q=>E.__wbg_rawintegrationparameters_free(Q>>>0,1)),MA=class Q{static __wrap(A){A>>>=0;let I=Object.create(Q.prototype);return I.__wbg_ptr=A,Zg.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){let A=this.__wbg_ptr;return this.__wbg_ptr=0,Zg.unregister(this),A}free(){let A=this.__destroy_into_raw();E.__wbg_rawintegrationparameters_free(A,0)}constructor(){let A=E.rawintegrationparameters_new();return this.__wbg_ptr=A>>>0,Zg.register(this,this.__wbg_ptr,this),this}get dt(){return E.rawintegrationparameters_dt(this.__wbg_ptr)}get contact_erp(){return E.rawintegrationparameters_contact_erp(this.__wbg_ptr)}get normalizedAllowedLinearError(){return E.rawdynamicraycastvehiclecontroller_current_vehicle_speed(this.__wbg_ptr)}get normalizedPredictionDistance(){return E.rawcontactforceevent_max_force_magnitude(this.__wbg_ptr)}get numSolverIterations(){return E.rawintegrationparameters_numSolverIterations(this.__wbg_ptr)>>>0}get numAdditionalFrictionIterations(){return E.rawdynamicraycastvehiclecontroller_index_up_axis(this.__wbg_ptr)>>>0}get numInternalPgsIterations(){return E.rawdynamicraycastvehiclecontroller_index_forward_axis(this.__wbg_ptr)>>>0}get minIslandSize(){return E.rawintegrationparameters_minIslandSize(this.__wbg_ptr)>>>0}get maxCcdSubsteps(){return E.rawintegrationparameters_maxCcdSubsteps(this.__wbg_ptr)>>>0}get lengthUnit(){return E.rawintegrationparameters_lengthUnit(this.__wbg_ptr)}set dt(A){E.rawintegrationparameters_set_dt(this.__wbg_ptr,A)}set contact_natural_frequency(A){E.rawintegrationparameters_set_contact_natural_frequency(this.__wbg_ptr,A)}set normalizedAllowedLinearError(A){E.rawintegrationparameters_set_normalizedAllowedLinearError(this.__wbg_ptr,A)}set normalizedPredictionDistance(A){E.rawintegrationparameters_set_normalizedPredictionDistance(this.__wbg_ptr,A)}set numSolverIterations(A){E.rawintegrationparameters_set_numSolverIterations(this.__wbg_ptr,A)}set numAdditionalFrictionIterations(A){E.rawdynamicraycastvehiclecontroller_set_index_up_axis(this.__wbg_ptr,A)}set numInternalPgsIterations(A){E.rawdynamicraycastvehiclecontroller_set_index_forward_axis(this.__wbg_ptr,A)}set minIslandSize(A){E.rawintegrationparameters_set_minIslandSize(this.__wbg_ptr,A)}set maxCcdSubsteps(A){E.rawintegrationparameters_set_maxCcdSubsteps(this.__wbg_ptr,A)}set lengthUnit(A){E.rawintegrationparameters_set_lengthUnit(this.__wbg_ptr,A)}switchToStandardPgsSolver(){E.rawintegrationparameters_switchToStandardPgsSolver(this.__wbg_ptr)}switchToSmallStepsPgsSolver(){E.rawintegrationparameters_switchToSmallStepsPgsSolver(this.__wbg_ptr)}switchToSmallStepsPgsSolverWithoutWarmstart(){E.rawintegrationparameters_switchToSmallStepsPgsSolverWithoutWarmstart(this.__wbg_ptr)}},bg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(Q=>E.__wbg_rawislandmanager_free(Q>>>0,1)),SA=class Q{static __wrap(A){A>>>=0;let I=Object.create(Q.prototype);return I.__wbg_ptr=A,bg.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){let A=this.__wbg_ptr;return this.__wbg_ptr=0,bg.unregister(this),A}free(){let A=this.__destroy_into_raw();E.__wbg_rawislandmanager_free(A,0)}constructor(){let A=E.rawislandmanager_new();return this.__wbg_ptr=A>>>0,bg.register(this,this.__wbg_ptr,this),this}forEachActiveRigidBodyHandle(A){try{E.rawislandmanager_forEachActiveRigidBodyHandle(this.__wbg_ptr,p(A))}finally{c[L++]=void 0}}},cC=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(Q=>E.__wbg_rawkinematiccharactercontroller_free(Q>>>0,1)),_g=class{__destroy_into_raw(){let A=this.__wbg_ptr;return this.__wbg_ptr=0,cC.unregister(this),A}free(){let A=this.__destroy_into_raw();E.__wbg_rawkinematiccharactercontroller_free(A,0)}constructor(A){let I=E.rawkinematiccharactercontroller_new(A);return this.__wbg_ptr=I>>>0,cC.register(this,this.__wbg_ptr,this),this}up(){let A=E.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);return h.__wrap(A)}setUp(A){w(A,h),E.rawkinematiccharactercontroller_setUp(this.__wbg_ptr,A.__wbg_ptr)}normalNudgeFactor(){return E.rawkinematiccharactercontroller_normalNudgeFactor(this.__wbg_ptr)}setNormalNudgeFactor(A){E.rawkinematiccharactercontroller_setNormalNudgeFactor(this.__wbg_ptr,A)}offset(){return E.rawintegrationparameters_dt(this.__wbg_ptr)}setOffset(A){E.rawkinematiccharactercontroller_setOffset(this.__wbg_ptr,A)}slideEnabled(){return E.rawkinematiccharactercontroller_slideEnabled(this.__wbg_ptr)!==0}setSlideEnabled(A){E.rawkinematiccharactercontroller_setSlideEnabled(this.__wbg_ptr,A)}autostepMaxHeight(){let A=E.rawkinematiccharactercontroller_autostepMaxHeight(this.__wbg_ptr);return A===4294967297?void 0:A}autostepMinWidth(){let A=E.rawkinematiccharactercontroller_autostepMinWidth(this.__wbg_ptr);return A===4294967297?void 0:A}autostepIncludesDynamicBodies(){let A=E.rawkinematiccharactercontroller_autostepIncludesDynamicBodies(this.__wbg_ptr);return A===16777215?void 0:A!==0}autostepEnabled(){return E.rawkinematiccharactercontroller_autostepEnabled(this.__wbg_ptr)!==0}enableAutostep(A,I,g){E.rawkinematiccharactercontroller_enableAutostep(this.__wbg_ptr,A,I,g)}disableAutostep(){E.rawkinematiccharactercontroller_disableAutostep(this.__wbg_ptr)}maxSlopeClimbAngle(){return E.rawkinematiccharactercontroller_maxSlopeClimbAngle(this.__wbg_ptr)}setMaxSlopeClimbAngle(A){E.rawkinematiccharactercontroller_setMaxSlopeClimbAngle(this.__wbg_ptr,A)}minSlopeSlideAngle(){return E.rawkinematiccharactercontroller_minSlopeSlideAngle(this.__wbg_ptr)}setMinSlopeSlideAngle(A){E.rawkinematiccharactercontroller_setMinSlopeSlideAngle(this.__wbg_ptr,A)}snapToGroundDistance(){let A=E.rawkinematiccharactercontroller_snapToGroundDistance(this.__wbg_ptr);return A===4294967297?void 0:A}enableSnapToGround(A){E.rawkinematiccharactercontroller_enableSnapToGround(this.__wbg_ptr,A)}disableSnapToGround(){E.rawkinematiccharactercontroller_disableSnapToGround(this.__wbg_ptr)}snapToGroundEnabled(){return E.rawkinematiccharactercontroller_snapToGroundEnabled(this.__wbg_ptr)!==0}computeColliderMovement(A,I,g,C,B,i,D,o,S,k,K,s){try{w(I,DA),w(g,m),w(C,r),w(B,n),w(D,h),E.rawkinematiccharactercontroller_computeColliderMovement(this.__wbg_ptr,A,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,i,D.__wbg_ptr,o,N(S)?4294967297:Math.fround(S),k,N(K)?4294967297:K>>>0,p(s))}finally{c[L++]=void 0}}computedMovement(){let A=E.rawkinematiccharactercontroller_computedMovement(this.__wbg_ptr);return h.__wrap(A)}computedGrounded(){return E.rawkinematiccharactercontroller_computedGrounded(this.__wbg_ptr)!==0}numComputedCollisions(){return E.rawkinematiccharactercontroller_numComputedCollisions(this.__wbg_ptr)>>>0}computedCollision(A,I){return w(I,bI),E.rawkinematiccharactercontroller_computedCollision(this.__wbg_ptr,A,I.__wbg_ptr)!==0}},xg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(Q=>E.__wbg_rawmultibodyjointset_free(Q>>>0,1)),wA=class Q{static __wrap(A){A>>>=0;let I=Object.create(Q.prototype);return I.__wbg_ptr=A,xg.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){let A=this.__wbg_ptr;return this.__wbg_ptr=0,xg.unregister(this),A}free(){let A=this.__destroy_into_raw();E.__wbg_rawmultibodyjointset_free(A,0)}jointType(A){return E.rawmultibodyjointset_jointType(this.__wbg_ptr,A)}jointFrameX1(A){let I=E.rawmultibodyjointset_jointFrameX1(this.__wbg_ptr,A);return R.__wrap(I)}jointFrameX2(A){let I=E.rawmultibodyjointset_jointFrameX2(this.__wbg_ptr,A);return R.__wrap(I)}jointAnchor1(A){let I=E.rawmultibodyjointset_jointAnchor1(this.__wbg_ptr,A);return h.__wrap(I)}jointAnchor2(A){let I=E.rawmultibodyjointset_jointAnchor2(this.__wbg_ptr,A);return h.__wrap(I)}jointContactsEnabled(A){return E.rawmultibodyjointset_jointContactsEnabled(this.__wbg_ptr,A)!==0}jointSetContactsEnabled(A,I){E.rawmultibodyjointset_jointSetContactsEnabled(this.__wbg_ptr,A,I)}jointLimitsEnabled(A,I){return E.rawmultibodyjointset_jointLimitsEnabled(this.__wbg_ptr,A,I)!==0}jointLimitsMin(A,I){return E.rawmultibodyjointset_jointLimitsMin(this.__wbg_ptr,A,I)}jointLimitsMax(A,I){return E.rawmultibodyjointset_jointLimitsMax(this.__wbg_ptr,A,I)}constructor(){let A=E.rawmultibodyjointset_new();return this.__wbg_ptr=A>>>0,xg.register(this,this.__wbg_ptr,this),this}createJoint(A,I,g,C){return w(A,gA),E.rawmultibodyjointset_createJoint(this.__wbg_ptr,A.__wbg_ptr,I,g,C)}remove(A,I){E.rawmultibodyjointset_remove(this.__wbg_ptr,A,I)}contains(A){return E.rawmultibodyjointset_contains(this.__wbg_ptr,A)!==0}forEachJointHandle(A){try{E.rawmultibodyjointset_forEachJointHandle(this.__wbg_ptr,p(A))}finally{c[L++]=void 0}}forEachJointAttachedToRigidBody(A,I){try{E.rawmultibodyjointset_forEachJointAttachedToRigidBody(this.__wbg_ptr,A,p(I))}finally{c[L++]=void 0}}},mg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(Q=>E.__wbg_rawnarrowphase_free(Q>>>0,1)),m=class Q{static __wrap(A){A>>>=0;let I=Object.create(Q.prototype);return I.__wbg_ptr=A,mg.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){let A=this.__wbg_ptr;return this.__wbg_ptr=0,mg.unregister(this),A}free(){let A=this.__destroy_into_raw();E.__wbg_rawnarrowphase_free(A,0)}constructor(){let A=E.rawnarrowphase_new();return this.__wbg_ptr=A>>>0,mg.register(this,this.__wbg_ptr,this),this}contact_pairs_with(A,I){E.rawnarrowphase_contact_pairs_with(this.__wbg_ptr,A,b(I))}contact_pair(A,I){let g=E.rawnarrowphase_contact_pair(this.__wbg_ptr,A,I);return g===0?void 0:Vg.__wrap(g)}intersection_pairs_with(A,I){E.rawnarrowphase_intersection_pairs_with(this.__wbg_ptr,A,b(I))}intersection_pair(A,I){return E.rawnarrowphase_intersection_pair(this.__wbg_ptr,A,I)!==0}},tC=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(Q=>E.__wbg_rawphysicspipeline_free(Q>>>0,1)),$g=class{__destroy_into_raw(){let A=this.__wbg_ptr;return this.__wbg_ptr=0,tC.unregister(this),A}free(){let A=this.__destroy_into_raw();E.__wbg_rawphysicspipeline_free(A,0)}constructor(){let A=E.rawphysicspipeline_new();return this.__wbg_ptr=A>>>0,tC.register(this,this.__wbg_ptr,this),this}step(A,I,g,C,B,i,D,o,S,k){w(A,h),w(I,MA),w(g,SA),w(C,DA),w(B,m),w(i,r),w(D,n),w(o,oA),w(S,wA),w(k,bA),E.rawphysicspipeline_step(this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,i.__wbg_ptr,D.__wbg_ptr,o.__wbg_ptr,S.__wbg_ptr,k.__wbg_ptr)}stepWithEvents(A,I,g,C,B,i,D,o,S,k,K,s,a,U){w(A,h),w(I,MA),w(g,SA),w(C,DA),w(B,m),w(i,r),w(D,n),w(o,oA),w(S,wA),w(k,bA),w(K,mI),E.rawphysicspipeline_stepWithEvents(this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,i.__wbg_ptr,D.__wbg_ptr,o.__wbg_ptr,S.__wbg_ptr,k.__wbg_ptr,K.__wbg_ptr,b(s),b(a),b(U))}},qC=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(Q=>E.__wbg_rawpidcontroller_free(Q>>>0,1)),AC=class{__destroy_into_raw(){let A=this.__wbg_ptr;return this.__wbg_ptr=0,qC.unregister(this),A}free(){let A=this.__destroy_into_raw();E.__wbg_rawpidcontroller_free(A,0)}constructor(A,I,g,C){let B=E.rawpidcontroller_new(A,I,g,C);return this.__wbg_ptr=B>>>0,qC.register(this,this.__wbg_ptr,this),this}set_kp(A,I){E.rawpidcontroller_set_kp(this.__wbg_ptr,A,I)}set_ki(A,I){E.rawpidcontroller_set_ki(this.__wbg_ptr,A,I)}set_kd(A,I){E.rawpidcontroller_set_kd(this.__wbg_ptr,A,I)}set_axes_mask(A){E.rawpidcontroller_set_axes_mask(this.__wbg_ptr,A)}reset_integrals(){E.rawpidcontroller_reset_integrals(this.__wbg_ptr)}apply_linear_correction(A,I,g,C,B){w(I,r),w(C,h),w(B,h),E.rawpidcontroller_apply_linear_correction(this.__wbg_ptr,A,I.__wbg_ptr,g,C.__wbg_ptr,B.__wbg_ptr)}apply_angular_correction(A,I,g,C,B){w(I,r),w(C,R),w(B,h),E.rawpidcontroller_apply_angular_correction(this.__wbg_ptr,A,I.__wbg_ptr,g,C.__wbg_ptr,B.__wbg_ptr)}linear_correction(A,I,g,C,B){w(I,r),w(C,h),w(B,h);let i=E.rawpidcontroller_linear_correction(this.__wbg_ptr,A,I.__wbg_ptr,g,C.__wbg_ptr,B.__wbg_ptr);return h.__wrap(i)}angular_correction(A,I,g,C,B){w(I,r),w(C,R),w(B,h);let i=E.rawpidcontroller_angular_correction(this.__wbg_ptr,A,I.__wbg_ptr,g,C.__wbg_ptr,B.__wbg_ptr);return h.__wrap(i)}},YC=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(Q=>E.__wbg_rawpointcolliderprojection_free(Q>>>0,1)),WI=class Q{static __wrap(A){A>>>=0;let I=Object.create(Q.prototype);return I.__wbg_ptr=A,YC.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){let A=this.__wbg_ptr;return this.__wbg_ptr=0,YC.unregister(this),A}free(){let A=this.__destroy_into_raw();E.__wbg_rawpointcolliderprojection_free(A,0)}colliderHandle(){return E.rawpointcolliderprojection_colliderHandle(this.__wbg_ptr)}point(){let A=E.rawpointcolliderprojection_point(this.__wbg_ptr);return h.__wrap(A)}isInside(){return E.rawpointcolliderprojection_isInside(this.__wbg_ptr)!==0}featureType(){return E.rawpointcolliderprojection_featureType(this.__wbg_ptr)}featureId(){let A=E.rawpointcolliderprojection_featureId(this.__wbg_ptr);return A===4294967297?void 0:A}},lC=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(Q=>E.__wbg_rawpointprojection_free(Q>>>0,1)),jI=class Q{static __wrap(A){A>>>=0;let I=Object.create(Q.prototype);return I.__wbg_ptr=A,lC.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){let A=this.__wbg_ptr;return this.__wbg_ptr=0,lC.unregister(this),A}free(){let A=this.__destroy_into_raw();E.__wbg_rawpointprojection_free