UNPKG

@needle-tools/engine

Version:

Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in.

1 lines • 2.24 MB
let C;const R=new Array(128).fill(void 0);function a(E){return R[E]}R.push(void 0,null,!0,!1);let JA=R.length;function Y(E){JA===R.length&&R.push(R.length+1);const A=JA;return JA=R[A],R[A]=E,A}function rA(E,A){try{return E.apply(this,A)}catch(I){C.__wbindgen_export_0(Y(I))}}const Ng=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&Ng.decode();let MA=null;function RI(E,A){return E>>>=0,Ng.decode((MA!==null&&MA.byteLength!==0||(MA=new Uint8Array(C.memory.buffer)),MA).subarray(E,E+A))}function y(E){return E==null}let BA=null;function r(){return(BA===null||BA.buffer.detached===!0||BA.buffer.detached===void 0&&BA.buffer!==C.memory.buffer)&&(BA=new DataView(C.memory.buffer)),BA}function yA(E){const A=a(E);return function(I){I<132||(R[I]=JA,JA=I)}(E),A}function D(E,A){if(!(E instanceof A))throw new Error(`expected instance of ${A.name}`)}let c=128;function l(E){if(c==1)throw new Error("out of js stack");return R[--c]=E,c}let NA=null;function BC(E,A){return E>>>=0,(NA!==null&&NA.byteLength!==0||(NA=new Int32Array(C.memory.buffer)),NA).subarray(E/4,E/4+A)}let FA=null;function Fg(){return FA!==null&&FA.byteLength!==0||(FA=new Float32Array(C.memory.buffer)),FA}function ag(E,A){return E>>>=0,Fg().subarray(E/4,E/4+A)}let aA=null;function sg(){return aA!==null&&aA.byteLength!==0||(aA=new Uint32Array(C.memory.buffer)),aA}let Z=0;function sA(E,A){const I=A(4*E.length,4)>>>0;return sg().set(E,I/4),Z=E.length,I}function gA(E,A){const I=A(4*E.length,4)>>>0;return Fg().set(E,I/4),Z=E.length,I}const eA=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"}),X=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"}),O=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"}),YI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(E=>C.__wbg_rawbroadphase_free(E>>>0,1));class z{static __wrap(A){A>>>=0;const I=Object.create(z.prototype);return I.__wbg_ptr=A,YI.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,YI.unregister(this),A}free(){const A=this.__destroy_into_raw();C.__wbg_rawbroadphase_free(A,0)}constructor(){const A=C.rawbroadphase_new();return this.__wbg_ptr=A>>>0,YI.register(this,this.__wbg_ptr,this),this}castRay(A,I,g,B,Q,i,o,G,k,K,h,U){try{D(A,e),D(I,q),D(g,L),D(B,S),D(Q,S);const J=C.rawbroadphase_castRay(this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,i,o,G,y(k)?4294967297:k>>>0,!y(K),y(K)?0:K,!y(h),y(h)?0:h,l(U));return J===0?void 0:yg.__wrap(J)}finally{R[c++]=void 0}}castRayAndGetNormal(A,I,g,B,Q,i,o,G,k,K,h,U){try{D(A,e),D(I,q),D(g,L),D(B,S),D(Q,S);const J=C.rawbroadphase_castRayAndGetNormal(this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,i,o,G,y(k)?4294967297:k>>>0,!y(K),y(K)?0:K,!y(h),y(h)?0:h,l(U));return J===0?void 0:KI.__wrap(J)}finally{R[c++]=void 0}}intersectionsWithRay(A,I,g,B,Q,i,o,G,k,K,h,U,J){try{D(A,e),D(I,q),D(g,L),D(B,S),D(Q,S),C.rawbroadphase_intersectionsWithRay(this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,i,o,l(G),k,y(K)?4294967297:K>>>0,!y(h),y(h)?0:h,!y(U),y(U)?0:U,l(J))}finally{R[c++]=void 0,R[c++]=void 0}}intersectionWithShape(A,I,g,B,Q,i,o,G,k,K,h){try{const s=C.__wbindgen_add_to_stack_pointer(-16);D(A,e),D(I,q),D(g,L),D(B,S),D(Q,F),D(i,M),C.rawbroadphase_intersectionWithShape(s,this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,i.__wbg_ptr,o,y(G)?4294967297:G>>>0,!y(k),y(k)?0:k,!y(K),y(K)?0:K,l(h));var U=r().getInt32(s+0,!0),J=r().getFloat64(s+8,!0);return U===0?void 0:J}finally{C.__wbindgen_add_to_stack_pointer(16),R[c++]=void 0}}projectPoint(A,I,g,B,Q,i,o,G,k,K){try{D(A,e),D(I,q),D(g,L),D(B,S);const h=C.rawbroadphase_projectPoint(this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,B.__wbg_ptr,Q,i,y(o)?4294967297:o>>>0,!y(G),y(G)?0:G,!y(k),y(k)?0:k,l(K));return h===0?void 0:GI.__wrap(h)}finally{R[c++]=void 0}}projectPointAndGetFeature(A,I,g,B,Q,i,o,G,k){try{D(A,e),D(I,q),D(g,L),D(B,S);const K=C.rawbroadphase_projectPointAndGetFeature(this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,B.__wbg_ptr,Q,y(i)?4294967297:i>>>0,!y(o),y(o)?0:o,!y(G),y(G)?0:G,l(k));return K===0?void 0:GI.__wrap(K)}finally{R[c++]=void 0}}intersectionsWithPoint(A,I,g,B,Q,i,o,G,k,K){try{D(A,e),D(I,q),D(g,L),D(B,S),C.rawbroadphase_intersectionsWithPoint(this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,B.__wbg_ptr,l(Q),i,y(o)?4294967297:o>>>0,!y(G),y(G)?0:G,!y(k),y(k)?0:k,l(K))}finally{R[c++]=void 0,R[c++]=void 0}}castShape(A,I,g,B,Q,i,o,G,k,K,h,U,J,s,T){try{D(A,e),D(I,q),D(g,L),D(B,S),D(Q,F),D(i,S),D(o,M);const j=C.rawbroadphase_castShape(this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,i.__wbg_ptr,o.__wbg_ptr,G,k,K,h,y(U)?4294967297:U>>>0,!y(J),y(J)?0:J,!y(s),y(s)?0:s,l(T));return j===0?void 0:SI.__wrap(j)}finally{R[c++]=void 0}}intersectionsWithShape(A,I,g,B,Q,i,o,G,k,K,h,U){try{D(A,e),D(I,q),D(g,L),D(B,S),D(Q,F),D(i,M),C.rawbroadphase_intersectionsWithShape(this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,i.__wbg_ptr,l(o),G,y(k)?4294967297:k>>>0,!y(K),y(K)?0:K,!y(h),y(h)?0:h,l(U))}finally{R[c++]=void 0,R[c++]=void 0}}collidersWithAabbIntersectingAabb(A,I,g,B,Q,i){try{D(A,e),D(I,q),D(g,L),D(B,S),D(Q,S),C.rawbroadphase_collidersWithAabbIntersectingAabb(this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,l(i))}finally{R[c++]=void 0}}}const Rg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(E=>C.__wbg_rawccdsolver_free(E>>>0,1));class cI{__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,Rg.unregister(this),A}free(){const A=this.__destroy_into_raw();C.__wbg_rawccdsolver_free(A,0)}constructor(){const A=C.rawccdsolver_new();return this.__wbg_ptr=A>>>0,Rg.register(this,this.__wbg_ptr,this),this}}const Yg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(E=>C.__wbg_rawcharactercollision_free(E>>>0,1));class cg{__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,Yg.unregister(this),A}free(){const A=this.__destroy_into_raw();C.__wbg_rawcharactercollision_free(A,0)}constructor(){const A=C.rawcharactercollision_new();return this.__wbg_ptr=A>>>0,Yg.register(this,this.__wbg_ptr,this),this}handle(){return C.rawcharactercollision_handle(this.__wbg_ptr)}translationDeltaApplied(){const A=C.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);return S.__wrap(A)}translationDeltaRemaining(){const A=C.rawcharactercollision_translationDeltaRemaining(this.__wbg_ptr);return S.__wrap(A)}toi(){return C.rawcharactercollision_toi(this.__wbg_ptr)}worldWitness1(){const A=C.rawcharactercollision_worldWitness1(this.__wbg_ptr);return S.__wrap(A)}worldWitness2(){const A=C.rawcharactercollision_worldWitness2(this.__wbg_ptr);return S.__wrap(A)}worldNormal1(){const A=C.rawcharactercollision_worldNormal1(this.__wbg_ptr);return S.__wrap(A)}worldNormal2(){const A=C.rawcharactercollision_worldNormal2(this.__wbg_ptr);return S.__wrap(A)}}const qI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(E=>C.__wbg_rawcolliderset_free(E>>>0,1));class L{static __wrap(A){A>>>=0;const I=Object.create(L.prototype);return I.__wbg_ptr=A,qI.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,qI.unregister(this),A}free(){const A=this.__destroy_into_raw();C.__wbg_rawcolliderset_free(A,0)}coTranslation(A){const I=C.rawcolliderset_coTranslation(this.__wbg_ptr,A);return S.__wrap(I)}coRotation(A){const I=C.rawcolliderset_coRotation(this.__wbg_ptr,A);return F.__wrap(I)}coTranslationWrtParent(A){const I=C.rawcolliderset_coTranslationWrtParent(this.__wbg_ptr,A);return I===0?void 0:S.__wrap(I)}coRotationWrtParent(A){const I=C.rawcolliderset_coRotationWrtParent(this.__wbg_ptr,A);return I===0?void 0:F.__wrap(I)}coSetTranslation(A,I,g,B){C.rawcolliderset_coSetTranslation(this.__wbg_ptr,A,I,g,B)}coSetTranslationWrtParent(A,I,g,B){C.rawcolliderset_coSetTranslationWrtParent(this.__wbg_ptr,A,I,g,B)}coSetRotation(A,I,g,B,Q){C.rawcolliderset_coSetRotation(this.__wbg_ptr,A,I,g,B,Q)}coSetRotationWrtParent(A,I,g,B,Q){C.rawcolliderset_coSetRotationWrtParent(this.__wbg_ptr,A,I,g,B,Q)}coIsSensor(A){return C.rawcolliderset_coIsSensor(this.__wbg_ptr,A)!==0}coShapeType(A){return C.rawcolliderset_coShapeType(this.__wbg_ptr,A)}coHalfspaceNormal(A){const I=C.rawcolliderset_coHalfspaceNormal(this.__wbg_ptr,A);return I===0?void 0:S.__wrap(I)}coHalfExtents(A){const I=C.rawcolliderset_coHalfExtents(this.__wbg_ptr,A);return I===0?void 0:S.__wrap(I)}coSetHalfExtents(A,I){D(I,S),C.rawcolliderset_coSetHalfExtents(this.__wbg_ptr,A,I.__wbg_ptr)}coRadius(A){const I=C.rawcolliderset_coRadius(this.__wbg_ptr,A);return I===4294967297?void 0:I}coSetRadius(A,I){C.rawcolliderset_coSetRadius(this.__wbg_ptr,A,I)}coHalfHeight(A){const I=C.rawcolliderset_coHalfHeight(this.__wbg_ptr,A);return I===4294967297?void 0:I}coSetHalfHeight(A,I){C.rawcolliderset_coSetHalfHeight(this.__wbg_ptr,A,I)}coRoundRadius(A){const I=C.rawcolliderset_coRoundRadius(this.__wbg_ptr,A);return I===4294967297?void 0:I}coSetRoundRadius(A,I){C.rawcolliderset_coSetRoundRadius(this.__wbg_ptr,A,I)}coVoxelData(A){try{const B=C.__wbindgen_add_to_stack_pointer(-16);C.rawcolliderset_coVoxelData(B,this.__wbg_ptr,A);var I=r().getInt32(B+0,!0),g=r().getInt32(B+4,!0);let Q;return I!==0&&(Q=BC(I,g).slice(),C.__wbindgen_export_1(I,4*g,4)),Q}finally{C.__wbindgen_add_to_stack_pointer(16)}}coVoxelSize(A){const I=C.rawcolliderset_coVoxelSize(this.__wbg_ptr,A);return I===0?void 0:S.__wrap(I)}coSetVoxel(A,I,g,B,Q){C.rawcolliderset_coSetVoxel(this.__wbg_ptr,A,I,g,B,Q)}coPropagateVoxelChange(A,I,g,B,Q,i,o,G){C.rawcolliderset_coPropagateVoxelChange(this.__wbg_ptr,A,I,g,B,Q,i,o,G)}coCombineVoxelStates(A,I,g,B,Q){C.rawcolliderset_coCombineVoxelStates(this.__wbg_ptr,A,I,g,B,Q)}coVertices(A){try{const B=C.__wbindgen_add_to_stack_pointer(-16);C.rawcolliderset_coVertices(B,this.__wbg_ptr,A);var I=r().getInt32(B+0,!0),g=r().getInt32(B+4,!0);let Q;return I!==0&&(Q=ag(I,g).slice(),C.__wbindgen_export_1(I,4*g,4)),Q}finally{C.__wbindgen_add_to_stack_pointer(16)}}coIndices(A){try{const B=C.__wbindgen_add_to_stack_pointer(-16);C.rawcolliderset_coIndices(B,this.__wbg_ptr,A);var I=r().getInt32(B+0,!0),g=r().getInt32(B+4,!0);let Q;return I!==0&&(Q=function(i,o){return i>>>=0,sg().subarray(i/4,i/4+o)}(I,g).slice(),C.__wbindgen_export_1(I,4*g,4)),Q}finally{C.__wbindgen_add_to_stack_pointer(16)}}coTriMeshFlags(A){const I=C.rawcolliderset_coTriMeshFlags(this.__wbg_ptr,A);return I===4294967297?void 0:I}coHeightFieldFlags(A){const I=C.rawcolliderset_coHeightFieldFlags(this.__wbg_ptr,A);return I===4294967297?void 0:I}coHeightfieldHeights(A){try{const B=C.__wbindgen_add_to_stack_pointer(-16);C.rawcolliderset_coHeightfieldHeights(B,this.__wbg_ptr,A);var I=r().getInt32(B+0,!0),g=r().getInt32(B+4,!0);let Q;return I!==0&&(Q=ag(I,g).slice(),C.__wbindgen_export_1(I,4*g,4)),Q}finally{C.__wbindgen_add_to_stack_pointer(16)}}coHeightfieldScale(A){const I=C.rawcolliderset_coHeightfieldScale(this.__wbg_ptr,A);return I===0?void 0:S.__wrap(I)}coHeightfieldNRows(A){const I=C.rawcolliderset_coHeightfieldNRows(this.__wbg_ptr,A);return I===4294967297?void 0:I}coHeightfieldNCols(A){const I=C.rawcolliderset_coHeightfieldNCols(this.__wbg_ptr,A);return I===4294967297?void 0:I}coParent(A){try{const B=C.__wbindgen_add_to_stack_pointer(-16);C.rawcolliderset_coParent(B,this.__wbg_ptr,A);var I=r().getInt32(B+0,!0),g=r().getFloat64(B+8,!0);return I===0?void 0:g}finally{C.__wbindgen_add_to_stack_pointer(16)}}coSetEnabled(A,I){C.rawcolliderset_coSetEnabled(this.__wbg_ptr,A,I)}coIsEnabled(A){return C.rawcolliderset_coIsEnabled(this.__wbg_ptr,A)!==0}coSetContactSkin(A,I){C.rawcolliderset_coSetContactSkin(this.__wbg_ptr,A,I)}coContactSkin(A){return C.rawcolliderset_coContactSkin(this.__wbg_ptr,A)}coFriction(A){return C.rawcolliderset_coFriction(this.__wbg_ptr,A)}coRestitution(A){return C.rawcolliderset_coRestitution(this.__wbg_ptr,A)}coDensity(A){return C.rawcolliderset_coDensity(this.__wbg_ptr,A)}coMass(A){return C.rawcolliderset_coMass(this.__wbg_ptr,A)}coVolume(A){return C.rawcolliderset_coVolume(this.__wbg_ptr,A)}coCollisionGroups(A){return C.rawcolliderset_coCollisionGroups(this.__wbg_ptr,A)>>>0}coSolverGroups(A){return C.rawcolliderset_coSolverGroups(this.__wbg_ptr,A)>>>0}coActiveHooks(A){return C.rawcolliderset_coActiveHooks(this.__wbg_ptr,A)>>>0}coActiveCollisionTypes(A){return C.rawcolliderset_coActiveCollisionTypes(this.__wbg_ptr,A)}coActiveEvents(A){return C.rawcolliderset_coActiveEvents(this.__wbg_ptr,A)>>>0}coContactForceEventThreshold(A){return C.rawcolliderset_coContactForceEventThreshold(this.__wbg_ptr,A)}coContainsPoint(A,I){return D(I,S),C.rawcolliderset_coContainsPoint(this.__wbg_ptr,A,I.__wbg_ptr)!==0}coCastShape(A,I,g,B,Q,i,o,G,k){D(I,S),D(g,M),D(B,S),D(Q,F),D(i,S);const K=C.rawcolliderset_coCastShape(this.__wbg_ptr,A,I.__wbg_ptr,g.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,i.__wbg_ptr,o,G,k);return K===0?void 0:JI.__wrap(K)}coCastCollider(A,I,g,B,Q,i,o){D(I,S),D(B,S);const G=C.rawcolliderset_coCastCollider(this.__wbg_ptr,A,I.__wbg_ptr,g,B.__wbg_ptr,Q,i,o);return G===0?void 0:SI.__wrap(G)}coIntersectsShape(A,I,g,B){return D(I,M),D(g,S),D(B,F),C.rawcolliderset_coIntersectsShape(this.__wbg_ptr,A,I.__wbg_ptr,g.__wbg_ptr,B.__wbg_ptr)!==0}coContactShape(A,I,g,B,Q){D(I,M),D(g,S),D(B,F);const i=C.rawcolliderset_coContactShape(this.__wbg_ptr,A,I.__wbg_ptr,g.__wbg_ptr,B.__wbg_ptr,Q);return i===0?void 0:LA.__wrap(i)}coContactCollider(A,I,g){const B=C.rawcolliderset_coContactCollider(this.__wbg_ptr,A,I,g);return B===0?void 0:LA.__wrap(B)}coProjectPoint(A,I,g){D(I,S);const B=C.rawcolliderset_coProjectPoint(this.__wbg_ptr,A,I.__wbg_ptr,g);return kI.__wrap(B)}coIntersectsRay(A,I,g,B){return D(I,S),D(g,S),C.rawcolliderset_coIntersectsRay(this.__wbg_ptr,A,I.__wbg_ptr,g.__wbg_ptr,B)!==0}coCastRay(A,I,g,B,Q){return D(I,S),D(g,S),C.rawcolliderset_coCastRay(this.__wbg_ptr,A,I.__wbg_ptr,g.__wbg_ptr,B,Q)}coCastRayAndGetNormal(A,I,g,B,Q){D(I,S),D(g,S);const i=C.rawcolliderset_coCastRayAndGetNormal(this.__wbg_ptr,A,I.__wbg_ptr,g.__wbg_ptr,B,Q);return i===0?void 0:hI.__wrap(i)}coSetSensor(A,I){C.rawcolliderset_coSetSensor(this.__wbg_ptr,A,I)}coSetRestitution(A,I){C.rawcolliderset_coSetRestitution(this.__wbg_ptr,A,I)}coSetFriction(A,I){C.rawcolliderset_coSetFriction(this.__wbg_ptr,A,I)}coFrictionCombineRule(A){return C.rawcolliderset_coFrictionCombineRule(this.__wbg_ptr,A)>>>0}coSetFrictionCombineRule(A,I){C.rawcolliderset_coSetFrictionCombineRule(this.__wbg_ptr,A,I)}coRestitutionCombineRule(A){return C.rawcolliderset_coRestitutionCombineRule(this.__wbg_ptr,A)>>>0}coSetRestitutionCombineRule(A,I){C.rawcolliderset_coSetRestitutionCombineRule(this.__wbg_ptr,A,I)}coSetCollisionGroups(A,I){C.rawcolliderset_coSetCollisionGroups(this.__wbg_ptr,A,I)}coSetSolverGroups(A,I){C.rawcolliderset_coSetSolverGroups(this.__wbg_ptr,A,I)}coSetActiveHooks(A,I){C.rawcolliderset_coSetActiveHooks(this.__wbg_ptr,A,I)}coSetActiveEvents(A,I){C.rawcolliderset_coSetActiveEvents(this.__wbg_ptr,A,I)}coSetActiveCollisionTypes(A,I){C.rawcolliderset_coSetActiveCollisionTypes(this.__wbg_ptr,A,I)}coSetShape(A,I){D(I,M),C.rawcolliderset_coSetShape(this.__wbg_ptr,A,I.__wbg_ptr)}coSetContactForceEventThreshold(A,I){C.rawcolliderset_coSetContactForceEventThreshold(this.__wbg_ptr,A,I)}coSetDensity(A,I){C.rawcolliderset_coSetDensity(this.__wbg_ptr,A,I)}coSetMass(A,I){C.rawcolliderset_coSetMass(this.__wbg_ptr,A,I)}coSetMassProperties(A,I,g,B,Q){D(g,S),D(B,S),D(Q,F),C.rawcolliderset_coSetMassProperties(this.__wbg_ptr,A,I,g.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr)}constructor(){const A=C.rawcolliderset_new();return this.__wbg_ptr=A>>>0,qI.register(this,this.__wbg_ptr,this),this}len(){return C.rawcolliderset_len(this.__wbg_ptr)>>>0}contains(A){return C.rawcolliderset_contains(this.__wbg_ptr,A)!==0}createCollider(A,I,g,B,Q,i,o,G,k,K,h,U,J,s,T,j,f,m,IA,UA,MI,yI,NI,FI,pA){try{const sI=C.__wbindgen_add_to_stack_pointer(-16);D(I,M),D(g,S),D(B,F),D(o,S),D(G,S),D(k,F),D(pA,q),C.rawcolliderset_createCollider(sI,this.__wbg_ptr,A,I.__wbg_ptr,g.__wbg_ptr,B.__wbg_ptr,Q,i,o.__wbg_ptr,G.__wbg_ptr,k.__wbg_ptr,K,h,U,J,s,T,j,f,m,IA,UA,MI,yI,NI,FI,pA.__wbg_ptr);var aI=r().getInt32(sI+0,!0),CC=r().getFloat64(sI+8,!0);return aI===0?void 0:CC}finally{C.__wbindgen_add_to_stack_pointer(16)}}remove(A,I,g,B){D(I,v),D(g,q),C.rawcolliderset_remove(this.__wbg_ptr,A,I.__wbg_ptr,g.__wbg_ptr,B)}isHandleValid(A){return C.rawcolliderset_contains(this.__wbg_ptr,A)!==0}forEachColliderHandle(A){try{C.rawcolliderset_forEachColliderHandle(this.__wbg_ptr,l(A))}finally{R[c++]=void 0}}}const qg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(E=>C.__wbg_rawcollidershapecasthit_free(E>>>0,1));class SI{static __wrap(A){A>>>=0;const I=Object.create(SI.prototype);return I.__wbg_ptr=A,qg.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,qg.unregister(this),A}free(){const A=this.__destroy_into_raw();C.__wbg_rawcollidershapecasthit_free(A,0)}colliderHandle(){return C.rawcharactercollision_handle(this.__wbg_ptr)}time_of_impact(){return C.rawcollidershapecasthit_time_of_impact(this.__wbg_ptr)}witness1(){const A=C.rawcollidershapecasthit_witness1(this.__wbg_ptr);return S.__wrap(A)}witness2(){const A=C.rawcollidershapecasthit_witness2(this.__wbg_ptr);return S.__wrap(A)}normal1(){const A=C.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);return S.__wrap(A)}normal2(){const A=C.rawcharactercollision_translationDeltaRemaining(this.__wbg_ptr);return S.__wrap(A)}}const lg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(E=>C.__wbg_rawcontactforceevent_free(E>>>0,1));class hg{static __wrap(A){A>>>=0;const I=Object.create(hg.prototype);return I.__wbg_ptr=A,lg.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,lg.unregister(this),A}free(){const A=this.__destroy_into_raw();C.__wbg_rawcontactforceevent_free(A,0)}collider1(){return C.rawcharactercollision_handle(this.__wbg_ptr)}collider2(){return C.rawcontactforceevent_collider2(this.__wbg_ptr)}total_force(){const A=C.rawcontactforceevent_total_force(this.__wbg_ptr);return S.__wrap(A)}total_force_magnitude(){return C.rawcontactforceevent_total_force_magnitude(this.__wbg_ptr)}max_force_direction(){const A=C.rawcontactforceevent_max_force_direction(this.__wbg_ptr);return S.__wrap(A)}max_force_magnitude(){return C.rawcontactforceevent_max_force_magnitude(this.__wbg_ptr)}}const Lg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(E=>C.__wbg_rawcontactmanifold_free(E>>>0,1));class Ug{static __wrap(A){A>>>=0;const I=Object.create(Ug.prototype);return I.__wbg_ptr=A,Lg.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,Lg.unregister(this),A}free(){const A=this.__destroy_into_raw();C.__wbg_rawcontactmanifold_free(A,0)}normal(){const A=C.rawcontactmanifold_normal(this.__wbg_ptr);return S.__wrap(A)}local_n1(){const A=C.rawcontactmanifold_local_n1(this.__wbg_ptr);return S.__wrap(A)}local_n2(){const A=C.rawcontactmanifold_local_n2(this.__wbg_ptr);return S.__wrap(A)}subshape1(){return C.rawcontactmanifold_subshape1(this.__wbg_ptr)>>>0}subshape2(){return C.rawcontactmanifold_subshape2(this.__wbg_ptr)>>>0}num_contacts(){return C.rawcontactmanifold_num_contacts(this.__wbg_ptr)>>>0}contact_local_p1(A){const I=C.rawcontactmanifold_contact_local_p1(this.__wbg_ptr,A);return I===0?void 0:S.__wrap(I)}contact_local_p2(A){const I=C.rawcontactmanifold_contact_local_p2(this.__wbg_ptr,A);return I===0?void 0:S.__wrap(I)}contact_dist(A){return C.rawcontactmanifold_contact_dist(this.__wbg_ptr,A)}contact_fid1(A){return C.rawcontactmanifold_contact_fid1(this.__wbg_ptr,A)>>>0}contact_fid2(A){return C.rawcontactmanifold_contact_fid2(this.__wbg_ptr,A)>>>0}contact_impulse(A){return C.rawcontactmanifold_contact_impulse(this.__wbg_ptr,A)}contact_tangent_impulse_x(A){return C.rawcontactmanifold_contact_tangent_impulse_x(this.__wbg_ptr,A)}contact_tangent_impulse_y(A){return C.rawcontactmanifold_contact_tangent_impulse_y(this.__wbg_ptr,A)}num_solver_contacts(){return C.rawcontactmanifold_num_solver_contacts(this.__wbg_ptr)>>>0}solver_contact_point(A){const I=C.rawcontactmanifold_solver_contact_point(this.__wbg_ptr,A);return I===0?void 0:S.__wrap(I)}solver_contact_dist(A){return C.rawcontactmanifold_solver_contact_dist(this.__wbg_ptr,A)}solver_contact_friction(A){return C.rawcontactmanifold_solver_contact_friction(this.__wbg_ptr,A)}solver_contact_restitution(A){return C.rawcontactmanifold_solver_contact_restitution(this.__wbg_ptr,A)}solver_contact_tangent_velocity(A){const I=C.rawcontactmanifold_solver_contact_tangent_velocity(this.__wbg_ptr,A);return S.__wrap(I)}}const Hg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(E=>C.__wbg_rawcontactpair_free(E>>>0,1));class Jg{static __wrap(A){A>>>=0;const I=Object.create(Jg.prototype);return I.__wbg_ptr=A,Hg.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,Hg.unregister(this),A}free(){const A=this.__destroy_into_raw();C.__wbg_rawcontactpair_free(A,0)}collider1(){return C.rawcontactpair_collider1(this.__wbg_ptr)}collider2(){return C.rawcontactpair_collider2(this.__wbg_ptr)}numContactManifolds(){return C.rawcontactpair_numContactManifolds(this.__wbg_ptr)>>>0}contactManifold(A){const I=C.rawcontactpair_contactManifold(this.__wbg_ptr,A);return I===0?void 0:Ug.__wrap(I)}}const tg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(E=>C.__wbg_rawdebugrenderpipeline_free(E>>>0,1));class QC{__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,tg.unregister(this),A}free(){const A=this.__destroy_into_raw();C.__wbg_rawdebugrenderpipeline_free(A,0)}constructor(){const A=C.rawdebugrenderpipeline_new();return this.__wbg_ptr=A>>>0,tg.register(this,this.__wbg_ptr,this),this}vertices(){return yA(C.rawdebugrenderpipeline_vertices(this.__wbg_ptr))}colors(){return yA(C.rawdebugrenderpipeline_colors(this.__wbg_ptr))}render(A,I,g,B,Q,i,o){try{D(A,q),D(I,L),D(g,_),D(B,$),D(Q,e),C.rawdebugrenderpipeline_render(this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,i,l(o))}finally{R[c++]=void 0}}}const pg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(E=>C.__wbg_rawdeserializedworld_free(E>>>0,1));class Mg{static __wrap(A){A>>>=0;const I=Object.create(Mg.prototype);return I.__wbg_ptr=A,pg.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,pg.unregister(this),A}free(){const A=this.__destroy_into_raw();C.__wbg_rawdeserializedworld_free(A,0)}takeGravity(){const A=C.rawdeserializedworld_takeGravity(this.__wbg_ptr);return A===0?void 0:S.__wrap(A)}takeIntegrationParameters(){const A=C.rawdeserializedworld_takeIntegrationParameters(this.__wbg_ptr);return A===0?void 0:EA.__wrap(A)}takeIslandManager(){const A=C.rawdeserializedworld_takeIslandManager(this.__wbg_ptr);return A===0?void 0:v.__wrap(A)}takeBroadPhase(){const A=C.rawdeserializedworld_takeBroadPhase(this.__wbg_ptr);return A===0?void 0:z.__wrap(A)}takeNarrowPhase(){const A=C.rawdeserializedworld_takeNarrowPhase(this.__wbg_ptr);return A===0?void 0:e.__wrap(A)}takeBodies(){const A=C.rawdeserializedworld_takeBodies(this.__wbg_ptr);return A===0?void 0:q.__wrap(A)}takeColliders(){const A=C.rawdeserializedworld_takeColliders(this.__wbg_ptr);return A===0?void 0:L.__wrap(A)}takeImpulseJoints(){const A=C.rawdeserializedworld_takeImpulseJoints(this.__wbg_ptr);return A===0?void 0:_.__wrap(A)}takeMultibodyJoints(){const A=C.rawdeserializedworld_takeMultibodyJoints(this.__wbg_ptr);return A===0?void 0:$.__wrap(A)}}const rg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(E=>C.__wbg_rawdynamicraycastvehiclecontroller_free(E>>>0,1));class EC{__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,rg.unregister(this),A}free(){const A=this.__destroy_into_raw();C.__wbg_rawdynamicraycastvehiclecontroller_free(A,0)}constructor(A){const I=C.rawdynamicraycastvehiclecontroller_new(A);return this.__wbg_ptr=I>>>0,rg.register(this,this.__wbg_ptr,this),this}current_vehicle_speed(){return C.rawdynamicraycastvehiclecontroller_current_vehicle_speed(this.__wbg_ptr)}chassis(){return C.rawdynamicraycastvehiclecontroller_chassis(this.__wbg_ptr)}index_up_axis(){return C.rawdynamicraycastvehiclecontroller_index_up_axis(this.__wbg_ptr)>>>0}set_index_up_axis(A){C.rawdynamicraycastvehiclecontroller_set_index_up_axis(this.__wbg_ptr,A)}index_forward_axis(){return C.rawdynamicraycastvehiclecontroller_index_forward_axis(this.__wbg_ptr)>>>0}set_index_forward_axis(A){C.rawdynamicraycastvehiclecontroller_set_index_forward_axis(this.__wbg_ptr,A)}add_wheel(A,I,g,B,Q){D(A,S),D(I,S),D(g,S),C.rawdynamicraycastvehiclecontroller_add_wheel(this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,B,Q)}num_wheels(){return C.rawdynamicraycastvehiclecontroller_num_wheels(this.__wbg_ptr)>>>0}update_vehicle(A,I,g,B,Q,i,o,G){try{D(I,z),D(g,e),D(B,q),D(Q,L),C.rawdynamicraycastvehiclecontroller_update_vehicle(this.__wbg_ptr,A,I.__wbg_ptr,g.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,i,y(o)?4294967297:o>>>0,l(G))}finally{R[c++]=void 0}}wheel_chassis_connection_point_cs(A){const I=C.rawdynamicraycastvehiclecontroller_wheel_chassis_connection_point_cs(this.__wbg_ptr,A);return I===0?void 0:S.__wrap(I)}set_wheel_chassis_connection_point_cs(A,I){D(I,S),C.rawdynamicraycastvehiclecontroller_set_wheel_chassis_connection_point_cs(this.__wbg_ptr,A,I.__wbg_ptr)}wheel_suspension_rest_length(A){const I=C.rawdynamicraycastvehiclecontroller_wheel_suspension_rest_length(this.__wbg_ptr,A);return I===4294967297?void 0:I}set_wheel_suspension_rest_length(A,I){C.rawdynamicraycastvehiclecontroller_set_wheel_suspension_rest_length(this.__wbg_ptr,A,I)}wheel_max_suspension_travel(A){const I=C.rawdynamicraycastvehiclecontroller_wheel_max_suspension_travel(this.__wbg_ptr,A);return I===4294967297?void 0:I}set_wheel_max_suspension_travel(A,I){C.rawdynamicraycastvehiclecontroller_set_wheel_max_suspension_travel(this.__wbg_ptr,A,I)}wheel_radius(A){const I=C.rawdynamicraycastvehiclecontroller_wheel_radius(this.__wbg_ptr,A);return I===4294967297?void 0:I}set_wheel_radius(A,I){C.rawdynamicraycastvehiclecontroller_set_wheel_radius(this.__wbg_ptr,A,I)}wheel_suspension_stiffness(A){const I=C.rawdynamicraycastvehiclecontroller_wheel_suspension_stiffness(this.__wbg_ptr,A);return I===4294967297?void 0:I}set_wheel_suspension_stiffness(A,I){C.rawdynamicraycastvehiclecontroller_set_wheel_suspension_stiffness(this.__wbg_ptr,A,I)}wheel_suspension_compression(A){const I=C.rawdynamicraycastvehiclecontroller_wheel_suspension_compression(this.__wbg_ptr,A);return I===4294967297?void 0:I}set_wheel_suspension_compression(A,I){C.rawdynamicraycastvehiclecontroller_set_wheel_suspension_compression(this.__wbg_ptr,A,I)}wheel_suspension_relaxation(A){const I=C.rawdynamicraycastvehiclecontroller_wheel_suspension_relaxation(this.__wbg_ptr,A);return I===4294967297?void 0:I}set_wheel_suspension_relaxation(A,I){C.rawdynamicraycastvehiclecontroller_set_wheel_suspension_relaxation(this.__wbg_ptr,A,I)}wheel_max_suspension_force(A){const I=C.rawdynamicraycastvehiclecontroller_wheel_max_suspension_force(this.__wbg_ptr,A);return I===4294967297?void 0:I}set_wheel_max_suspension_force(A,I){C.rawdynamicraycastvehiclecontroller_set_wheel_max_suspension_force(this.__wbg_ptr,A,I)}wheel_brake(A){const I=C.rawdynamicraycastvehiclecontroller_wheel_brake(this.__wbg_ptr,A);return I===4294967297?void 0:I}set_wheel_brake(A,I){C.rawdynamicraycastvehiclecontroller_set_wheel_brake(this.__wbg_ptr,A,I)}wheel_steering(A){const I=C.rawdynamicraycastvehiclecontroller_wheel_steering(this.__wbg_ptr,A);return I===4294967297?void 0:I}set_wheel_steering(A,I){C.rawdynamicraycastvehiclecontroller_set_wheel_steering(this.__wbg_ptr,A,I)}wheel_engine_force(A){const I=C.rawdynamicraycastvehiclecontroller_wheel_engine_force(this.__wbg_ptr,A);return I===4294967297?void 0:I}set_wheel_engine_force(A,I){C.rawdynamicraycastvehiclecontroller_set_wheel_engine_force(this.__wbg_ptr,A,I)}wheel_direction_cs(A){const I=C.rawdynamicraycastvehiclecontroller_wheel_direction_cs(this.__wbg_ptr,A);return I===0?void 0:S.__wrap(I)}set_wheel_direction_cs(A,I){D(I,S),C.rawdynamicraycastvehiclecontroller_set_wheel_direction_cs(this.__wbg_ptr,A,I.__wbg_ptr)}wheel_axle_cs(A){const I=C.rawdynamicraycastvehiclecontroller_wheel_axle_cs(this.__wbg_ptr,A);return I===0?void 0:S.__wrap(I)}set_wheel_axle_cs(A,I){D(I,S),C.rawdynamicraycastvehiclecontroller_set_wheel_axle_cs(this.__wbg_ptr,A,I.__wbg_ptr)}wheel_friction_slip(A){const I=C.rawdynamicraycastvehiclecontroller_wheel_friction_slip(this.__wbg_ptr,A);return I===4294967297?void 0:I}set_wheel_friction_slip(A,I){C.rawdynamicraycastvehiclecontroller_set_wheel_friction_slip(this.__wbg_ptr,A,I)}wheel_side_friction_stiffness(A){const I=C.rawdynamicraycastvehiclecontroller_wheel_side_friction_stiffness(this.__wbg_ptr,A);return I===4294967297?void 0:I}set_wheel_side_friction_stiffness(A,I){C.rawdynamicraycastvehiclecontroller_set_wheel_side_friction_stiffness(this.__wbg_ptr,A,I)}wheel_rotation(A){const I=C.rawdynamicraycastvehiclecontroller_wheel_rotation(this.__wbg_ptr,A);return I===4294967297?void 0:I}wheel_forward_impulse(A){const I=C.rawdynamicraycastvehiclecontroller_wheel_forward_impulse(this.__wbg_ptr,A);return I===4294967297?void 0:I}wheel_side_impulse(A){const I=C.rawdynamicraycastvehiclecontroller_wheel_side_impulse(this.__wbg_ptr,A);return I===4294967297?void 0:I}wheel_suspension_force(A){const I=C.rawdynamicraycastvehiclecontroller_wheel_suspension_force(this.__wbg_ptr,A);return I===4294967297?void 0:I}wheel_contact_normal_ws(A){const I=C.rawdynamicraycastvehiclecontroller_wheel_contact_normal_ws(this.__wbg_ptr,A);return I===0?void 0:S.__wrap(I)}wheel_contact_point_ws(A){const I=C.rawdynamicraycastvehiclecontroller_wheel_contact_point_ws(this.__wbg_ptr,A);return I===0?void 0:S.__wrap(I)}wheel_suspension_length(A){const I=C.rawdynamicraycastvehiclecontroller_wheel_suspension_length(this.__wbg_ptr,A);return I===4294967297?void 0:I}wheel_hard_point_ws(A){const I=C.rawdynamicraycastvehiclecontroller_wheel_hard_point_ws(this.__wbg_ptr,A);return I===0?void 0:S.__wrap(I)}wheel_is_in_contact(A){return C.rawdynamicraycastvehiclecontroller_wheel_is_in_contact(this.__wbg_ptr,A)!==0}wheel_ground_object(A){try{const B=C.__wbindgen_add_to_stack_pointer(-16);C.rawdynamicraycastvehiclecontroller_wheel_ground_object(B,this.__wbg_ptr,A);var I=r().getInt32(B+0,!0),g=r().getFloat64(B+8,!0);return I===0?void 0:g}finally{C.__wbindgen_add_to_stack_pointer(16)}}}const eg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(E=>C.__wbg_raweventqueue_free(E>>>0,1));class Tg{__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,eg.unregister(this),A}free(){const A=this.__destroy_into_raw();C.__wbg_raweventqueue_free(A,0)}constructor(A){const I=C.raweventqueue_new(A);return this.__wbg_ptr=I>>>0,eg.register(this,this.__wbg_ptr,this),this}drainCollisionEvents(A){try{C.raweventqueue_drainCollisionEvents(this.__wbg_ptr,l(A))}finally{R[c++]=void 0}}drainContactForceEvents(A){try{C.raweventqueue_drainContactForceEvents(this.__wbg_ptr,l(A))}finally{R[c++]=void 0}}clear(){C.raweventqueue_clear(this.__wbg_ptr)}}const Og=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(E=>C.__wbg_rawgenericjoint_free(E>>>0,1));class d{static __wrap(A){A>>>=0;const I=Object.create(d.prototype);return I.__wbg_ptr=A,Og.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,Og.unregister(this),A}free(){const A=this.__destroy_into_raw();C.__wbg_rawgenericjoint_free(A,0)}static generic(A,I,g,B){D(A,S),D(I,S),D(g,S);const Q=C.rawgenericjoint_generic(A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,B);return Q===0?void 0:d.__wrap(Q)}static spring(A,I,g,B,Q){D(B,S),D(Q,S);const i=C.rawgenericjoint_spring(A,I,g,B.__wbg_ptr,Q.__wbg_ptr);return d.__wrap(i)}static rope(A,I,g){D(I,S),D(g,S);const B=C.rawgenericjoint_rope(A,I.__wbg_ptr,g.__wbg_ptr);return d.__wrap(B)}static spherical(A,I){D(A,S),D(I,S);const g=C.rawgenericjoint_spherical(A.__wbg_ptr,I.__wbg_ptr);return d.__wrap(g)}static prismatic(A,I,g,B,Q,i){D(A,S),D(I,S),D(g,S);const o=C.rawgenericjoint_prismatic(A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,B,Q,i);return o===0?void 0:d.__wrap(o)}static fixed(A,I,g,B){D(A,S),D(I,F),D(g,S),D(B,F);const Q=C.rawgenericjoint_fixed(A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,B.__wbg_ptr);return d.__wrap(Q)}static revolute(A,I,g){D(A,S),D(I,S),D(g,S);const B=C.rawgenericjoint_revolute(A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr);return B===0?void 0:d.__wrap(B)}}const lI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(E=>C.__wbg_rawimpulsejointset_free(E>>>0,1));class _{static __wrap(A){A>>>=0;const I=Object.create(_.prototype);return I.__wbg_ptr=A,lI.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,lI.unregister(this),A}free(){const A=this.__destroy_into_raw();C.__wbg_rawimpulsejointset_free(A,0)}jointType(A){return C.rawimpulsejointset_jointType(this.__wbg_ptr,A)}jointBodyHandle1(A){return C.rawimpulsejointset_jointBodyHandle1(this.__wbg_ptr,A)}jointBodyHandle2(A){return C.rawimpulsejointset_jointBodyHandle2(this.__wbg_ptr,A)}jointFrameX1(A){const I=C.rawimpulsejointset_jointFrameX1(this.__wbg_ptr,A);return F.__wrap(I)}jointFrameX2(A){const I=C.rawimpulsejointset_jointFrameX2(this.__wbg_ptr,A);return F.__wrap(I)}jointAnchor1(A){const I=C.rawimpulsejointset_jointAnchor1(this.__wbg_ptr,A);return S.__wrap(I)}jointAnchor2(A){const I=C.rawimpulsejointset_jointAnchor2(this.__wbg_ptr,A);return S.__wrap(I)}jointSetAnchor1(A,I){D(I,S),C.rawimpulsejointset_jointSetAnchor1(this.__wbg_ptr,A,I.__wbg_ptr)}jointSetAnchor2(A,I){D(I,S),C.rawimpulsejointset_jointSetAnchor2(this.__wbg_ptr,A,I.__wbg_ptr)}jointContactsEnabled(A){return C.rawimpulsejointset_jointContactsEnabled(this.__wbg_ptr,A)!==0}jointSetContactsEnabled(A,I){C.rawimpulsejointset_jointSetContactsEnabled(this.__wbg_ptr,A,I)}jointLimitsEnabled(A,I){return C.rawimpulsejointset_jointLimitsEnabled(this.__wbg_ptr,A,I)!==0}jointLimitsMin(A,I){return C.rawimpulsejointset_jointLimitsMin(this.__wbg_ptr,A,I)}jointLimitsMax(A,I){return C.rawimpulsejointset_jointLimitsMax(this.__wbg_ptr,A,I)}jointSetLimits(A,I,g,B){C.rawimpulsejointset_jointSetLimits(this.__wbg_ptr,A,I,g,B)}jointConfigureMotorModel(A,I,g){C.rawimpulsejointset_jointConfigureMotorModel(this.__wbg_ptr,A,I,g)}jointConfigureMotorVelocity(A,I,g,B){C.rawimpulsejointset_jointConfigureMotorVelocity(this.__wbg_ptr,A,I,g,B)}jointConfigureMotorPosition(A,I,g,B,Q){C.rawimpulsejointset_jointConfigureMotorPosition(this.__wbg_ptr,A,I,g,B,Q)}jointConfigureMotor(A,I,g,B,Q,i){C.rawimpulsejointset_jointConfigureMotor(this.__wbg_ptr,A,I,g,B,Q,i)}constructor(){const A=C.rawimpulsejointset_new();return this.__wbg_ptr=A>>>0,lI.register(this,this.__wbg_ptr,this),this}createJoint(A,I,g,B){return D(A,d),C.rawimpulsejointset_createJoint(this.__wbg_ptr,A.__wbg_ptr,I,g,B)}remove(A,I){C.rawimpulsejointset_remove(this.__wbg_ptr,A,I)}len(){return C.rawimpulsejointset_len(this.__wbg_ptr)>>>0}contains(A){return C.rawimpulsejointset_contains(this.__wbg_ptr,A)!==0}forEachJointHandle(A){try{C.rawimpulsejointset_forEachJointHandle(this.__wbg_ptr,l(A))}finally{R[c++]=void 0}}forEachJointAttachedToRigidBody(A,I){try{C.rawimpulsejointset_forEachJointAttachedToRigidBody(this.__wbg_ptr,A,l(I))}finally{R[c++]=void 0}}}const LI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(E=>C.__wbg_rawintegrationparameters_free(E>>>0,1));class EA{static __wrap(A){A>>>=0;const I=Object.create(EA.prototype);return I.__wbg_ptr=A,LI.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,LI.unregister(this),A}free(){const A=this.__destroy_into_raw();C.__wbg_rawintegrationparameters_free(A,0)}constructor(){const A=C.rawintegrationparameters_new();return this.__wbg_ptr=A>>>0,LI.register(this,this.__wbg_ptr,this),this}get dt(){return C.rawintegrationparameters_dt(this.__wbg_ptr)}get contact_erp(){return C.rawintegrationparameters_contact_erp(this.__wbg_ptr)}get normalizedAllowedLinearError(){return C.rawintegrationparameters_normalizedAllowedLinearError(this.__wbg_ptr)}get normalizedPredictionDistance(){return C.rawintegrationparameters_normalizedPredictionDistance(this.__wbg_ptr)}get numSolverIterations(){return C.rawintegrationparameters_numSolverIterations(this.__wbg_ptr)>>>0}get numInternalPgsIterations(){return C.rawdynamicraycastvehiclecontroller_index_up_axis(this.__wbg_ptr)>>>0}get minIslandSize(){return C.rawintegrationparameters_minIslandSize(this.__wbg_ptr)>>>0}get maxCcdSubsteps(){return C.rawintegrationparameters_maxCcdSubsteps(this.__wbg_ptr)>>>0}get lengthUnit(){return C.rawcontactforceevent_total_force_magnitude(this.__wbg_ptr)}set dt(A){C.rawintegrationparameters_set_dt(this.__wbg_ptr,A)}set contact_natural_frequency(A){C.rawintegrationparameters_set_contact_natural_frequency(this.__wbg_ptr,A)}set normalizedAllowedLinearError(A){C.rawintegrationparameters_set_normalizedAllowedLinearError(this.__wbg_ptr,A)}set normalizedPredictionDistance(A){C.rawintegrationparameters_set_normalizedPredictionDistance(this.__wbg_ptr,A)}set numSolverIterations(A){C.rawintegrationparameters_set_numSolverIterations(this.__wbg_ptr,A)}set numInternalPgsIterations(A){C.rawdynamicraycastvehiclecontroller_set_index_up_axis(this.__wbg_ptr,A)}set minIslandSize(A){C.rawintegrationparameters_set_minIslandSize(this.__wbg_ptr,A)}set maxCcdSubsteps(A){C.rawintegrationparameters_set_maxCcdSubsteps(this.__wbg_ptr,A)}set lengthUnit(A){C.rawintegrationparameters_set_lengthUnit(this.__wbg_ptr,A)}}const HI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(E=>C.__wbg_rawislandmanager_free(E>>>0,1));class v{static __wrap(A){A>>>=0;const I=Object.create(v.prototype);return I.__wbg_ptr=A,HI.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,HI.unregister(this),A}free(){const A=this.__destroy_into_raw();C.__wbg_rawislandmanager_free(A,0)}constructor(){const A=C.rawislandmanager_new();return this.__wbg_ptr=A>>>0,HI.register(this,this.__wbg_ptr,this),this}forEachActiveRigidBodyHandle(A){try{C.rawislandmanager_forEachActiveRigidBodyHandle(this.__wbg_ptr,l(A))}finally{R[c++]=void 0}}}const ng=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(E=>C.__wbg_rawkinematiccharactercontroller_free(E>>>0,1));class iC{__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,ng.unregister(this),A}free(){const A=this.__destroy_into_raw();C.__wbg_rawkinematiccharactercontroller_free(A,0)}constructor(A){const I=C.rawkinematiccharactercontroller_new(A);return this.__wbg_ptr=I>>>0,ng.register(this,this.__wbg_ptr,this),this}up(){const A=C.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);return S.__wrap(A)}setUp(A){D(A,S),C.rawkinematiccharactercontroller_setUp(this.__wbg_ptr,A.__wbg_ptr)}normalNudgeFactor(){return C.rawkinematiccharactercontroller_normalNudgeFactor(this.__wbg_ptr)}setNormalNudgeFactor(A){C.rawkinematiccharactercontroller_setNormalNudgeFactor(this.__wbg_ptr,A)}offset(){return C.rawkinematiccharactercontroller_offset(this.__wbg_ptr)}setOffset(A){C.rawkinematiccharactercontroller_setOffset(this.__wbg_ptr,A)}slideEnabled(){return C.rawkinematiccharactercontroller_slideEnabled(this.__wbg_ptr)!==0}setSlideEnabled(A){C.rawkinematiccharactercontroller_setSlideEnabled(this.__wbg_ptr,A)}autostepMaxHeight(){const A=C.rawkinematiccharactercontroller_autostepMaxHeight(this.__wbg_ptr);return A===4294967297?void 0:A}autostepMinWidth(){const A=C.rawkinematiccharactercontroller_autostepMinWidth(this.__wbg_ptr);return A===4294967297?void 0:A}autostepIncludesDynamicBodies(){const A=C.rawkinematiccharactercontroller_autostepIncludesDynamicBodies(this.__wbg_ptr);return A===16777215?void 0:A!==0}autostepEnabled(){return C.rawkinematiccharactercontroller_autostepEnabled(this.__wbg_ptr)!==0}enableAutostep(A,I,g){C.rawkinematiccharactercontroller_enableAutostep(this.__wbg_ptr,A,I,g)}disableAutostep(){C.rawkinematiccharactercontroller_disableAutostep(this.__wbg_ptr)}maxSlopeClimbAngle(){return C.rawkinematiccharactercontroller_maxSlopeClimbAngle(this.__wbg_ptr)}setMaxSlopeClimbAngle(A){C.rawkinematiccharactercontroller_setMaxSlopeClimbAngle(this.__wbg_ptr,A)}minSlopeSlideAngle(){return C.rawkinematiccharactercontroller_minSlopeSlideAngle(this.__wbg_ptr)}setMinSlopeSlideAngle(A){C.rawkinematiccharactercontroller_setMinSlopeSlideAngle(this.__wbg_ptr,A)}snapToGroundDistance(){const A=C.rawkinematiccharactercontroller_snapToGroundDistance(this.__wbg_ptr);return A===4294967297?void 0:A}enableSnapToGround(A){C.rawkinematiccharactercontroller_enableSnapToGround(this.__wbg_ptr,A)}disableSnapToGround(){C.rawkinematiccharactercontroller_disableSnapToGround(this.__wbg_ptr)}snapToGroundEnabled(){return C.rawkinematiccharactercontroller_snapToGroundEnabled(this.__wbg_ptr)!==0}computeColliderMovement(A,I,g,B,Q,i,o,G,k,K,h,U){try{D(I,z),D(g,e),D(B,q),D(Q,L),D(o,S),C.rawkinematiccharactercontroller_computeColliderMovement(this.__wbg_ptr,A,I.__wbg_ptr,g.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,i,o.__wbg_ptr,G,y(k)?4294967297:Math.fround(k),K,y(h)?4294967297:h>>>0,l(U))}finally{R[c++]=void 0}}computedMovement(){const A=C.rawkinematiccharactercontroller_computedMovement(this.__wbg_ptr);return S.__wrap(A)}computedGrounded(){return C.rawkinematiccharactercontroller_computedGrounded(this.__wbg_ptr)!==0}numComputedCollisions(){return C.rawkinematiccharactercontroller_numComputedCollisions(this.__wbg_ptr)>>>0}computedCollision(A,I){return D(I,cg),C.rawkinematiccharactercontroller_computedCollision(this.__wbg_ptr,A,I.__wbg_ptr)!==0}}const tI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(E=>C.__wbg_rawmultibodyjointset_free(E>>>0,1));class ${static __wrap(A){A>>>=0;const I=Object.create($.prototype);return I.__wbg_ptr=A,tI.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,tI.unregister(this),A}free(){const A=this.__destroy_into_raw();C.__wbg_rawmultibodyjointset_free(A,0)}jointType(A){return C.rawmultibodyjointset_jointType(this.__wbg_ptr,A)}jointFrameX1(A){const I=C.rawmultibodyjointset_jointFrameX1(this.__wbg_ptr,A);return F.__wrap(I)}jointFrameX2(A){const I=C.rawmultibodyjointset_jointFrameX2(this.__wbg_ptr,A);return F.__wrap(I)}jointAnchor1(A){const I=C.rawmultibodyjointset_jointAnchor1(this.__wbg_ptr,A);return S.__wrap(I)}jointAnchor2(A){const I=C.rawmultibodyjointset_jointAnchor2(this.__wbg_ptr,A);return S.__wrap(I)}jointContactsEnabled(A){return C.rawmultibodyjointset_jointContactsEnabled(this.__wbg_ptr,A)!==0}jointSetContactsEnabled(A,I){C.rawmultibodyjointset_jointSetContactsEnabled(this.__wbg_ptr,A,I)}jointLimitsEnabled(A,I){return C.rawmultibodyjointset_jointLimitsEnabled(this.__wbg_ptr,A,I)!==0}jointLimitsMin(A,I){return C.rawmultibodyjointset_jointLimitsMin(this.__wbg_ptr,A,I)}jointLimitsMax(A,I){return C.rawmultibodyjointset_jointLimitsMax(this.__wbg_ptr,A,I)}constructor(){const A=C.rawmultibodyjointset_new();return this.__wbg_ptr=A>>>0,tI.register(this,this.__wbg_ptr,this),this}createJoint(A,I,g,B){return D(A,d),C.rawmultibodyjointset_createJoint(this.__wbg_ptr,A.__wbg_ptr,I,g,B)}remove(A,I){C.rawmultibodyjointset_remove(this.__wbg_ptr,A,I)}contains(A){return C.rawmultibodyjointset_contains(this.__wbg_ptr,A)!==0}forEachJointHandle(A){try{C.rawmultibodyjointset_forEachJointHandle(this.__wbg_ptr,l(A))}finally{R[c++]=void 0}}forEachJointAttachedToRigidBody(A,I){try{C.rawmultibodyjointset_forEachJointAttachedToRigidBody(this.__wbg_ptr,A,l(I))}finally{R[c++]=void 0}}}const pI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(E=>C.__wbg_rawnarrowphase_free(E>>>0,1));class e{static __wrap(A){A>>>=0;const I=Object.create(e.prototype);return I.__wbg_ptr=A,pI.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,pI.unregister(this),A}free(){const A=this.__destroy_into_raw();C.__wbg_rawnarrowphase_free(A,0)}constructor(){const A=C.rawnarrowphase_new();return this.__wbg_ptr=A>>>0,pI.register(this,this.__wbg_ptr,this),this}contact_pairs_with(A,I){C.rawnarrowphase_contact_pairs_with(this.__wbg_ptr,A,Y(I))}contact_pair(A,I){const g=C.rawnarrowphase_contact_pair(this.__wbg_ptr,A,I);return g===0?void 0:Jg.__wrap(g)}intersection_pairs_with(A,I){C.rawnarrowphase_intersection_pairs_with(this.__wbg_ptr,A,Y(I))}intersection_pair(A,I){return C.rawnarrowphase_intersection_pair(this.__wbg_ptr,A,I)!==0}}const dg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(E=>C.__wbg_rawphysicspipeline_free(E>>>0,1));class DC{__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,dg.unregister(this),A}free(){const A=this.__destroy_into_raw();C.__wbg_rawphysicspipeline_free(A,0)}constructor(){const A=C.rawphysicspipeline_new();return this.__wbg_ptr=A>>>0,dg.register(this,this.__wbg_ptr,this),this}set_profiler_enabled(A){C.rawphysicspipeline_set_profiler_enabled(this.__wbg_ptr,A)}is_profiler_enabled(){return C.rawphysicspipeline_is_profiler_enabled(this.__wbg_ptr)!==0}timing_step(){return C.rawphysicspipeline_timing_step(this.__wbg_ptr)}timing_collision_detection(){return C.rawphysicspipeline_timing_collision_detection(this.__wbg_ptr)}timing_broad_phase(){return C.rawphysicspipeline_timing_broad_phase(this.__wbg_ptr)}timing_narrow_phase(){return C.rawphysicspipeline_timing_narrow_phase(this.__wbg_ptr)}timing_solver(){return C.rawphysicspipeline_timing_solver(this.__wbg_ptr)}timing_velocity_assembly(){return C.rawphysicspipeline_timing_velocity_assembly(this.__wbg_ptr)}timing_velocity_resolution(){return C.rawphysicspipeline_timing_velocity_resolution(this.__wbg_ptr)}timing_velocity_update(){return C.rawphysicspipeline_timing_velocity_update(this.__wbg_ptr)}timing_velocity_writeback(){return C.rawphysicspipeline_timing_velocity_writeback(this.__wbg_ptr)}timing_ccd(){return C.rawphysicspipeline_timing_ccd(this.__wbg_ptr)}timing_ccd_toi_computation(){return C.rawphysicspipeline_timing_ccd_toi_computation(this.__wbg_ptr)}timing_ccd_broad_phase(){return C.rawphysicspipeline_timing_ccd_broad_phase(this.__wbg_ptr)}timing_ccd_narrow_phase(){return C.rawphysicspipeline_timing_ccd_narrow_phase(this.__wbg_ptr)}timing_ccd_solver(){return C.rawphysicspipeline_timing_ccd_solver(this.__wbg_ptr)}timing_island_construction(){return C.rawphysicspipeline_timing_island_construction(this.__wbg_ptr)}timing_user_changes(){return C.rawphysicspipeline_timing_user_changes(this.__wbg_ptr)}step(A,I,g,B,Q,i,o,G,k,K){D(A,S),D(I,EA),D(g,v),D(B,z),D(Q,e),D(i,q),D(o,L),D(G,_),D(k,$),D(K,cI),C.rawphysicspipeline_step(this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,i.__wbg_ptr,o.__wbg_ptr,G.__wbg_ptr,k.__wbg_ptr,K.__wbg_ptr)}stepWithEvents(A,I,g,B,Q,i,o,G,k,K,h,U,J,s){D(A,S),D(I,EA),D(g,v),D(B,z),D(Q,e),D(i,q),D(o,L),D(G,_),D(k,$),D(K,cI),D(h,Tg),C.rawphysicspipeline_stepWithEvents(this.__wbg_ptr,A.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,i.__wbg_ptr,o.__wbg_ptr,G.__wbg_ptr,k.__wbg_ptr,K.__wbg_ptr,h.__wbg_ptr,Y(U),Y(J),Y(s))}}const Zg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(E=>C.__wbg_rawpidcontroller_free(E>>>0,1));class oC{__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,Zg.unregister(this),A}free(){const A=this.__destroy_into_raw();C.__wbg_rawpidcontroller_free(A,0)}constructor(A,I,g,B){const Q=C.rawpidcontroller_new(A,I,g,B);return this.__wbg_ptr=Q>>>0,Zg.register(this,this.__wbg_ptr,this),this}set_kp(A,I){C.rawpidcontroller_set_kp(this.__wbg_ptr,A,I)}set_ki(A,I){C.rawpidcontroller_set_ki(this.__wbg_ptr,A,I)}set_kd(A,I){C.rawpidcontroller_set_kd(this.__wbg_ptr,A,I)}set_axes_mask(A){C.rawpidcontroller_set_axes_mask(this.__wbg_ptr,A)}reset_integrals(){C.rawpidcontroller_reset_integrals(this.__wbg_ptr)}apply_linear_correction(A,I,g,B,Q){D(I,q),D(B,S),D(Q,S),C.rawpidcontroller_apply_linear_correction(this.__wbg_ptr,A,I.__wbg_ptr,g,B.__wbg_ptr,Q.__wbg_ptr)}apply_angular_correction(A,I,g,B,Q){D(I,q),D(B,F),D(Q,S),C.rawpidcontroller_apply_angular_correction(this.__wbg_ptr,A,I.__wbg_ptr,g,B.__wbg_ptr,Q.__wbg_ptr)}linear_correction(A,I,g,B,Q){D(I,q),D(B,S),D(Q,S);const i=C.rawpidcontroller_linear_correction(this.__wbg_ptr,A,I.__wbg_ptr,g,B.__wbg_ptr,Q.__wbg_ptr);return S.__wrap(i)}angular_correction(A,I,g,B,Q){D(I,q),D(B,F),D(Q,S);const i=C.rawpidcontroller_angular_correction(this.__wbg_ptr,A,I.__wbg_ptr,g,B.__wbg_ptr,Q.__wbg_ptr);return S.__wrap(i)}}const jg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(E=>C.__wbg_rawpointcolliderproje