@dimforge/rapier2d-compat
Version:
2-dimensional physics engine in Rust - official JS bindings. Compatibility package with inlined webassembly as base64.
1 lines • 1.84 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))}}function E(A){return null==A}let i=null;function D(){return(null===i||!0===i.buffer.detached||void 0===i.buffer.detached&&i.buffer!==A.memory.buffer)&&(i=new DataView(A.memory.buffer)),i}function o(A){const Q=g(A);return function(A){A<132||(I[A]=C,C=A)}(A),Q}const w="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&w.decode();let G=null;function K(I,g){return I>>>=0,w.decode((null!==G&&0!==G.byteLength||(G=new Uint8Array(A.memory.buffer)),G).subarray(I,I+g))}function S(A,I){if(!(A instanceof I))throw new Error(`expected instance of ${I.name}`)}let h=128;function N(A){if(1==h)throw new Error("out of js stack");return I[--h]=A,h}let y=null;function k(I,g){return I>>>=0,(null!==y&&0!==y.byteLength||(y=new Int32Array(A.memory.buffer)),y).subarray(I/4,I/4+g)}let F=null;function s(){return null!==F&&0!==F.byteLength||(F=new Float32Array(A.memory.buffer)),F}function a(A,I){return A>>>=0,s().subarray(A/4,A/4+I)}let M=null;function J(){return null!==M&&0!==M.byteLength||(M=new Uint32Array(A.memory.buffer)),M}let U=0;function R(A,I){const g=I(4*A.length,4)>>>0;return J().set(A,g/4),U=A.length,g}function c(A,I){const g=I(4*A.length,4)>>>0;return s().set(A,g/4),U=A.length,g}Object.freeze({Vertex:0,0:"Vertex",Face:1,1:"Face",Unknown:2,2:"Unknown"});const Y=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 q=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"}),t="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawbroadphase_free(I>>>0,1)));class H{static __wrap(A){A>>>=0;const I=Object.create(H.prototype);return I.__wbg_ptr=A,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_rawbroadphase_free(I,0)}constructor(){const I=A.rawbroadphase_new();return this.__wbg_ptr=I>>>0,t.register(this,this.__wbg_ptr,this),this}}const r="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawccdsolver_free(I>>>0,1)));class p{__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 e{__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 jA.__wrap(I)}translationDeltaRemaining(){const I=A.rawcharactercollision_translationDeltaRemaining(this.__wbg_ptr);return jA.__wrap(I)}toi(){return A.rawcharactercollision_toi(this.__wbg_ptr)}worldWitness1(){const I=A.rawcharactercollision_worldWitness1(this.__wbg_ptr);return jA.__wrap(I)}worldWitness2(){const I=A.rawcharactercollision_worldWitness2(this.__wbg_ptr);return jA.__wrap(I)}worldNormal1(){const I=A.rawcharactercollision_worldNormal1(this.__wbg_ptr);return jA.__wrap(I)}worldNormal2(){const I=A.rawcharactercollision_worldNormal2(this.__wbg_ptr);return jA.__wrap(I)}}const n="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,n.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,n.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawcolliderset_free(I,0)}coTranslation(I){const g=A.rawcolliderset_coTranslation(this.__wbg_ptr,I);return jA.__wrap(g)}coRotation(I){const g=A.rawcolliderset_coRotation(this.__wbg_ptr,I);return HA.__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:jA.__wrap(g)}coHalfExtents(I){const g=A.rawcolliderset_coHalfExtents(this.__wbg_ptr,I);return 0===g?void 0:jA.__wrap(g)}coSetHalfExtents(I,g){S(g,jA),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=D().getInt32(Q+0,!0),C=D().getInt32(Q+4,!0);let B;return 0!==g&&(B=k(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:jA.__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=D().getInt32(Q+0,!0),C=D().getInt32(Q+4,!0);let B;return 0!==g&&(B=a(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=D().getInt32(Q+0,!0),C=D().getInt32(Q+4,!0);let B;return 0!==g&&(B=function(A,I){return A>>>=0,J().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=D().getInt32(Q+0,!0),C=D().getInt32(Q+4,!0);let B;return 0!==g&&(B=a(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:jA.__wrap(g)}coParent(I){try{const Q=A.__wbindgen_add_to_stack_pointer(-16);A.rawcolliderset_coParent(Q,this.__wbg_ptr,I);var g=D().getInt32(Q+0,!0),C=D().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,jA);return 0!==A.rawcolliderset_coContainsPoint(this.__wbg_ptr,I,g.__wbg_ptr)}coCastShape(I,g,C,Q,B,E,i,D,o){S(g,jA),S(C,eA),S(Q,jA),S(B,HA),S(E,jA);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:dA.__wrap(w)}coCastCollider(I,g,C,Q,B,E,i){S(g,jA),S(Q,jA);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,jA),S(Q,HA);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,jA),S(Q,HA);const E=A.rawcolliderset_coContactShape(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,B);return 0===E?void 0:bA.__wrap(E)}coContactCollider(I,g,C){const Q=A.rawcolliderset_coContactCollider(this.__wbg_ptr,I,g,C);return 0===Q?void 0:bA.__wrap(Q)}coProjectPoint(I,g,C){S(g,jA);const Q=A.rawcolliderset_coProjectPoint(this.__wbg_ptr,I,g.__wbg_ptr,C);return FA.__wrap(Q)}coIntersectsRay(I,g,C,Q){S(g,jA),S(C,jA);return 0!==A.rawcolliderset_coIntersectsRay(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,Q)}coCastRay(I,g,C,Q,B){S(g,jA),S(C,jA);return A.rawcolliderset_coCastRay(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,Q,B)}coCastRayAndGetNormal(I,g,C,Q,B){S(g,jA),S(C,jA);const E=A.rawcolliderset_coCastRayAndGetNormal(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,Q,B);return 0===E?void 0:YA.__wrap(E)}coSetSensor(I,g){A.rawcolliderset_coSetSensor(this.__wbg_ptr,I,g)}coSetRestitution(I,g){A.rawcolliderset_coSetRestitution(this.__wbg_ptr,I,g)}coSetFriction(I,g){A.rawcolliderset_coSetFriction(this.__wbg_ptr,I,g)}coFrictionCombineRule(I){return A.rawcolliderset_coFrictionCombineRule(this.__wbg_ptr,I)>>>0}coSetFrictionCombineRule(I,g){A.rawcolliderset_coSetFrictionCombineRule(this.__wbg_ptr,I,g)}coRestitutionCombineRule(I){return A.rawcolliderset_coRestitutionCombineRule(this.__wbg_ptr,I)>>>0}coSetRestitutionCombineRule(I,g){A.rawcolliderset_coSetRestitutionCombineRule(this.__wbg_ptr,I,g)}coSetCollisionGroups(I,g){A.rawcolliderset_coSetCollisionGroups(this.__wbg_ptr,I,g)}coSetSolverGroups(I,g){A.rawcolliderset_coSetSolverGroups(this.__wbg_ptr,I,g)}coSetActiveHooks(I,g){A.rawcolliderset_coSetActiveHooks(this.__wbg_ptr,I,g)}coSetActiveEvents(I,g){A.rawcolliderset_coSetActiveEvents(this.__wbg_ptr,I,g)}coSetActiveCollisionTypes(I,g){A.rawcolliderset_coSetActiveCollisionTypes(this.__wbg_ptr,I,g)}coSetShape(I,g){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,jA),A.rawcolliderset_coSetMassProperties(this.__wbg_ptr,I,g,C.__wbg_ptr,Q)}constructor(){const I=A.rawcolliderset_new();return this.__wbg_ptr=I>>>0,n.register(this,this.__wbg_ptr,this),this}len(){return A.rawcolliderset_len(this.__wbg_ptr)>>>0}contains(I){return 0!==A.rawcolliderset_contains(this.__wbg_ptr,I)}createCollider(I,g,C,Q,B,E,i,o,w,G,K,h,N,y,k,F,s,a,M,J,U,R,c,Y){try{const t=A.__wbindgen_add_to_stack_pointer(-16);S(g,eA),S(C,jA),S(Q,HA),S(i,jA),S(Y,qA),A.rawcolliderset_createCollider(t,this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,B,E,i.__wbg_ptr,o,w,G,K,h,N,y,k,F,s,a,M,J,U,R,c,Y.__wbg_ptr);var L=D().getInt32(t+0,!0),q=D().getFloat64(t+8,!0);return 0===L?void 0:q}finally{A.__wbindgen_add_to_stack_pointer(16)}}remove(I,g,C,Q){S(g,QA),S(C,qA),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,N(g))}finally{I[h++]=void 0}}}const T="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,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_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 jA.__wrap(I)}witness2(){const I=A.rawcollidershapecasthit_witness2(this.__wbg_ptr);return jA.__wrap(I)}normal1(){const I=A.rawcollidershapecasthit_normal1(this.__wbg_ptr);return jA.__wrap(I)}normal2(){const I=A.rawcollidershapecasthit_normal2(this.__wbg_ptr);return jA.__wrap(I)}}const x="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawcontactforceevent_free(I>>>0,1)));class j{static __wrap(A){A>>>=0;const I=Object.create(j.prototype);return I.__wbg_ptr=A,x.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,x.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_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 jA.__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 jA.__wrap(I)}max_force_magnitude(){return A.rawcontactforceevent_max_force_magnitude(this.__wbg_ptr)}}const Z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawcontactmanifold_free(I>>>0,1)));class W{static __wrap(A){A>>>=0;const I=Object.create(W.prototype);return I.__wbg_ptr=A,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_rawcontactmanifold_free(I,0)}normal(){const I=A.rawcontactmanifold_normal(this.__wbg_ptr);return jA.__wrap(I)}local_n1(){const I=A.rawcontactmanifold_local_n1(this.__wbg_ptr);return jA.__wrap(I)}local_n2(){const I=A.rawcontactmanifold_local_n2(this.__wbg_ptr);return jA.__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:jA.__wrap(g)}contact_local_p2(I){const g=A.rawcontactmanifold_contact_local_p2(this.__wbg_ptr,I);return 0===g?void 0:jA.__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:jA.__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 jA.__wrap(g)}}const O="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawcontactpair_free(I>>>0,1)));class f{static __wrap(A){A>>>=0;const I=Object.create(f.prototype);return I.__wbg_ptr=A,O.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,O.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawcontactpair_free(I,0)}collider1(){return A.rawcontactpair_collider1(this.__wbg_ptr)}collider2(){return A.rawcontactpair_collider2(this.__wbg_ptr)}numContactManifolds(){return A.rawcontactpair_numContactManifolds(this.__wbg_ptr)>>>0}contactManifold(I){const g=A.rawcontactpair_contactManifold(this.__wbg_ptr,I);return 0===g?void 0:W.__wrap(g)}}const X="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawdebugrenderpipeline_free(I>>>0,1)));class m{__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawdebugrenderpipeline_free(I,0)}constructor(){const I=A.rawdebugrenderpipeline_new();return this.__wbg_ptr=I>>>0,X.register(this,this.__wbg_ptr,this),this}vertices(){return o(A.rawdebugrenderpipeline_vertices(this.__wbg_ptr))}colors(){return o(A.rawdebugrenderpipeline_colors(this.__wbg_ptr))}render(g,C,Q,B,E,i,D){try{S(g,qA),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,N(D))}finally{I[h++]=void 0}}}const V="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,V.register(I,I.__wbg_ptr,I),I}__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_rawdeserializedworld_free(I,0)}takeGravity(){const I=A.rawdeserializedworld_takeGravity(this.__wbg_ptr);return 0===I?void 0:jA.__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:H.__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:qA.__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 P="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_raweventqueue_free(I>>>0,1)));class z{__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_raweventqueue_free(I,0)}constructor(I){const g=A.raweventqueue_new(I);return this.__wbg_ptr=g>>>0,P.register(this,this.__wbg_ptr,this),this}drainCollisionEvents(g){try{A.raweventqueue_drainCollisionEvents(this.__wbg_ptr,N(g))}finally{I[h++]=void 0}}drainContactForceEvents(g){try{A.raweventqueue_drainContactForceEvents(this.__wbg_ptr,N(g))}finally{I[h++]=void 0}}clear(){A.raweventqueue_clear(this.__wbg_ptr)}}const u="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,u.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,u.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawgenericjoint_free(I,0)}static spring(I,g,C,Q,B){S(Q,jA),S(B,jA);const E=A.rawgenericjoint_spring(I,g,C,Q.__wbg_ptr,B.__wbg_ptr);return _.__wrap(E)}static rope(I,g,C){S(g,jA),S(C,jA);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,jA),S(g,jA),S(C,jA);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,jA),S(g,HA),S(C,jA),S(Q,HA);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,jA),S(g,jA);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 HA.__wrap(g)}jointFrameX2(I){const g=A.rawimpulsejointset_jointFrameX2(this.__wbg_ptr,I);return HA.__wrap(g)}jointAnchor1(I){const g=A.rawimpulsejointset_jointAnchor1(this.__wbg_ptr,I);return jA.__wrap(g)}jointAnchor2(I){const g=A.rawimpulsejointset_jointAnchor2(this.__wbg_ptr,I);return jA.__wrap(g)}jointSetAnchor1(I,g){S(g,jA),A.rawimpulsejointset_jointSetAnchor1(this.__wbg_ptr,I,g.__wbg_ptr)}jointSetAnchor2(I,g){S(g,jA),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,N(g))}finally{I[h++]=void 0}}forEachJointAttachedToRigidBody(g,C){try{A.rawimpulsejointset_forEachJointAttachedToRigidBody(this.__wbg_ptr,g,N(C))}finally{I[h++]=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_max_force_magnitude(this.__wbg_ptr)}get normalizedPredictionDistance(){return A.rawintegrationparameters_normalizedPredictionDistance(this.__wbg_ptr)}get numSolverIterations(){return A.rawintegrationparameters_numSolverIterations(this.__wbg_ptr)>>>0}get numAdditionalFrictionIterations(){return A.rawintegrationparameters_numAdditionalFrictionIterations(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.rawcontactforceevent_total_force_magnitude(this.__wbg_ptr)}set dt(I){A.rawintegrationparameters_set_dt(this.__wbg_ptr,I)}set contact_natural_frequency(I){A.rawintegrationparameters_set_contact_natural_frequency(this.__wbg_ptr,I)}set normalizedAllowedLinearError(I){A.rawintegrationparameters_set_normalizedAllowedLinearError(this.__wbg_ptr,I)}set normalizedPredictionDistance(I){A.rawintegrationparameters_set_normalizedPredictionDistance(this.__wbg_ptr,I)}set numSolverIterations(I){A.rawintegrationparameters_set_numSolverIterations(this.__wbg_ptr,I)}set numAdditionalFrictionIterations(I){A.rawintegrationparameters_set_numAdditionalFrictionIterations(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)}switchToStandardPgsSolver(){A.rawintegrationparameters_switchToStandardPgsSolver(this.__wbg_ptr)}switchToSmallStepsPgsSolver(){A.rawintegrationparameters_switchToSmallStepsPgsSolver(this.__wbg_ptr)}switchToSmallStepsPgsSolverWithoutWarmstart(){A.rawintegrationparameters_switchToSmallStepsPgsSolverWithoutWarmstart(this.__wbg_ptr)}}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,N(g))}finally{I[h++]=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 jA.__wrap(I)}setUp(I){S(I,jA),A.rawkinematiccharactercontroller_setUp(this.__wbg_ptr,I.__wbg_ptr)}normalNudgeFactor(){return A.rawkinematiccharactercontroller_normalNudgeFactor(this.__wbg_ptr)}setNormalNudgeFactor(I){A.rawkinematiccharactercontroller_setNormalNudgeFactor(this.__wbg_ptr,I)}offset(){return A.rawintegrationparameters_dt(this.__wbg_ptr)}setOffset(I){A.rawkinematiccharactercontroller_setOffset(this.__wbg_ptr,I)}slideEnabled(){return 0!==A.rawkinematiccharactercontroller_slideEnabled(this.__wbg_ptr)}setSlideEnabled(I){A.rawkinematiccharactercontroller_setSlideEnabled(this.__wbg_ptr,I)}autostepMaxHeight(){const I=A.rawkinematiccharactercontroller_autostepMaxHeight(this.__wbg_ptr);return 4294967297===I?void 0:I}autostepMinWidth(){const I=A.rawkinematiccharactercontroller_autostepMinWidth(this.__wbg_ptr);return 4294967297===I?void 0:I}autostepIncludesDynamicBodies(){const I=A.rawkinematiccharactercontroller_autostepIncludesDynamicBodies(this.__wbg_ptr);return 16777215===I?void 0:0!==I}autostepEnabled(){return 0!==A.rawkinematiccharactercontroller_autostepEnabled(this.__wbg_ptr)}enableAutostep(I,g,C){A.rawkinematiccharactercontroller_enableAutostep(this.__wbg_ptr,I,g,C)}disableAutostep(){A.rawkinematiccharactercontroller_disableAutostep(this.__wbg_ptr)}maxSlopeClimbAngle(){return A.rawintegrationparameters_normalizedPredictionDistance(this.__wbg_ptr)}setMaxSlopeClimbAngle(I){A.rawintegrationparameters_set_normalizedPredictionDistance(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,i,D,o,w,G,K,y){try{S(C,qA),S(Q,d),S(B,aA),S(D,jA),A.rawkinematiccharactercontroller_computeColliderMovement(this.__wbg_ptr,g,C.__wbg_ptr,Q.__wbg_ptr,B.__wbg_ptr,i,D.__wbg_ptr,o,E(w)?4294967297:Math.fround(w),G,E(K)?4294967297:K>>>0,N(y))}finally{I[h++]=void 0}}computedMovement(){const I=A.rawkinematiccharactercontroller_computedMovement(this.__wbg_ptr);return jA.__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,e);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 HA.__wrap(g)}jointFrameX2(I){const g=A.rawmultibodyjointset_jointFrameX2(this.__wbg_ptr,I);return HA.__wrap(g)}jointAnchor1(I){const g=A.rawmultibodyjointset_jointAnchor1(this.__wbg_ptr,I);return jA.__wrap(g)}jointAnchor2(I){const g=A.rawmultibodyjointset_jointAnchor2(this.__wbg_ptr,I);return jA.__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,N(g))}finally{I[h++]=void 0}}forEachJointAttachedToRigidBody(g,C){try{A.rawmultibodyjointset_forEachJointAttachedToRigidBody(this.__wbg_ptr,g,N(C))}finally{I[h++]=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:f.__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 KA{__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}step(I,g,C,Q,B,E,i,D,o,w){S(I,jA),S(g,gA),S(C,QA),S(Q,H),S(B,wA),S(E,qA),S(i,d),S(D,AA),S(o,DA),S(w,p),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,K,h,N,y){S(I,jA),S(g,gA),S(C,QA),S(B,H),S(E,wA),S(i,qA),S(D,d),S(o,AA),S(w,DA),S(G,p),S(K,z),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,K.__wbg_ptr,Q(h),Q(N),Q(y))}}const SA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawpidcontroller_free(I>>>0,1)));class hA{__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,qA),S(Q,jA),S(B,jA),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,qA),A.rawpidcontroller_apply_angular_correction(this.__wbg_ptr,I,g.__wbg_ptr,C,Q,B)}linear_correction(I,g,C,Q,B){S(g,qA),S(Q,jA),S(B,jA);const E=A.rawpidcontroller_linear_correction(this.__wbg_ptr,I,g.__wbg_ptr,C,Q.__wbg_ptr,B.__wbg_ptr);return jA.__wrap(E)}angular_correction(I,g,C,Q,B){S(g,qA);return A.rawpidcontroller_angular_correction(this.__wbg_ptr,I,g.__wbg_ptr,C,Q,B)}}const NA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawpointcolliderprojection_free(I>>>0,1)));class yA{static __wrap(A){A>>>=0;const I=Object.create(yA.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_rawpointcolliderprojection_free(I,0)}colliderHandle(){return A.rawpointcolliderprojection_colliderHandle(this.__wbg_ptr)}point(){const I=A.rawpointcolliderprojection_point(this.__wbg_ptr);return jA.__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 kA="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,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_rawpointprojection_free(I,0)}point(){const I=A.rawpointprojection_point(this.__wbg_ptr);return jA.__wrap(I)}isInside(){return 0!==A.rawpointprojection_isInside(this.__wbg_ptr)}}const sA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawquerypipeline_free(I>>>0,1)));class aA{__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_rawquerypipeline_free(I,0)}constructor(){const I=A.rawquerypipeline_new();return this.__wbg_ptr=I>>>0,sA.register(this,this.__wbg_ptr,this),this}update(I){S(I,d),A.rawquerypipeline_update(this.__wbg_ptr,I.__wbg_ptr)}castRay(g,C,Q,B,i,D,o,w,G,K,y){try{S(g,qA),S(C,d),S(Q,jA),S(B,jA);const k=A.rawquerypipeline_castRay(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,B.__wbg_ptr,i,D,o,E(w)?4294967297:w>>>0,!E(G),E(G)?0:G,!E(K),E(K)?0:K,N(y));return 0===k?void 0:JA.__wrap(k)}finally{I[h++]=void 0}}castRayAndGetNormal(g,C,Q,B,i,D,o,w,G,K,y){try{S(g,qA),S(C,d),S(Q,jA),S(B,jA);const k=A.rawquerypipeline_castRayAndGetNormal(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,B.__wbg_ptr,i,D,o,E(w)?4294967297:w>>>0,!E(G),E(G)?0:G,!E(K),E(K)?0:K,N(y));return 0===k?void 0:RA.__wrap(k)}finally{I[h++]=void 0}}intersectionsWithRay(g,C,Q,B,i,D,o,w,G,K,y,k){try{S(g,qA),S(C,d),S(Q,jA),S(B,jA),A.rawquerypipeline_intersectionsWithRay(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,B.__wbg_ptr,i,D,N(o),w,E(G)?4294967297:G>>>0,!E(K),E(K)?0:K,!E(y),E(y)?0:y,N(k))}finally{I[h++]=void 0,I[h++]=void 0}}intersectionWithShape(g,C,Q,B,i,o,w,G,K,y){try{const s=A.__wbindgen_add_to_stack_pointer(-16);S(g,qA),S(C,d),S(Q,jA),S(B,HA),S(i,eA),A.rawquerypipeline_intersectionWithShape(s,this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,B.__wbg_ptr,i.__wbg_ptr,o,E(w)?4294967297:w>>>0,!E(G),E(G)?0:G,!E(K),E(K)?0:K,N(y));var k=D().getInt32(s+0,!0),F=D().getFloat64(s+8,!0);return 0===k?void 0:F}finally{A.__wbindgen_add_to_stack_pointer(16),I[h++]=void 0}}projectPoint(g,C,Q,B,i,D,o,w,G){try{S(g,qA),S(C,d),S(Q,jA);const K=A.rawquerypipeline_projectPoint(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,B,i,E(D)?4294967297:D>>>0,!E(o),E(o)?0:o,!E(w),E(w)?0:w,N(G));return 0===K?void 0:yA.__wrap(K)}finally{I[h++]=void 0}}projectPointAndGetFeature(g,C,Q,B,i,D,o,w){try{S(g,qA),S(C,d),S(Q,jA);const G=A.rawquerypipeline_projectPointAndGetFeature(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,B,E(i)?4294967297:i>>>0,!E(D),E(D)?0:D,!E(o),E(o)?0:o,N(w));return 0===G?void 0:yA.__wrap(G)}finally{I[h++]=void 0}}intersectionsWithPoint(g,C,Q,B,i,D,o,w,G){try{S(g,qA),S(C,d),S(Q,jA),A.rawquerypipeline_intersectionsWithPoint(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,N(B),i,E(D)?4294967297:D>>>0,!E(o),E(o)?0:o,!E(w),E(w)?0:w,N(G))}finally{I[h++]=void 0,I[h++]=void 0}}castShape(g,C,Q,B,i,D,o,w,G,K,y,k,F,s){try{S(g,qA),S(C,d),S(Q,jA),S(B,HA),S(i,jA),S(D,eA);const a=A.rawquerypipeline_castShape(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,B.__wbg_ptr,i.__wbg_ptr,D.__wbg_ptr,o,w,G,K,E(y)?4294967297:y>>>0,!E(k),E(k)?0:k,!E(F),E(F)?0:F,N(s));return 0===a?void 0:b.__wrap(a)}finally{I[h++]=void 0}}intersectionsWithShape(g,C,Q,B,i,D,o,w,G,K,y){try{S(g,qA),S(C,d),S(Q,jA),S(B,HA),S(i,eA),A.rawquerypipeline_intersectionsWithShape(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,B.__wbg_ptr,i.__wbg_ptr,N(D),o,E(w)?4294967297:w>>>0,!E(G),E(G)?0:G,!E(K),E(K)?0:K,N(y))}finally{I[h++]=void 0,I[h++]=void 0}}collidersWithAabbIntersectingAabb(g,C,Q){try{S(g,jA),S(C,jA),A.rawquerypipeline_collidersWithAabbIntersectingAabb(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,N(Q))}finally{I[h++]=void 0}}}const MA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawraycolliderhit_free(I>>>0,1)));class JA{static __wrap(A){A>>>=0;const I=Object.create(JA.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_rawraycolliderhit_free(I,0)}colliderHandle(){return A.rawcollidershapecasthit_colliderHandle(this.__wbg_ptr)}timeOfImpact(){return A.rawcollidershapecasthit_time_of_impact(this.__wbg_ptr)}}const UA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawraycolliderintersection_free(I>>>0,1)));class RA{static __wrap(A){A>>>=0;const I=Object.create(RA.prototype);return I.__wbg_ptr=A,UA.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,UA.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 jA.__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 cA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawrayintersection_free(I>>>0,1)));class YA{static __wrap(A){A>>>=0;const I=Object.create(YA.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_rawrayintersection_free(I,0)}normal(){const I=A.rawcollidershapecasthit_witness1(this.__wbg_ptr);return jA.__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 LA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawrigidbodyset_free(I>>>0,1)));class qA{static __wrap(A){A>>>=0;const I=Object.create(qA.prototype);return I.__wbg_ptr=A,LA.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,LA.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 jA.__wrap(g)}rbRotation(I){const g=A.rawrigidbodyset_rbRotation(this.__wbg_ptr,I);return HA.__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 jA.__wrap(g)}rbNextRotation(I){const g=A.rawrigidbodyset_rbNextRotation(this.__wbg_ptr,I);return HA.__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,jA),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,jA),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 jA.__wrap(g)}rbAngvel(I){return A.rawrigidbodyset_rbAngvel(this.__wbg_ptr,I)}rbVelocityAtPoint(I,g){S(g,jA);const C=A.rawrigidbodyset_rbVelocityAtPoint(this.__wbg_ptr,I,g.__wbg_ptr);return jA.__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 jA.__wrap(g)}rbLocalCom(I){const g=A.rawrigidbodyset_rbLocalCom(this.__wbg_ptr,I);return jA.__wrap(g)}rbWorldCom(I){const g=A.rawrigidbodyset_rbWorldCom(this.__wbg_ptr,I);return jA.__wrap(g)}rbInvPrincipalInertiaSqrt(I){return A.rawrigidbodyset_rbInvPrincipalInertiaSqrt(this.__wbg_ptr,I)}rbPrincipalInertia(I){return A.rawrigidbodyset_rbPrincipalInertia(this.__wbg_ptr,I)}rbEffectiveWorldInvInertiaSqrt(I){return A.rawrigidbodyset_rbEffectiveWorldInvInertiaSqrt(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)}rbBodyType(I){return A.rawrigidbodyset_rbBodyType(this.__wbg_ptr,I)}rbSetBodyType(I,g,C){A.rawrigidbodyset_rbSetBodyType(this.__wbg_ptr,I,g,C)}rbIsFixed(I){return 0!==A.rawrigidbodyset_rbIsFixed(this.__wbg_ptr,I)}rbIsKinematic(I){return 0!==A.rawrigidbodyset_rbIsKinematic(this.__wbg_ptr,I)}rbIsDynamic(I){return 0!==A.rawrigidbodyset_rbIsDynamic(this.__wbg_ptr,I)}rbLinearDamping(I){return A.rawrigidbodyset_rbLinearDamping(this.__wbg_ptr,I)}rbAngularDamping(I){return A.rawrigidbodyset_rbAngularDamping(this.__wbg_ptr,I)}rbSetLinearDamping(I,g){A.rawrigidbodyset_rbSetLinearDamping(this.__wbg_ptr,I,g)}rbSetAngularDamping(I,g){A.rawrigidbodyset_rbSetAngularDamping(this.__wbg_ptr,I,g)}rbSetEnabled(I,g){A.rawrigidbodyset_rbSetEnabled(this.__wbg_ptr,I,g)}rbIsEnabled(I){return 0!==A.rawrigidbodyset_rbIsEnabled(this.__wbg_ptr,I)}rbGravityScale(I){return A.rawrigidbodyset_rbGravityScale(this.__wbg_ptr,I)}rbSetGravityScale(I,g,C){A.rawrigidbodyset_rbSetGr