@dimforge/rapier2d-simd-compat
Version:
2-dimensional physics engine in Rust - official JS bindings. Compatibility package with inlined webassembly as base64.
1 lines • 1.68 MB
JavaScript
let A;const I=new Array(128).fill(void 0);function g(A){return I[A]}I.push(void 0,null,!0,!1);let C=I.length;function Q(A){C===I.length&&I.push(I.length+1);const g=C;return C=I[g],I[g]=A,g}function B(I,g){try{return I.apply(this,g)}catch(I){A.__wbindgen_export_0(Q(I))}}const E="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&E.decode();let i=null;function D(I,g){return I>>>=0,E.decode((null!==i&&0!==i.byteLength||(i=new Uint8Array(A.memory.buffer)),i).subarray(I,I+g))}function o(A){return null==A}let w=null;function G(){return(null===w||!0===w.buffer.detached||void 0===w.buffer.detached&&w.buffer!==A.memory.buffer)&&(w=new DataView(A.memory.buffer)),w}function h(A){const Q=g(A);return function(A){A<132||(I[A]=C,C=A)}(A),Q}function S(A,I){if(!(A instanceof I))throw new Error(`expected instance of ${I.name}`)}let s=128;function y(A){if(1==s)throw new Error("out of js stack");return I[--s]=A,s}let K=null;function N(I,g){return I>>>=0,(null!==K&&0!==K.byteLength||(K=new Int32Array(A.memory.buffer)),K).subarray(I/4,I/4+g)}let F=null;function k(){return null!==F&&0!==F.byteLength||(F=new Float32Array(A.memory.buffer)),F}function R(A,I){return A>>>=0,k().subarray(A/4,A/4+I)}let M=null;function a(){return null!==M&&0!==M.byteLength||(M=new Uint32Array(A.memory.buffer)),M}let J=0;function U(A,I){const g=I(4*A.length,4)>>>0;return a().set(A,g/4),J=A.length,g}function Y(A,I){const g=I(4*A.length,4)>>>0;return k().set(A,g/4),J=A.length,g}Object.freeze({Vertex:0,0:"Vertex",Face:1,1:"Face",Unknown:2,2:"Unknown"});const c=Object.freeze({LinX:0,0:"LinX",LinY:1,1:"LinY",AngX:2,2:"AngX"}),L=Object.freeze({Revolute:0,0:"Revolute",Fixed:1,1:"Fixed",Prismatic:2,2:"Prismatic",Rope:3,3:"Rope",Spring:4,4:"Spring",Generic:5,5:"Generic"});Object.freeze({AccelerationBased:0,0:"AccelerationBased",ForceBased:1,1:"ForceBased"}),Object.freeze({Dynamic:0,0:"Dynamic",Fixed:1,1:"Fixed",KinematicPositionBased:2,2:"KinematicPositionBased",KinematicVelocityBased:3,3:"KinematicVelocityBased"});const t=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",ConvexPolygon:9,9:"ConvexPolygon",RoundCuboid:10,10:"RoundCuboid",RoundTriangle:11,11:"RoundTriangle",RoundConvexPolygon:12,12:"RoundConvexPolygon",HalfSpace:13,13:"HalfSpace",Voxels:14,14:"Voxels"}),H="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawbroadphase_free(I>>>0,1)));class q{static __wrap(A){A>>>=0;const I=Object.create(q.prototype);return I.__wbg_ptr=A,H.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,H.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawbroadphase_free(I,0)}constructor(){const I=A.rawbroadphase_new();return this.__wbg_ptr=I>>>0,H.register(this,this.__wbg_ptr,this),this}castRay(g,C,Q,B,E,i,D,w,G,h,K,N){try{S(g,wA),S(C,cA),S(Q,d),S(B,bA),S(E,bA);const F=A.rawbroadphase_castRay(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,B.__wbg_ptr,E.__wbg_ptr,i,D,w,o(G)?4294967297:G>>>0,!o(h),o(h)?0:h,!o(K),o(K)?0:K,y(N));return 0===F?void 0:RA.__wrap(F)}finally{I[s++]=void 0}}castRayAndGetNormal(g,C,Q,B,E,i,D,w,G,h,K,N){try{S(g,wA),S(C,cA),S(Q,d),S(B,bA),S(E,bA);const F=A.rawbroadphase_castRayAndGetNormal(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,B.__wbg_ptr,E.__wbg_ptr,i,D,w,o(G)?4294967297:G>>>0,!o(h),o(h)?0:h,!o(K),o(K)?0:K,y(N));return 0===F?void 0:aA.__wrap(F)}finally{I[s++]=void 0}}intersectionsWithRay(g,C,Q,B,E,i,D,w,G,h,K,N,F){try{S(g,wA),S(C,cA),S(Q,d),S(B,bA),S(E,bA),A.rawbroadphase_intersectionsWithRay(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,B.__wbg_ptr,E.__wbg_ptr,i,D,y(w),G,o(h)?4294967297:h>>>0,!o(K),o(K)?0:K,!o(N),o(N)?0:N,y(F))}finally{I[s++]=void 0,I[s++]=void 0}}intersectionWithShape(g,C,Q,B,E,i,D,w,h,K,N){try{const R=A.__wbindgen_add_to_stack_pointer(-16);S(g,wA),S(C,cA),S(Q,d),S(B,bA),S(E,tA),S(i,eA),A.rawbroadphase_intersectionWithShape(R,this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,B.__wbg_ptr,E.__wbg_ptr,i.__wbg_ptr,D,o(w)?4294967297:w>>>0,!o(h),o(h)?0:h,!o(K),o(K)?0:K,y(N));var F=G().getInt32(R+0,!0),k=G().getFloat64(R+8,!0);return 0===F?void 0:k}finally{A.__wbindgen_add_to_stack_pointer(16),I[s++]=void 0}}projectPoint(g,C,Q,B,E,i,D,w,G,h){try{S(g,wA),S(C,cA),S(Q,d),S(B,bA);const K=A.rawbroadphase_projectPoint(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,B.__wbg_ptr,E,i,o(D)?4294967297:D>>>0,!o(w),o(w)?0:w,!o(G),o(G)?0:G,y(h));return 0===K?void 0:KA.__wrap(K)}finally{I[s++]=void 0}}projectPointAndGetFeature(g,C,Q,B,E,i,D,w,G){try{S(g,wA),S(C,cA),S(Q,d),S(B,bA);const h=A.rawbroadphase_projectPointAndGetFeature(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,B.__wbg_ptr,E,o(i)?4294967297:i>>>0,!o(D),o(D)?0:D,!o(w),o(w)?0:w,y(G));return 0===h?void 0:KA.__wrap(h)}finally{I[s++]=void 0}}intersectionsWithPoint(g,C,Q,B,E,i,D,w,G,h){try{S(g,wA),S(C,cA),S(Q,d),S(B,bA),A.rawbroadphase_intersectionsWithPoint(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,B.__wbg_ptr,y(E),i,o(D)?4294967297:D>>>0,!o(w),o(w)?0:w,!o(G),o(G)?0:G,y(h))}finally{I[s++]=void 0,I[s++]=void 0}}castShape(g,C,Q,B,E,i,D,w,G,h,K,N,F,k,R){try{S(g,wA),S(C,cA),S(Q,d),S(B,bA),S(E,tA),S(i,bA),S(D,eA);const M=A.rawbroadphase_castShape(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,B.__wbg_ptr,E.__wbg_ptr,i.__wbg_ptr,D.__wbg_ptr,w,G,h,K,o(N)?4294967297:N>>>0,!o(F),o(F)?0:F,!o(k),o(k)?0:k,y(R));return 0===M?void 0:b.__wrap(M)}finally{I[s++]=void 0}}intersectionsWithShape(g,C,Q,B,E,i,D,w,G,h,K,N){try{S(g,wA),S(C,cA),S(Q,d),S(B,bA),S(E,tA),S(i,eA),A.rawbroadphase_intersectionsWithShape(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,B.__wbg_ptr,E.__wbg_ptr,i.__wbg_ptr,y(D),w,o(G)?4294967297:G>>>0,!o(h),o(h)?0:h,!o(K),o(K)?0:K,y(N))}finally{I[s++]=void 0,I[s++]=void 0}}collidersWithAabbIntersectingAabb(g,C,Q,B,E,i){try{S(g,wA),S(C,cA),S(Q,d),S(B,bA),S(E,bA),A.rawbroadphase_collidersWithAabbIntersectingAabb(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,B.__wbg_ptr,E.__wbg_ptr,y(i))}finally{I[s++]=void 0}}}const r="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawccdsolver_free(I>>>0,1)));class e{__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,r.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawccdsolver_free(I,0)}constructor(){const I=A.rawccdsolver_new();return this.__wbg_ptr=I>>>0,r.register(this,this.__wbg_ptr,this),this}}const l="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawcharactercollision_free(I>>>0,1)));class n{__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,l.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawcharactercollision_free(I,0)}constructor(){const I=A.rawcharactercollision_new();return this.__wbg_ptr=I>>>0,l.register(this,this.__wbg_ptr,this),this}handle(){return A.rawcharactercollision_handle(this.__wbg_ptr)}translationDeltaApplied(){const I=A.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);return bA.__wrap(I)}translationDeltaRemaining(){const I=A.rawcharactercollision_translationDeltaRemaining(this.__wbg_ptr);return bA.__wrap(I)}toi(){return A.rawcharactercollision_toi(this.__wbg_ptr)}worldWitness1(){const I=A.rawcharactercollision_worldWitness1(this.__wbg_ptr);return bA.__wrap(I)}worldWitness2(){const I=A.rawcharactercollision_worldWitness2(this.__wbg_ptr);return bA.__wrap(I)}worldNormal1(){const I=A.rawcharactercollision_worldNormal1(this.__wbg_ptr);return bA.__wrap(I)}worldNormal2(){const I=A.rawcharactercollision_worldNormal2(this.__wbg_ptr);return bA.__wrap(I)}}const p="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawcolliderset_free(I>>>0,1)));class d{static __wrap(A){A>>>=0;const I=Object.create(d.prototype);return I.__wbg_ptr=A,p.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,p.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawcolliderset_free(I,0)}coTranslation(I){const g=A.rawcolliderset_coTranslation(this.__wbg_ptr,I);return bA.__wrap(g)}coRotation(I){const g=A.rawcolliderset_coRotation(this.__wbg_ptr,I);return tA.__wrap(g)}coTranslationWrtParent(I){const g=A.rawcolliderset_coTranslationWrtParent(this.__wbg_ptr,I);return 0===g?void 0:bA.__wrap(g)}coRotationWrtParent(I){const g=A.rawcolliderset_coRotationWrtParent(this.__wbg_ptr,I);return 0===g?void 0:tA.__wrap(g)}coSetTranslation(I,g,C){A.rawcolliderset_coSetTranslation(this.__wbg_ptr,I,g,C)}coSetTranslationWrtParent(I,g,C){A.rawcolliderset_coSetTranslationWrtParent(this.__wbg_ptr,I,g,C)}coSetRotation(I,g){A.rawcolliderset_coSetRotation(this.__wbg_ptr,I,g)}coSetRotationWrtParent(I,g){A.rawcolliderset_coSetRotationWrtParent(this.__wbg_ptr,I,g)}coIsSensor(I){return 0!==A.rawcolliderset_coIsSensor(this.__wbg_ptr,I)}coShapeType(I){return A.rawcolliderset_coShapeType(this.__wbg_ptr,I)}coHalfspaceNormal(I){const g=A.rawcolliderset_coHalfspaceNormal(this.__wbg_ptr,I);return 0===g?void 0:bA.__wrap(g)}coHalfExtents(I){const g=A.rawcolliderset_coHalfExtents(this.__wbg_ptr,I);return 0===g?void 0:bA.__wrap(g)}coSetHalfExtents(I,g){S(g,bA),A.rawcolliderset_coSetHalfExtents(this.__wbg_ptr,I,g.__wbg_ptr)}coRadius(I){const g=A.rawcolliderset_coRadius(this.__wbg_ptr,I);return 4294967297===g?void 0:g}coSetRadius(I,g){A.rawcolliderset_coSetRadius(this.__wbg_ptr,I,g)}coHalfHeight(I){const g=A.rawcolliderset_coHalfHeight(this.__wbg_ptr,I);return 4294967297===g?void 0:g}coSetHalfHeight(I,g){A.rawcolliderset_coSetHalfHeight(this.__wbg_ptr,I,g)}coRoundRadius(I){const g=A.rawcolliderset_coRoundRadius(this.__wbg_ptr,I);return 4294967297===g?void 0:g}coSetRoundRadius(I,g){A.rawcolliderset_coSetRoundRadius(this.__wbg_ptr,I,g)}coVoxelData(I){try{const Q=A.__wbindgen_add_to_stack_pointer(-16);A.rawcolliderset_coVoxelData(Q,this.__wbg_ptr,I);var g=G().getInt32(Q+0,!0),C=G().getInt32(Q+4,!0);let B;return 0!==g&&(B=N(g,C).slice(),A.__wbindgen_export_1(g,4*C,4)),B}finally{A.__wbindgen_add_to_stack_pointer(16)}}coVoxelSize(I){const g=A.rawcolliderset_coVoxelSize(this.__wbg_ptr,I);return 0===g?void 0:bA.__wrap(g)}coSetVoxel(I,g,C,Q){A.rawcolliderset_coSetVoxel(this.__wbg_ptr,I,g,C,Q)}coPropagateVoxelChange(I,g,C,Q,B,E){A.rawcolliderset_coPropagateVoxelChange(this.__wbg_ptr,I,g,C,Q,B,E)}coCombineVoxelStates(I,g,C,Q){A.rawcolliderset_coCombineVoxelStates(this.__wbg_ptr,I,g,C,Q)}coVertices(I){try{const Q=A.__wbindgen_add_to_stack_pointer(-16);A.rawcolliderset_coVertices(Q,this.__wbg_ptr,I);var g=G().getInt32(Q+0,!0),C=G().getInt32(Q+4,!0);let B;return 0!==g&&(B=R(g,C).slice(),A.__wbindgen_export_1(g,4*C,4)),B}finally{A.__wbindgen_add_to_stack_pointer(16)}}coIndices(I){try{const Q=A.__wbindgen_add_to_stack_pointer(-16);A.rawcolliderset_coIndices(Q,this.__wbg_ptr,I);var g=G().getInt32(Q+0,!0),C=G().getInt32(Q+4,!0);let B;return 0!==g&&(B=function(A,I){return A>>>=0,a().subarray(A/4,A/4+I)}(g,C).slice(),A.__wbindgen_export_1(g,4*C,4)),B}finally{A.__wbindgen_add_to_stack_pointer(16)}}coTriMeshFlags(I){const g=A.rawcolliderset_coTriMeshFlags(this.__wbg_ptr,I);return 4294967297===g?void 0:g}coHeightfieldHeights(I){try{const Q=A.__wbindgen_add_to_stack_pointer(-16);A.rawcolliderset_coHeightfieldHeights(Q,this.__wbg_ptr,I);var g=G().getInt32(Q+0,!0),C=G().getInt32(Q+4,!0);let B;return 0!==g&&(B=R(g,C).slice(),A.__wbindgen_export_1(g,4*C,4)),B}finally{A.__wbindgen_add_to_stack_pointer(16)}}coHeightfieldScale(I){const g=A.rawcolliderset_coHeightfieldScale(this.__wbg_ptr,I);return 0===g?void 0:bA.__wrap(g)}coParent(I){try{const Q=A.__wbindgen_add_to_stack_pointer(-16);A.rawcolliderset_coParent(Q,this.__wbg_ptr,I);var g=G().getInt32(Q+0,!0),C=G().getFloat64(Q+8,!0);return 0===g?void 0:C}finally{A.__wbindgen_add_to_stack_pointer(16)}}coSetEnabled(I,g){A.rawcolliderset_coSetEnabled(this.__wbg_ptr,I,g)}coIsEnabled(I){return 0!==A.rawcolliderset_coIsEnabled(this.__wbg_ptr,I)}coSetContactSkin(I,g){A.rawcolliderset_coSetContactSkin(this.__wbg_ptr,I,g)}coContactSkin(I){return A.rawcolliderset_coContactSkin(this.__wbg_ptr,I)}coFriction(I){return A.rawcolliderset_coFriction(this.__wbg_ptr,I)}coRestitution(I){return A.rawcolliderset_coRestitution(this.__wbg_ptr,I)}coDensity(I){return A.rawcolliderset_coDensity(this.__wbg_ptr,I)}coMass(I){return A.rawcolliderset_coMass(this.__wbg_ptr,I)}coVolume(I){return A.rawcolliderset_coVolume(this.__wbg_ptr,I)}coCollisionGroups(I){return A.rawcolliderset_coCollisionGroups(this.__wbg_ptr,I)>>>0}coSolverGroups(I){return A.rawcolliderset_coSolverGroups(this.__wbg_ptr,I)>>>0}coActiveHooks(I){return A.rawcolliderset_coActiveHooks(this.__wbg_ptr,I)>>>0}coActiveCollisionTypes(I){return A.rawcolliderset_coActiveCollisionTypes(this.__wbg_ptr,I)}coActiveEvents(I){return A.rawcolliderset_coActiveEvents(this.__wbg_ptr,I)>>>0}coContactForceEventThreshold(I){return A.rawcolliderset_coContactForceEventThreshold(this.__wbg_ptr,I)}coContainsPoint(I,g){S(g,bA);return 0!==A.rawcolliderset_coContainsPoint(this.__wbg_ptr,I,g.__wbg_ptr)}coCastShape(I,g,C,Q,B,E,i,D,o){S(g,bA),S(C,eA),S(Q,bA),S(B,tA),S(E,bA);const w=A.rawcolliderset_coCastShape(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,B.__wbg_ptr,E.__wbg_ptr,i,D,o);return 0===w?void 0:nA.__wrap(w)}coCastCollider(I,g,C,Q,B,E,i){S(g,bA),S(Q,bA);const D=A.rawcolliderset_coCastCollider(this.__wbg_ptr,I,g.__wbg_ptr,C,Q.__wbg_ptr,B,E,i);return 0===D?void 0:b.__wrap(D)}coIntersectsShape(I,g,C,Q){S(g,eA),S(C,bA),S(Q,tA);return 0!==A.rawcolliderset_coIntersectsShape(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr)}coContactShape(I,g,C,Q,B){S(g,eA),S(C,bA),S(Q,tA);const E=A.rawcolliderset_coContactShape(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,B);return 0===E?void 0:dA.__wrap(E)}coContactCollider(I,g,C){const Q=A.rawcolliderset_coContactCollider(this.__wbg_ptr,I,g,C);return 0===Q?void 0:dA.__wrap(Q)}coProjectPoint(I,g,C){S(g,bA);const Q=A.rawcolliderset_coProjectPoint(this.__wbg_ptr,I,g.__wbg_ptr,C);return FA.__wrap(Q)}coIntersectsRay(I,g,C,Q){S(g,bA),S(C,bA);return 0!==A.rawcolliderset_coIntersectsRay(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,Q)}coCastRay(I,g,C,Q,B){S(g,bA),S(C,bA);return A.rawcolliderset_coCastRay(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,Q,B)}coCastRayAndGetNormal(I,g,C,Q,B){S(g,bA),S(C,bA);const E=A.rawcolliderset_coCastRayAndGetNormal(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,Q,B);return 0===E?void 0:UA.__wrap(E)}coSetSensor(I,g){A.rawcolliderset_coSetSensor(this.__wbg_ptr,I,g)}coSetRestitution(I,g){A.rawcolliderset_coSetRestitution(this.__wbg_ptr,I,g)}coSetFriction(I,g){A.rawcolliderset_coSetFriction(this.__wbg_ptr,I,g)}coFrictionCombineRule(I){return A.rawcolliderset_coFrictionCombineRule(this.__wbg_ptr,I)>>>0}coSetFrictionCombineRule(I,g){A.rawcolliderset_coSetFrictionCombineRule(this.__wbg_ptr,I,g)}coRestitutionCombineRule(I){return A.rawcolliderset_coRestitutionCombineRule(this.__wbg_ptr,I)>>>0}coSetRestitutionCombineRule(I,g){A.rawcolliderset_coSetRestitutionCombineRule(this.__wbg_ptr,I,g)}coSetCollisionGroups(I,g){A.rawcolliderset_coSetCollisionGroups(this.__wbg_ptr,I,g)}coSetSolverGroups(I,g){A.rawcolliderset_coSetSolverGroups(this.__wbg_ptr,I,g)}coSetActiveHooks(I,g){A.rawcolliderset_coSetActiveHooks(this.__wbg_ptr,I,g)}coSetActiveEvents(I,g){A.rawcolliderset_coSetActiveEvents(this.__wbg_ptr,I,g)}coSetActiveCollisionTypes(I,g){A.rawcolliderset_coSetActiveCollisionTypes(this.__wbg_ptr,I,g)}coSetShape(I,g){S(g,eA),A.rawcolliderset_coSetShape(this.__wbg_ptr,I,g.__wbg_ptr)}coSetContactForceEventThreshold(I,g){A.rawcolliderset_coSetContactForceEventThreshold(this.__wbg_ptr,I,g)}coSetDensity(I,g){A.rawcolliderset_coSetDensity(this.__wbg_ptr,I,g)}coSetMass(I,g){A.rawcolliderset_coSetMass(this.__wbg_ptr,I,g)}coSetMassProperties(I,g,C,Q){S(C,bA),A.rawcolliderset_coSetMassProperties(this.__wbg_ptr,I,g,C.__wbg_ptr,Q)}constructor(){const I=A.rawcolliderset_new();return this.__wbg_ptr=I>>>0,p.register(this,this.__wbg_ptr,this),this}len(){return A.rawcolliderset_len(this.__wbg_ptr)>>>0}contains(I){return 0!==A.rawcolliderset_contains(this.__wbg_ptr,I)}createCollider(I,g,C,Q,B,E,i,D,o,w,h,s,y,K,N,F,k,R,M,a,J,U,Y,c){try{const H=A.__wbindgen_add_to_stack_pointer(-16);S(g,eA),S(C,bA),S(Q,tA),S(i,bA),S(c,cA),A.rawcolliderset_createCollider(H,this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,B,E,i.__wbg_ptr,D,o,w,h,s,y,K,N,F,k,R,M,a,J,U,Y,c.__wbg_ptr);var L=G().getInt32(H+0,!0),t=G().getFloat64(H+8,!0);return 0===L?void 0:t}finally{A.__wbindgen_add_to_stack_pointer(16)}}remove(I,g,C,Q){S(g,QA),S(C,cA),A.rawcolliderset_remove(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,Q)}isHandleValid(I){return 0!==A.rawcolliderset_contains(this.__wbg_ptr,I)}forEachColliderHandle(g){try{A.rawcolliderset_forEachColliderHandle(this.__wbg_ptr,y(g))}finally{I[s++]=void 0}}}const f="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawcollidershapecasthit_free(I>>>0,1)));class b{static __wrap(A){A>>>=0;const I=Object.create(b.prototype);return I.__wbg_ptr=A,f.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,f.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawcollidershapecasthit_free(I,0)}colliderHandle(){return A.rawcollidershapecasthit_colliderHandle(this.__wbg_ptr)}time_of_impact(){return A.rawcollidershapecasthit_time_of_impact(this.__wbg_ptr)}witness1(){const I=A.rawcollidershapecasthit_witness1(this.__wbg_ptr);return bA.__wrap(I)}witness2(){const I=A.rawcollidershapecasthit_witness2(this.__wbg_ptr);return bA.__wrap(I)}normal1(){const I=A.rawcollidershapecasthit_normal1(this.__wbg_ptr);return bA.__wrap(I)}normal2(){const I=A.rawcollidershapecasthit_normal2(this.__wbg_ptr);return bA.__wrap(I)}}const T="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawcontactforceevent_free(I>>>0,1)));class Z{static __wrap(A){A>>>=0;const I=Object.create(Z.prototype);return I.__wbg_ptr=A,T.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,T.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawcontactforceevent_free(I,0)}collider1(){return A.rawcollidershapecasthit_colliderHandle(this.__wbg_ptr)}collider2(){return A.rawcontactforceevent_collider2(this.__wbg_ptr)}total_force(){const I=A.rawcontactforceevent_total_force(this.__wbg_ptr);return bA.__wrap(I)}total_force_magnitude(){return A.rawcontactforceevent_total_force_magnitude(this.__wbg_ptr)}max_force_direction(){const I=A.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);return bA.__wrap(I)}max_force_magnitude(){return A.rawcontactforceevent_max_force_magnitude(this.__wbg_ptr)}}const W="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawcontactmanifold_free(I>>>0,1)));class m{static __wrap(A){A>>>=0;const I=Object.create(m.prototype);return I.__wbg_ptr=A,W.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,W.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawcontactmanifold_free(I,0)}normal(){const I=A.rawcontactmanifold_normal(this.__wbg_ptr);return bA.__wrap(I)}local_n1(){const I=A.rawcontactmanifold_local_n1(this.__wbg_ptr);return bA.__wrap(I)}local_n2(){const I=A.rawcontactmanifold_local_n2(this.__wbg_ptr);return bA.__wrap(I)}subshape1(){return A.rawcontactmanifold_subshape1(this.__wbg_ptr)>>>0}subshape2(){return A.rawcontactmanifold_subshape2(this.__wbg_ptr)>>>0}num_contacts(){return A.rawcontactmanifold_num_contacts(this.__wbg_ptr)>>>0}contact_local_p1(I){const g=A.rawcontactmanifold_contact_local_p1(this.__wbg_ptr,I);return 0===g?void 0:bA.__wrap(g)}contact_local_p2(I){const g=A.rawcontactmanifold_contact_local_p2(this.__wbg_ptr,I);return 0===g?void 0:bA.__wrap(g)}contact_dist(I){return A.rawcontactmanifold_contact_dist(this.__wbg_ptr,I)}contact_fid1(I){return A.rawcontactmanifold_contact_fid1(this.__wbg_ptr,I)>>>0}contact_fid2(I){return A.rawcontactmanifold_contact_fid2(this.__wbg_ptr,I)>>>0}contact_impulse(I){return A.rawcontactmanifold_contact_impulse(this.__wbg_ptr,I)}contact_tangent_impulse(I){return A.rawcontactmanifold_contact_tangent_impulse(this.__wbg_ptr,I)}num_solver_contacts(){return A.rawcontactmanifold_num_solver_contacts(this.__wbg_ptr)>>>0}solver_contact_point(I){const g=A.rawcontactmanifold_solver_contact_point(this.__wbg_ptr,I);return 0===g?void 0:bA.__wrap(g)}solver_contact_dist(I){return A.rawcontactmanifold_solver_contact_dist(this.__wbg_ptr,I)}solver_contact_friction(I){return A.rawcontactmanifold_solver_contact_friction(this.__wbg_ptr,I)}solver_contact_restitution(I){return A.rawcontactmanifold_solver_contact_restitution(this.__wbg_ptr,I)}solver_contact_tangent_velocity(I){const g=A.rawcontactmanifold_solver_contact_tangent_velocity(this.__wbg_ptr,I);return bA.__wrap(g)}}const P="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawcontactpair_free(I>>>0,1)));class X{static __wrap(A){A>>>=0;const I=Object.create(X.prototype);return I.__wbg_ptr=A,P.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,P.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawcontactpair_free(I,0)}collider1(){return A.rawcontactpair_collider1(this.__wbg_ptr)}collider2(){return A.rawcontactpair_collider2(this.__wbg_ptr)}numContactManifolds(){return A.rawcontactpair_numContactManifolds(this.__wbg_ptr)>>>0}contactManifold(I){const g=A.rawcontactpair_contactManifold(this.__wbg_ptr,I);return 0===g?void 0:m.__wrap(g)}}const O="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawdebugrenderpipeline_free(I>>>0,1)));class x{__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,O.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawdebugrenderpipeline_free(I,0)}constructor(){const I=A.rawdebugrenderpipeline_new();return this.__wbg_ptr=I>>>0,O.register(this,this.__wbg_ptr,this),this}vertices(){return h(A.rawdebugrenderpipeline_vertices(this.__wbg_ptr))}colors(){return h(A.rawdebugrenderpipeline_colors(this.__wbg_ptr))}render(g,C,Q,B,E,i,D){try{S(g,cA),S(C,d),S(Q,AA),S(B,DA),S(E,wA),A.rawdebugrenderpipeline_render(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,B.__wbg_ptr,E.__wbg_ptr,i,y(D))}finally{I[s++]=void 0}}}const j="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawdeserializedworld_free(I>>>0,1)));class V{static __wrap(A){A>>>=0;const I=Object.create(V.prototype);return I.__wbg_ptr=A,j.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,j.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawdeserializedworld_free(I,0)}takeGravity(){const I=A.rawdeserializedworld_takeGravity(this.__wbg_ptr);return 0===I?void 0:bA.__wrap(I)}takeIntegrationParameters(){const I=A.rawdeserializedworld_takeIntegrationParameters(this.__wbg_ptr);return 0===I?void 0:gA.__wrap(I)}takeIslandManager(){const I=A.rawdeserializedworld_takeIslandManager(this.__wbg_ptr);return 0===I?void 0:QA.__wrap(I)}takeBroadPhase(){const I=A.rawdeserializedworld_takeBroadPhase(this.__wbg_ptr);return 0===I?void 0:q.__wrap(I)}takeNarrowPhase(){const I=A.rawdeserializedworld_takeNarrowPhase(this.__wbg_ptr);return 0===I?void 0:wA.__wrap(I)}takeBodies(){const I=A.rawdeserializedworld_takeBodies(this.__wbg_ptr);return 0===I?void 0:cA.__wrap(I)}takeColliders(){const I=A.rawdeserializedworld_takeColliders(this.__wbg_ptr);return 0===I?void 0:d.__wrap(I)}takeImpulseJoints(){const I=A.rawdeserializedworld_takeImpulseJoints(this.__wbg_ptr);return 0===I?void 0:AA.__wrap(I)}takeMultibodyJoints(){const I=A.rawdeserializedworld_takeMultibodyJoints(this.__wbg_ptr);return 0===I?void 0:DA.__wrap(I)}}const v="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_raweventqueue_free(I>>>0,1)));class u{__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,v.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_raweventqueue_free(I,0)}constructor(I){const g=A.raweventqueue_new(I);return this.__wbg_ptr=g>>>0,v.register(this,this.__wbg_ptr,this),this}drainCollisionEvents(g){try{A.raweventqueue_drainCollisionEvents(this.__wbg_ptr,y(g))}finally{I[s++]=void 0}}drainContactForceEvents(g){try{A.raweventqueue_drainContactForceEvents(this.__wbg_ptr,y(g))}finally{I[s++]=void 0}}clear(){A.raweventqueue_clear(this.__wbg_ptr)}}const z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawgenericjoint_free(I>>>0,1)));class _{static __wrap(A){A>>>=0;const I=Object.create(_.prototype);return I.__wbg_ptr=A,z.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,z.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawgenericjoint_free(I,0)}static spring(I,g,C,Q,B){S(Q,bA),S(B,bA);const E=A.rawgenericjoint_spring(I,g,C,Q.__wbg_ptr,B.__wbg_ptr);return _.__wrap(E)}static rope(I,g,C){S(g,bA),S(C,bA);const Q=A.rawgenericjoint_rope(I,g.__wbg_ptr,C.__wbg_ptr);return _.__wrap(Q)}static prismatic(I,g,C,Q,B,E){S(I,bA),S(g,bA),S(C,bA);const i=A.rawgenericjoint_prismatic(I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,Q,B,E);return 0===i?void 0:_.__wrap(i)}static fixed(I,g,C,Q){S(I,bA),S(g,tA),S(C,bA),S(Q,tA);const B=A.rawgenericjoint_fixed(I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr);return _.__wrap(B)}static revolute(I,g){S(I,bA),S(g,bA);const C=A.rawgenericjoint_revolute(I.__wbg_ptr,g.__wbg_ptr);return 0===C?void 0:_.__wrap(C)}}const $="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawimpulsejointset_free(I>>>0,1)));class AA{static __wrap(A){A>>>=0;const I=Object.create(AA.prototype);return I.__wbg_ptr=A,$.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,$.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawimpulsejointset_free(I,0)}jointType(I){return A.rawimpulsejointset_jointType(this.__wbg_ptr,I)}jointBodyHandle1(I){return A.rawimpulsejointset_jointBodyHandle1(this.__wbg_ptr,I)}jointBodyHandle2(I){return A.rawimpulsejointset_jointBodyHandle2(this.__wbg_ptr,I)}jointFrameX1(I){const g=A.rawimpulsejointset_jointFrameX1(this.__wbg_ptr,I);return tA.__wrap(g)}jointFrameX2(I){const g=A.rawimpulsejointset_jointFrameX2(this.__wbg_ptr,I);return tA.__wrap(g)}jointAnchor1(I){const g=A.rawimpulsejointset_jointAnchor1(this.__wbg_ptr,I);return bA.__wrap(g)}jointAnchor2(I){const g=A.rawimpulsejointset_jointAnchor2(this.__wbg_ptr,I);return bA.__wrap(g)}jointSetAnchor1(I,g){S(g,bA),A.rawimpulsejointset_jointSetAnchor1(this.__wbg_ptr,I,g.__wbg_ptr)}jointSetAnchor2(I,g){S(g,bA),A.rawimpulsejointset_jointSetAnchor2(this.__wbg_ptr,I,g.__wbg_ptr)}jointContactsEnabled(I){return 0!==A.rawimpulsejointset_jointContactsEnabled(this.__wbg_ptr,I)}jointSetContactsEnabled(I,g){A.rawimpulsejointset_jointSetContactsEnabled(this.__wbg_ptr,I,g)}jointLimitsEnabled(I,g){return 0!==A.rawimpulsejointset_jointLimitsEnabled(this.__wbg_ptr,I,g)}jointLimitsMin(I,g){return A.rawimpulsejointset_jointLimitsMin(this.__wbg_ptr,I,g)}jointLimitsMax(I,g){return A.rawimpulsejointset_jointLimitsMax(this.__wbg_ptr,I,g)}jointSetLimits(I,g,C,Q){A.rawimpulsejointset_jointSetLimits(this.__wbg_ptr,I,g,C,Q)}jointConfigureMotorModel(I,g,C){A.rawimpulsejointset_jointConfigureMotorModel(this.__wbg_ptr,I,g,C)}jointConfigureMotorVelocity(I,g,C,Q){A.rawimpulsejointset_jointConfigureMotorVelocity(this.__wbg_ptr,I,g,C,Q)}jointConfigureMotorPosition(I,g,C,Q,B){A.rawimpulsejointset_jointConfigureMotorPosition(this.__wbg_ptr,I,g,C,Q,B)}jointConfigureMotor(I,g,C,Q,B,E){A.rawimpulsejointset_jointConfigureMotor(this.__wbg_ptr,I,g,C,Q,B,E)}constructor(){const I=A.rawimpulsejointset_new();return this.__wbg_ptr=I>>>0,$.register(this,this.__wbg_ptr,this),this}createJoint(I,g,C,Q){S(I,_);return A.rawimpulsejointset_createJoint(this.__wbg_ptr,I.__wbg_ptr,g,C,Q)}remove(I,g){A.rawimpulsejointset_remove(this.__wbg_ptr,I,g)}len(){return A.rawimpulsejointset_len(this.__wbg_ptr)>>>0}contains(I){return 0!==A.rawimpulsejointset_contains(this.__wbg_ptr,I)}forEachJointHandle(g){try{A.rawimpulsejointset_forEachJointHandle(this.__wbg_ptr,y(g))}finally{I[s++]=void 0}}forEachJointAttachedToRigidBody(g,C){try{A.rawimpulsejointset_forEachJointAttachedToRigidBody(this.__wbg_ptr,g,y(C))}finally{I[s++]=void 0}}}const IA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawintegrationparameters_free(I>>>0,1)));class gA{static __wrap(A){A>>>=0;const I=Object.create(gA.prototype);return I.__wbg_ptr=A,IA.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,IA.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawintegrationparameters_free(I,0)}constructor(){const I=A.rawintegrationparameters_new();return this.__wbg_ptr=I>>>0,IA.register(this,this.__wbg_ptr,this),this}get dt(){return A.rawintegrationparameters_dt(this.__wbg_ptr)}get contact_erp(){return A.rawintegrationparameters_contact_erp(this.__wbg_ptr)}get normalizedAllowedLinearError(){return A.rawcontactforceevent_total_force_magnitude(this.__wbg_ptr)}get normalizedPredictionDistance(){return A.rawcharactercollision_toi(this.__wbg_ptr)}get numSolverIterations(){return A.rawintegrationparameters_numSolverIterations(this.__wbg_ptr)>>>0}get numInternalPgsIterations(){return A.rawintegrationparameters_numInternalPgsIterations(this.__wbg_ptr)>>>0}get minIslandSize(){return A.rawintegrationparameters_minIslandSize(this.__wbg_ptr)>>>0}get maxCcdSubsteps(){return A.rawintegrationparameters_maxCcdSubsteps(this.__wbg_ptr)>>>0}get lengthUnit(){return A.rawintegrationparameters_lengthUnit(this.__wbg_ptr)}set dt(I){A.rawintegrationparameters_set_dt(this.__wbg_ptr,I)}set contact_natural_frequency(I){A.rawintegrationparameters_set_contact_natural_frequency(this.__wbg_ptr,I)}set normalizedAllowedLinearError(I){A.rawintegrationparameters_set_normalizedAllowedLinearError(this.__wbg_ptr,I)}set normalizedPredictionDistance(I){A.rawintegrationparameters_set_normalizedPredictionDistance(this.__wbg_ptr,I)}set numSolverIterations(I){A.rawintegrationparameters_set_numSolverIterations(this.__wbg_ptr,I)}set numInternalPgsIterations(I){A.rawintegrationparameters_set_numInternalPgsIterations(this.__wbg_ptr,I)}set minIslandSize(I){A.rawintegrationparameters_set_minIslandSize(this.__wbg_ptr,I)}set maxCcdSubsteps(I){A.rawintegrationparameters_set_maxCcdSubsteps(this.__wbg_ptr,I)}set lengthUnit(I){A.rawintegrationparameters_set_lengthUnit(this.__wbg_ptr,I)}}const CA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawislandmanager_free(I>>>0,1)));class QA{static __wrap(A){A>>>=0;const I=Object.create(QA.prototype);return I.__wbg_ptr=A,CA.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,CA.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawislandmanager_free(I,0)}constructor(){const I=A.rawislandmanager_new();return this.__wbg_ptr=I>>>0,CA.register(this,this.__wbg_ptr,this),this}forEachActiveRigidBodyHandle(g){try{A.rawislandmanager_forEachActiveRigidBodyHandle(this.__wbg_ptr,y(g))}finally{I[s++]=void 0}}}const BA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawkinematiccharactercontroller_free(I>>>0,1)));class EA{__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,BA.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawkinematiccharactercontroller_free(I,0)}constructor(I){const g=A.rawkinematiccharactercontroller_new(I);return this.__wbg_ptr=g>>>0,BA.register(this,this.__wbg_ptr,this),this}up(){const I=A.rawcollidershapecasthit_normal2(this.__wbg_ptr);return bA.__wrap(I)}setUp(I){S(I,bA),A.rawkinematiccharactercontroller_setUp(this.__wbg_ptr,I.__wbg_ptr)}normalNudgeFactor(){return A.rawkinematiccharactercontroller_normalNudgeFactor(this.__wbg_ptr)}setNormalNudgeFactor(I){A.rawkinematiccharactercontroller_setNormalNudgeFactor(this.__wbg_ptr,I)}offset(){return A.rawkinematiccharactercontroller_offset(this.__wbg_ptr)}setOffset(I){A.rawkinematiccharactercontroller_setOffset(this.__wbg_ptr,I)}slideEnabled(){return 0!==A.rawkinematiccharactercontroller_slideEnabled(this.__wbg_ptr)}setSlideEnabled(I){A.rawkinematiccharactercontroller_setSlideEnabled(this.__wbg_ptr,I)}autostepMaxHeight(){const I=A.rawkinematiccharactercontroller_autostepMaxHeight(this.__wbg_ptr);return 4294967297===I?void 0:I}autostepMinWidth(){const I=A.rawkinematiccharactercontroller_autostepMinWidth(this.__wbg_ptr);return 4294967297===I?void 0:I}autostepIncludesDynamicBodies(){const I=A.rawkinematiccharactercontroller_autostepIncludesDynamicBodies(this.__wbg_ptr);return 16777215===I?void 0:0!==I}autostepEnabled(){return 0!==A.rawkinematiccharactercontroller_autostepEnabled(this.__wbg_ptr)}enableAutostep(I,g,C){A.rawkinematiccharactercontroller_enableAutostep(this.__wbg_ptr,I,g,C)}disableAutostep(){A.rawkinematiccharactercontroller_disableAutostep(this.__wbg_ptr)}maxSlopeClimbAngle(){return A.rawkinematiccharactercontroller_maxSlopeClimbAngle(this.__wbg_ptr)}setMaxSlopeClimbAngle(I){A.rawkinematiccharactercontroller_setMaxSlopeClimbAngle(this.__wbg_ptr,I)}minSlopeSlideAngle(){return A.rawkinematiccharactercontroller_minSlopeSlideAngle(this.__wbg_ptr)}setMinSlopeSlideAngle(I){A.rawkinematiccharactercontroller_setMinSlopeSlideAngle(this.__wbg_ptr,I)}snapToGroundDistance(){const I=A.rawkinematiccharactercontroller_snapToGroundDistance(this.__wbg_ptr);return 4294967297===I?void 0:I}enableSnapToGround(I){A.rawkinematiccharactercontroller_enableSnapToGround(this.__wbg_ptr,I)}disableSnapToGround(){A.rawkinematiccharactercontroller_disableSnapToGround(this.__wbg_ptr)}snapToGroundEnabled(){return 0!==A.rawkinematiccharactercontroller_snapToGroundEnabled(this.__wbg_ptr)}computeColliderMovement(g,C,Q,B,E,i,D,w,G,h,K,N){try{S(C,q),S(Q,wA),S(B,cA),S(E,d),S(D,bA),A.rawkinematiccharactercontroller_computeColliderMovement(this.__wbg_ptr,g,C.__wbg_ptr,Q.__wbg_ptr,B.__wbg_ptr,E.__wbg_ptr,i,D.__wbg_ptr,w,o(G)?4294967297:Math.fround(G),h,o(K)?4294967297:K>>>0,y(N))}finally{I[s++]=void 0}}computedMovement(){const I=A.rawkinematiccharactercontroller_computedMovement(this.__wbg_ptr);return bA.__wrap(I)}computedGrounded(){return 0!==A.rawkinematiccharactercontroller_computedGrounded(this.__wbg_ptr)}numComputedCollisions(){return A.rawkinematiccharactercontroller_numComputedCollisions(this.__wbg_ptr)>>>0}computedCollision(I,g){S(g,n);return 0!==A.rawkinematiccharactercontroller_computedCollision(this.__wbg_ptr,I,g.__wbg_ptr)}}const iA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawmultibodyjointset_free(I>>>0,1)));class DA{static __wrap(A){A>>>=0;const I=Object.create(DA.prototype);return I.__wbg_ptr=A,iA.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,iA.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawmultibodyjointset_free(I,0)}jointType(I){return A.rawmultibodyjointset_jointType(this.__wbg_ptr,I)}jointFrameX1(I){const g=A.rawmultibodyjointset_jointFrameX1(this.__wbg_ptr,I);return tA.__wrap(g)}jointFrameX2(I){const g=A.rawmultibodyjointset_jointFrameX2(this.__wbg_ptr,I);return tA.__wrap(g)}jointAnchor1(I){const g=A.rawmultibodyjointset_jointAnchor1(this.__wbg_ptr,I);return bA.__wrap(g)}jointAnchor2(I){const g=A.rawmultibodyjointset_jointAnchor2(this.__wbg_ptr,I);return bA.__wrap(g)}jointContactsEnabled(I){return 0!==A.rawmultibodyjointset_jointContactsEnabled(this.__wbg_ptr,I)}jointSetContactsEnabled(I,g){A.rawmultibodyjointset_jointSetContactsEnabled(this.__wbg_ptr,I,g)}jointLimitsEnabled(I,g){return 0!==A.rawmultibodyjointset_jointLimitsEnabled(this.__wbg_ptr,I,g)}jointLimitsMin(I,g){return A.rawmultibodyjointset_jointLimitsMin(this.__wbg_ptr,I,g)}jointLimitsMax(I,g){return A.rawmultibodyjointset_jointLimitsMax(this.__wbg_ptr,I,g)}constructor(){const I=A.rawmultibodyjointset_new();return this.__wbg_ptr=I>>>0,iA.register(this,this.__wbg_ptr,this),this}createJoint(I,g,C,Q){S(I,_);return A.rawmultibodyjointset_createJoint(this.__wbg_ptr,I.__wbg_ptr,g,C,Q)}remove(I,g){A.rawmultibodyjointset_remove(this.__wbg_ptr,I,g)}contains(I){return 0!==A.rawmultibodyjointset_contains(this.__wbg_ptr,I)}forEachJointHandle(g){try{A.rawmultibodyjointset_forEachJointHandle(this.__wbg_ptr,y(g))}finally{I[s++]=void 0}}forEachJointAttachedToRigidBody(g,C){try{A.rawmultibodyjointset_forEachJointAttachedToRigidBody(this.__wbg_ptr,g,y(C))}finally{I[s++]=void 0}}}const oA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawnarrowphase_free(I>>>0,1)));class wA{static __wrap(A){A>>>=0;const I=Object.create(wA.prototype);return I.__wbg_ptr=A,oA.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,oA.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawnarrowphase_free(I,0)}constructor(){const I=A.rawnarrowphase_new();return this.__wbg_ptr=I>>>0,oA.register(this,this.__wbg_ptr,this),this}contact_pairs_with(I,g){A.rawnarrowphase_contact_pairs_with(this.__wbg_ptr,I,Q(g))}contact_pair(I,g){const C=A.rawnarrowphase_contact_pair(this.__wbg_ptr,I,g);return 0===C?void 0:X.__wrap(C)}intersection_pairs_with(I,g){A.rawnarrowphase_intersection_pairs_with(this.__wbg_ptr,I,Q(g))}intersection_pair(I,g){return 0!==A.rawnarrowphase_intersection_pair(this.__wbg_ptr,I,g)}}const GA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawphysicspipeline_free(I>>>0,1)));class hA{__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,GA.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawphysicspipeline_free(I,0)}constructor(){const I=A.rawphysicspipeline_new();return this.__wbg_ptr=I>>>0,GA.register(this,this.__wbg_ptr,this),this}set_profiler_enabled(I){A.rawphysicspipeline_set_profiler_enabled(this.__wbg_ptr,I)}is_profiler_enabled(){return 0!==A.rawphysicspipeline_is_profiler_enabled(this.__wbg_ptr)}timing_step(){return A.rawphysicspipeline_timing_step(this.__wbg_ptr)}timing_collision_detection(){return A.rawphysicspipeline_timing_collision_detection(this.__wbg_ptr)}timing_broad_phase(){return A.rawphysicspipeline_timing_broad_phase(this.__wbg_ptr)}timing_narrow_phase(){return A.rawphysicspipeline_timing_narrow_phase(this.__wbg_ptr)}timing_solver(){return A.rawphysicspipeline_timing_solver(this.__wbg_ptr)}timing_velocity_assembly(){return A.rawphysicspipeline_timing_velocity_assembly(this.__wbg_ptr)}timing_velocity_resolution(){return A.rawphysicspipeline_timing_velocity_resolution(this.__wbg_ptr)}timing_velocity_update(){return A.rawphysicspipeline_timing_velocity_update(this.__wbg_ptr)}timing_velocity_writeback(){return A.rawphysicspipeline_timing_velocity_writeback(this.__wbg_ptr)}timing_ccd(){return A.rawphysicspipeline_timing_ccd(this.__wbg_ptr)}timing_ccd_toi_computation(){return A.rawphysicspipeline_timing_ccd_toi_computation(this.__wbg_ptr)}timing_ccd_broad_phase(){return A.rawphysicspipeline_timing_ccd_broad_phase(this.__wbg_ptr)}timing_ccd_narrow_phase(){return A.rawphysicspipeline_timing_ccd_narrow_phase(this.__wbg_ptr)}timing_ccd_solver(){return A.rawphysicspipeline_timing_ccd_solver(this.__wbg_ptr)}timing_island_construction(){return A.rawphysicspipeline_timing_island_construction(this.__wbg_ptr)}timing_user_changes(){return A.rawphysicspipeline_timing_user_changes(this.__wbg_ptr)}step(I,g,C,Q,B,E,i,D,o,w){S(I,bA),S(g,gA),S(C,QA),S(Q,q),S(B,wA),S(E,cA),S(i,d),S(D,AA),S(o,DA),S(w,e),A.rawphysicspipeline_step(this.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,B.__wbg_ptr,E.__wbg_ptr,i.__wbg_ptr,D.__wbg_ptr,o.__wbg_ptr,w.__wbg_ptr)}stepWithEvents(I,g,C,B,E,i,D,o,w,G,h,s,y,K){S(I,bA),S(g,gA),S(C,QA),S(B,q),S(E,wA),S(i,cA),S(D,d),S(o,AA),S(w,DA),S(G,e),S(h,u),A.rawphysicspipeline_stepWithEvents(this.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,E.__wbg_ptr,i.__wbg_ptr,D.__wbg_ptr,o.__wbg_ptr,w.__wbg_ptr,G.__wbg_ptr,h.__wbg_ptr,Q(s),Q(y),Q(K))}}const SA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawpidcontroller_free(I>>>0,1)));class sA{__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,SA.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawpidcontroller_free(I,0)}constructor(I,g,C,Q){const B=A.rawpidcontroller_new(I,g,C,Q);return this.__wbg_ptr=B>>>0,SA.register(this,this.__wbg_ptr,this),this}set_kp(I,g){A.rawpidcontroller_set_kp(this.__wbg_ptr,I,g)}set_ki(I,g){A.rawpidcontroller_set_ki(this.__wbg_ptr,I,g)}set_kd(I,g){A.rawpidcontroller_set_kd(this.__wbg_ptr,I,g)}set_axes_mask(I){A.rawpidcontroller_set_axes_mask(this.__wbg_ptr,I)}reset_integrals(){A.rawpidcontroller_reset_integrals(this.__wbg_ptr)}apply_linear_correction(I,g,C,Q,B){S(g,cA),S(Q,bA),S(B,bA),A.rawpidcontroller_apply_linear_correction(this.__wbg_ptr,I,g.__wbg_ptr,C,Q.__wbg_ptr,B.__wbg_ptr)}apply_angular_correction(I,g,C,Q,B){S(g,cA),A.rawpidcontroller_apply_angular_correction(this.__wbg_ptr,I,g.__wbg_ptr,C,Q,B)}linear_correction(I,g,C,Q,B){S(g,cA),S(Q,bA),S(B,bA);const E=A.rawpidcontroller_linear_correction(this.__wbg_ptr,I,g.__wbg_ptr,C,Q.__wbg_ptr,B.__wbg_ptr);return bA.__wrap(E)}angular_correction(I,g,C,Q,B){S(g,cA);return A.rawpidcontroller_angular_correction(this.__wbg_ptr,I,g.__wbg_ptr,C,Q,B)}}const yA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawpointcolliderprojection_free(I>>>0,1)));class KA{static __wrap(A){A>>>=0;const I=Object.create(KA.prototype);return I.__wbg_ptr=A,yA.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,yA.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawpointcolliderprojection_free(I,0)}colliderHandle(){return A.rawpointcolliderprojection_colliderHandle(this.__wbg_ptr)}point(){const I=A.rawpointcolliderprojection_point(this.__wbg_ptr);return bA.__wrap(I)}isInside(){return 0!==A.rawpointcolliderprojection_isInside(this.__wbg_ptr)}featureType(){return A.rawpointcolliderprojection_featureType(this.__wbg_ptr)}featureId(){const I=A.rawpointcolliderprojection_featureId(this.__wbg_ptr);return 4294967297===I?void 0:I}}const NA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawpointprojection_free(I>>>0,1)));class FA{static __wrap(A){A>>>=0;const I=Object.create(FA.prototype);return I.__wbg_ptr=A,NA.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,NA.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawpointprojection_free(I,0)}point(){const I=A.rawpointprojection_point(this.__wbg_ptr);return bA.__wrap(I)}isInside(){return 0!==A.rawpointprojection_isInside(this.__wbg_ptr)}}const kA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawraycolliderhit_free(I>>>0,1)));class RA{static __wrap(A){A>>>=0;const I=Object.create(RA.prototype);return I.__wbg_ptr=A,kA.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,kA.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawraycolliderhit_free(I,0)}colliderHandle(){return A.rawcollidershapecasthit_colliderHandle(this.__wbg_ptr)}timeOfImpact(){return A.rawcollidershapecasthit_time_of_impact(this.__wbg_ptr)}}const MA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawraycolliderintersection_free(I>>>0,1)));class aA{static __wrap(A){A>>>=0;const I=Object.create(aA.prototype);return I.__wbg_ptr=A,MA.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,MA.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawraycolliderintersection_free(I,0)}colliderHandle(){return A.rawpointcolliderprojection_colliderHandle(this.__wbg_ptr)}normal(){const I=A.rawcollidershapecasthit_witness1(this.__wbg_ptr);return bA.__wrap(I)}time_of_impact(){return A.rawcollidershapecasthit_time_of_impact(this.__wbg_ptr)}featureType(){return A.rawpointcolliderprojection_featureType(this.__wbg_ptr)}featureId(){const I=A.rawpointcolliderprojection_featureId(this.__wbg_ptr);return 4294967297===I?void 0:I}}const JA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawrayintersection_free(I>>>0,1)));class UA{static __wrap(A){A>>>=0;const I=Object.create(UA.prototype);return I.__wbg_ptr=A,JA.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,JA.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawrayintersection_free(I,0)}normal(){const I=A.rawcollidershapecasthit_witness1(this.__wbg_ptr);return bA.__wrap(I)}time_of_impact(){return A.rawcollidershapecasthit_time_of_impact(this.__wbg_ptr)}featureType(){return A.rawpointcolliderprojection_featureType(this.__wbg_ptr)}featureId(){const I=A.rawpointcolliderprojection_featureId(this.__wbg_ptr);return 4294967297===I?void 0:I}}const YA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawrigidbodyset_free(I>>>0,1)));class cA{static __wrap(A){A>>>=0;const I=Object.create(cA.prototype);return I.__wbg_ptr=A,YA.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,YA.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawrigidbodyset_free(I,0)}rbTranslation(I){const g=A.rawrigidbodyset_rbTranslation(this.__wbg_ptr,I);return bA.__wrap(g)}rbRotation(I){const g=A.rawrigidbodyset_rbRotation(this.__wbg_ptr,I);return tA.__wrap(g)}rbSleep(I){A.rawrigidbodyset_rbSleep(this.__wbg_ptr,I)}rbIsSleeping(I){return 0!==A.rawrigidbodyset_rbIsSleeping(this.__wbg_ptr,I)}rbIsMoving(I){return 0!==A.rawrigidbodyset_rbIsMoving(this.__wbg_ptr,I)}rbNextTranslation(I){const g=A.rawrigidbodyset_rbNextTranslation(this.__wbg_ptr,I);return bA.__wrap(g)}rbNextRotation(I){const g=A.rawrigidbodyset_rbNextRotation(this.__wbg_ptr,I);return tA.__wrap(g)}rbSetTranslation(I,g,C,Q){A.rawrigidbodyset_rbSetTranslation(this.__wbg_ptr,I,g,C,Q)}rbSetRotation(I,g,C){A.rawrigidbodyset_rbSetRotation(this.__wbg_ptr,I,g,C)}rbSetLinvel(I,g,C){S(g,bA),A.rawrigidbodyset_rbSetLinvel(this.__wbg_ptr,I,g.__wbg_ptr,C)}rbSetAngvel(I,g,C){A.rawrigidbodyset_rbSetAngvel(this.__wbg_ptr,I,g,C)}rbSetNextKinematicTranslation(I,g,C){A.rawrigidbodyset_rbSetNextKinematicTranslation(this.__wbg_ptr,I,g,C)}rbSetNextKinematicRotation(I,g){A.rawrigidbodyset_rbSetNextKinematicRotation(this.__wbg_ptr,I,g)}rbRecomputeMassPropertiesFromColliders(I,g){S(g,d),A.rawrigidbodyset_rbRecomputeMassPropertiesFromColliders(this.__wbg_ptr,I,g.__wbg_ptr)}rbSetAdditionalMass(I,g,C){A.rawrigidbodyset_rbSetAdditionalMass(this.__wbg_ptr,I,g,C)}rbSetAdditionalMassProperties(I,g,C,Q,B){S(C,bA),A.rawrigidbodyset_rbSetAdditionalMassProperties(this.__wbg_ptr,I,g,C.__wbg_ptr,Q,B)}rbLinvel(I){const g=A.rawrigidbodyset_rbLinvel(this.__wbg_ptr,I);return bA.__wrap(g)}rbAngvel(I){return A.rawrigidbodyset_rbAngvel(this.__wbg_ptr,I)}rbVelocityAtPoint(I,g){S(g,bA);const C=A.rawrigidbodyset_rbVelocityAtPoint(this.__wbg_ptr,I,g.__wbg_ptr);return bA.__wrap(C)}rbLockTranslations(I,g,C){A.rawrigidbodyset_rbLockTranslations(this.__wbg_ptr,I,g,C)}rbSetEnabledTranslations(I,g,C,Q){A.rawrigidbodyset_rbSetEnabledTranslations(this.__wbg_ptr,I,g,C,Q)}rbLockRotations(I,g,C){A.rawrigidbodyset_rbLockRotations(this.__wbg_ptr,I,g,C)}rbDominanceGroup(I){return A.rawrigidbodyset_rbDominanceGroup(this.__wbg_ptr,I)}rbSetDominanceGroup(I,g){A.rawrigidbodyset_rbSetDominanceGroup(this.__wbg_ptr,I,g)}rbEnableCcd(I,g){A.rawrigidbodyset_rbEnableCcd(this.__wbg_ptr,I,g)}rbSetSoftCcdPrediction(I,g){A.rawrigidbodyset_rbSetSoftCcdPrediction(this.__wbg_ptr,I,g)}rbMass(I){return A.rawrigidbodyset_rbMass(this.__wbg_ptr,I)}rbInvMass(I){return A.rawrigidbodyset_rbInvMass(this.__wbg_ptr,I)}rbEffectiveInvMass(I){const g=A.rawrigidbodyset_rbEffectiveInvMass(this.__wbg_ptr,I);return bA.__wrap(g)}rbLocalCom(I){const g=A.rawrigidbodyset_rbLocalCom(this.__wbg_ptr,I);return bA.__wrap(g)}rbWorldCom(I){const g=A.rawrigidbodyset_rbWorldCom(this.__wbg_ptr,I);return bA.__wrap(g)}rbInvPrincipalInertia(I){return A.rawrigidbodyset_rbInvPrincipalInertia(this.__wbg_ptr,I)}rbPrincipalInertia(I){return A.rawrigidbodyset_rbPrincipalInertia(this.__wbg_ptr,I)}rbEffectiveWorldInvInertia(I){return A.rawrigidbodyset_rbEffectiveWorldInvInertia(this.__wbg_ptr,I)}rbEffectiveAngularInertia(I){return A.rawrigidbodyset_rbEffectiveAngularInertia(this.__wbg_ptr,I)}rbWakeUp(I){A.rawrigidbodyset_rbWakeUp(this.__wbg_ptr,I)}rbIsCcdEnabled(I){return 0!==A.rawrigidbodyset_rbIsCcdEnabled(this.__wbg_ptr,I)}rbSoftCcdPrediction(I){return A.rawrigidbodyset_rbSoftCcdPrediction(this.__wbg_ptr,I)}rbNumColliders(I){return A.rawrigidbodyset_rbNumColliders(this.__wbg_ptr,I)>>>0}rbCollider(I,g){return A.rawrigidbodyset_rbCollider(this.__wbg_ptr,I,g)}rbB