UNPKG

@dimforge/rapier2d-compat

Version:

2-dimensional physics engine in Rust - official JS bindings. Compatibility package with inlined webassembly as base64.

1 lines 1.6 MB
"use strict";let A;Object.defineProperty(exports,"__esModule",{value:!0});const I=new Array(128).fill(void 0);function g(A){return I[A]}I.push(void 0,null,!0,!1);let C=I.length;function B(A){C===I.length&&I.push(I.length+1);const g=C;return C=I[g],I[g]=A,g}function Q(I,g){try{return I.apply(this,g)}catch(I){A.__wbindgen_export_0(B(I))}}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 B=g(A);return function(A){A<132||(I[A]=C,C=A)}(A),B}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 h(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 K=128;function y(A){if(1==K)throw new Error("out of js stack");return I[--K]=A,K}let s=null;function N(){return null!==s&&0!==s.byteLength||(s=new Float32Array(A.memory.buffer)),s}function M(A,I){return A>>>=0,N().subarray(A/4,A/4+I)}let F=null;function k(){return null!==F&&0!==F.byteLength||(F=new Uint32Array(A.memory.buffer)),F}let a=0;function R(A,I){const g=I(4*A.length,4)>>>0;return N().set(A,g/4),a=A.length,g}function J(A,I){const g=I(4*A.length,4)>>>0;return k().set(A,g/4),a=A.length,g}Object.freeze({Vertex:0,0:"Vertex",Face:1,1:"Face",Unknown:2,2:"Unknown"});const U=Object.freeze({LinX:0,0:"LinX",LinY:1,1:"LinY",AngX:2,2:"AngX"}),c=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 Y=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"}),L="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawbroadphase_free(I>>>0,1)));class t{static __wrap(A){A>>>=0;const I=Object.create(t.prototype);return I.__wbg_ptr=A,L.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,L.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawbroadphase_free(I,0)}constructor(){const I=A.rawbroadphase_new();return this.__wbg_ptr=I>>>0,L.register(this,this.__wbg_ptr,this),this}}const q="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawccdsolver_free(I>>>0,1)));class r{__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,q.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,q.register(this,this.__wbg_ptr,this),this}}const H="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawcharactercollision_free(I>>>0,1)));class l{__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_rawcharactercollision_free(I,0)}constructor(){const I=A.rawcharactercollision_new();return this.__wbg_ptr=I>>>0,H.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 TA.__wrap(I)}translationDeltaRemaining(){const I=A.rawcharactercollision_translationDeltaRemaining(this.__wbg_ptr);return TA.__wrap(I)}toi(){return A.rawcharactercollision_toi(this.__wbg_ptr)}worldWitness1(){const I=A.rawcharactercollision_worldWitness1(this.__wbg_ptr);return TA.__wrap(I)}worldWitness2(){const I=A.rawcharactercollision_worldWitness2(this.__wbg_ptr);return TA.__wrap(I)}worldNormal1(){const I=A.rawcharactercollision_worldNormal1(this.__wbg_ptr);return TA.__wrap(I)}worldNormal2(){const I=A.rawcharactercollision_worldNormal2(this.__wbg_ptr);return TA.__wrap(I)}}const e="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawcolliderset_free(I>>>0,1)));class p{static __wrap(A){A>>>=0;const I=Object.create(p.prototype);return I.__wbg_ptr=A,e.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,e.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 TA.__wrap(g)}coRotation(I){const g=A.rawcolliderset_coRotation(this.__wbg_ptr,I);return 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:TA.__wrap(g)}coHalfExtents(I){const g=A.rawcolliderset_coHalfExtents(this.__wbg_ptr,I);return 0===g?void 0:TA.__wrap(g)}coSetHalfExtents(I,g){S(g,TA),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)}coVertices(I){try{const B=A.__wbindgen_add_to_stack_pointer(-16);A.rawcolliderset_coVertices(B,this.__wbg_ptr,I);var g=D().getInt32(B+0,!0),C=D().getInt32(B+4,!0);let Q;return 0!==g&&(Q=M(g,C).slice(),A.__wbindgen_export_1(g,4*C,4)),Q}finally{A.__wbindgen_add_to_stack_pointer(16)}}coIndices(I){try{const B=A.__wbindgen_add_to_stack_pointer(-16);A.rawcolliderset_coIndices(B,this.__wbg_ptr,I);var g=D().getInt32(B+0,!0),C=D().getInt32(B+4,!0);let Q;return 0!==g&&(Q=function(A,I){return A>>>=0,k().subarray(A/4,A/4+I)}(g,C).slice(),A.__wbindgen_export_1(g,4*C,4)),Q}finally{A.__wbindgen_add_to_stack_pointer(16)}}coTriMeshFlags(I){const g=A.rawcolliderset_coTriMeshFlags(this.__wbg_ptr,I);return 4294967297===g?void 0:g}coHeightfieldHeights(I){try{const B=A.__wbindgen_add_to_stack_pointer(-16);A.rawcolliderset_coHeightfieldHeights(B,this.__wbg_ptr,I);var g=D().getInt32(B+0,!0),C=D().getInt32(B+4,!0);let Q;return 0!==g&&(Q=M(g,C).slice(),A.__wbindgen_export_1(g,4*C,4)),Q}finally{A.__wbindgen_add_to_stack_pointer(16)}}coHeightfieldScale(I){const g=A.rawcolliderset_coHeightfieldScale(this.__wbg_ptr,I);return 0===g?void 0:TA.__wrap(g)}coParent(I){try{const B=A.__wbindgen_add_to_stack_pointer(-16);A.rawcolliderset_coParent(B,this.__wbg_ptr,I);var g=D().getInt32(B+0,!0),C=D().getFloat64(B+8,!0);return 0===g?void 0:C}finally{A.__wbindgen_add_to_stack_pointer(16)}}coSetEnabled(I,g){A.rawcolliderset_coSetEnabled(this.__wbg_ptr,I,g)}coIsEnabled(I){return 0!==A.rawcolliderset_coIsEnabled(this.__wbg_ptr,I)}coSetContactSkin(I,g){A.rawcolliderset_coSetContactSkin(this.__wbg_ptr,I,g)}coContactSkin(I){return A.rawcolliderset_coContactSkin(this.__wbg_ptr,I)}coFriction(I){return A.rawcolliderset_coFriction(this.__wbg_ptr,I)}coRestitution(I){return A.rawcolliderset_coRestitution(this.__wbg_ptr,I)}coDensity(I){return A.rawcolliderset_coDensity(this.__wbg_ptr,I)}coMass(I){return A.rawcolliderset_coMass(this.__wbg_ptr,I)}coVolume(I){return A.rawcolliderset_coVolume(this.__wbg_ptr,I)}coCollisionGroups(I){return A.rawcolliderset_coCollisionGroups(this.__wbg_ptr,I)>>>0}coSolverGroups(I){return A.rawcolliderset_coSolverGroups(this.__wbg_ptr,I)>>>0}coActiveHooks(I){return A.rawcolliderset_coActiveHooks(this.__wbg_ptr,I)>>>0}coActiveCollisionTypes(I){return A.rawcolliderset_coActiveCollisionTypes(this.__wbg_ptr,I)}coActiveEvents(I){return A.rawcolliderset_coActiveEvents(this.__wbg_ptr,I)>>>0}coContactForceEventThreshold(I){return A.rawcolliderset_coContactForceEventThreshold(this.__wbg_ptr,I)}coContainsPoint(I,g){S(g,TA);return 0!==A.rawcolliderset_coContainsPoint(this.__wbg_ptr,I,g.__wbg_ptr)}coCastShape(I,g,C,B,Q,E,i,D,o){S(g,TA),S(C,lA),S(B,TA),S(Q,tA),S(E,TA);const w=A.rawcolliderset_coCastShape(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,E.__wbg_ptr,i,D,o);return 0===w?void 0:pA.__wrap(w)}coCastCollider(I,g,C,B,Q,E,i){S(g,TA),S(B,TA);const D=A.rawcolliderset_coCastCollider(this.__wbg_ptr,I,g.__wbg_ptr,C,B.__wbg_ptr,Q,E,i);return 0===D?void 0:d.__wrap(D)}coIntersectsShape(I,g,C,B){S(g,lA),S(C,TA),S(B,tA);return 0!==A.rawcolliderset_coIntersectsShape(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr)}coContactShape(I,g,C,B,Q){S(g,lA),S(C,TA),S(B,tA);const E=A.rawcolliderset_coContactShape(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q);return 0===E?void 0:dA.__wrap(E)}coContactCollider(I,g,C){const B=A.rawcolliderset_coContactCollider(this.__wbg_ptr,I,g,C);return 0===B?void 0:dA.__wrap(B)}coProjectPoint(I,g,C){S(g,TA);const B=A.rawcolliderset_coProjectPoint(this.__wbg_ptr,I,g.__wbg_ptr,C);return sA.__wrap(B)}coIntersectsRay(I,g,C,B){S(g,TA),S(C,TA);return 0!==A.rawcolliderset_coIntersectsRay(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,B)}coCastRay(I,g,C,B,Q){S(g,TA),S(C,TA);return A.rawcolliderset_coCastRay(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,B,Q)}coCastRayAndGetNormal(I,g,C,B,Q){S(g,TA),S(C,TA);const E=A.rawcolliderset_coCastRayAndGetNormal(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,B,Q);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,lA),A.rawcolliderset_coSetShape(this.__wbg_ptr,I,g.__wbg_ptr)}coSetContactForceEventThreshold(I,g){A.rawcolliderset_coSetContactForceEventThreshold(this.__wbg_ptr,I,g)}coSetDensity(I,g){A.rawcolliderset_coSetDensity(this.__wbg_ptr,I,g)}coSetMass(I,g){A.rawcolliderset_coSetMass(this.__wbg_ptr,I,g)}coSetMassProperties(I,g,C,B){S(C,TA),A.rawcolliderset_coSetMassProperties(this.__wbg_ptr,I,g,C.__wbg_ptr,B)}constructor(){const I=A.rawcolliderset_new();return this.__wbg_ptr=I>>>0,e.register(this,this.__wbg_ptr,this),this}len(){return A.rawcolliderset_len(this.__wbg_ptr)>>>0}contains(I){return 0!==A.rawcolliderset_contains(this.__wbg_ptr,I)}createCollider(I,g,C,B,Q,E,i,o,w,G,h,K,y,s,N,M,F,k,a,R,J,U,c,Y){try{const q=A.__wbindgen_add_to_stack_pointer(-16);S(g,lA),S(C,TA),S(B,tA),S(i,TA),S(Y,YA),A.rawcolliderset_createCollider(q,this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q,E,i.__wbg_ptr,o,w,G,h,K,y,s,N,M,F,k,a,R,J,U,c,Y.__wbg_ptr);var L=D().getInt32(q+0,!0),t=D().getFloat64(q+8,!0);return 0===L?void 0:t}finally{A.__wbindgen_add_to_stack_pointer(16)}}remove(I,g,C,B){S(g,gA),S(C,YA),A.rawcolliderset_remove(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,B)}isHandleValid(I){return 0!==A.rawcolliderset_contains(this.__wbg_ptr,I)}forEachColliderHandle(g){try{A.rawcolliderset_forEachColliderHandle(this.__wbg_ptr,y(g))}finally{I[K++]=void 0}}}const n="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawcollidershapecasthit_free(I>>>0,1)));class d{static __wrap(A){A>>>=0;const I=Object.create(d.prototype);return I.__wbg_ptr=A,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_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 TA.__wrap(I)}witness2(){const I=A.rawcollidershapecasthit_witness2(this.__wbg_ptr);return TA.__wrap(I)}normal1(){const I=A.rawcollidershapecasthit_normal1(this.__wbg_ptr);return TA.__wrap(I)}normal2(){const I=A.rawcollidershapecasthit_normal2(this.__wbg_ptr);return TA.__wrap(I)}}const b="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawcontactforceevent_free(I>>>0,1)));class T{static __wrap(A){A>>>=0;const I=Object.create(T.prototype);return I.__wbg_ptr=A,b.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,b.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 TA.__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 TA.__wrap(I)}max_force_magnitude(){return A.rawcontactforceevent_max_force_magnitude(this.__wbg_ptr)}}const x="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,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_rawcontactmanifold_free(I,0)}normal(){const I=A.rawcontactmanifold_normal(this.__wbg_ptr);return TA.__wrap(I)}local_n1(){const I=A.rawcontactmanifold_local_n1(this.__wbg_ptr);return TA.__wrap(I)}local_n2(){const I=A.rawcontactmanifold_local_n2(this.__wbg_ptr);return TA.__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:TA.__wrap(g)}contact_local_p2(I){const g=A.rawcontactmanifold_contact_local_p2(this.__wbg_ptr,I);return 0===g?void 0:TA.__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:TA.__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 TA.__wrap(g)}}const Z="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,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_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 j="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,j.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,j.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(I,g,C,B,Q){S(I,YA),S(g,p),S(C,_),S(B,EA),S(Q,DA),A.rawdebugrenderpipeline_render(this.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr)}}const O="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawdeserializedworld_free(I>>>0,1)));class X{static __wrap(A){A>>>=0;const I=Object.create(X.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_rawdeserializedworld_free(I,0)}takeGravity(){const I=A.rawdeserializedworld_takeGravity(this.__wbg_ptr);return 0===I?void 0:TA.__wrap(I)}takeIntegrationParameters(){const I=A.rawdeserializedworld_takeIntegrationParameters(this.__wbg_ptr);return 0===I?void 0:AA.__wrap(I)}takeIslandManager(){const I=A.rawdeserializedworld_takeIslandManager(this.__wbg_ptr);return 0===I?void 0:gA.__wrap(I)}takeBroadPhase(){const I=A.rawdeserializedworld_takeBroadPhase(this.__wbg_ptr);return 0===I?void 0:t.__wrap(I)}takeNarrowPhase(){const I=A.rawdeserializedworld_takeNarrowPhase(this.__wbg_ptr);return 0===I?void 0:DA.__wrap(I)}takeBodies(){const I=A.rawdeserializedworld_takeBodies(this.__wbg_ptr);return 0===I?void 0:YA.__wrap(I)}takeColliders(){const I=A.rawdeserializedworld_takeColliders(this.__wbg_ptr);return 0===I?void 0:p.__wrap(I)}takeImpulseJoints(){const I=A.rawdeserializedworld_takeImpulseJoints(this.__wbg_ptr);return 0===I?void 0:_.__wrap(I)}takeMultibodyJoints(){const I=A.rawdeserializedworld_takeMultibodyJoints(this.__wbg_ptr);return 0===I?void 0:EA.__wrap(I)}}const P="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_raweventqueue_free(I>>>0,1)));class V{__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,y(g))}finally{I[K++]=void 0}}drainContactForceEvents(g){try{A.raweventqueue_drainContactForceEvents(this.__wbg_ptr,y(g))}finally{I[K++]=void 0}}clear(){A.raweventqueue_clear(this.__wbg_ptr)}}const v="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawgenericjoint_free(I>>>0,1)));class u{static __wrap(A){A>>>=0;const I=Object.create(u.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_rawgenericjoint_free(I,0)}static spring(I,g,C,B,Q){S(B,TA),S(Q,TA);const E=A.rawgenericjoint_spring(I,g,C,B.__wbg_ptr,Q.__wbg_ptr);return u.__wrap(E)}static rope(I,g,C){S(g,TA),S(C,TA);const B=A.rawgenericjoint_rope(I,g.__wbg_ptr,C.__wbg_ptr);return u.__wrap(B)}static prismatic(I,g,C,B,Q,E){S(I,TA),S(g,TA),S(C,TA);const i=A.rawgenericjoint_prismatic(I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B,Q,E);return 0===i?void 0:u.__wrap(i)}static fixed(I,g,C,B){S(I,TA),S(g,tA),S(C,TA),S(B,tA);const Q=A.rawgenericjoint_fixed(I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr);return u.__wrap(Q)}static revolute(I,g){S(I,TA),S(g,TA);const C=A.rawgenericjoint_revolute(I.__wbg_ptr,g.__wbg_ptr);return 0===C?void 0:u.__wrap(C)}}const z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawimpulsejointset_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_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 TA.__wrap(g)}jointAnchor2(I){const g=A.rawimpulsejointset_jointAnchor2(this.__wbg_ptr,I);return TA.__wrap(g)}jointSetAnchor1(I,g){S(g,TA),A.rawimpulsejointset_jointSetAnchor1(this.__wbg_ptr,I,g.__wbg_ptr)}jointSetAnchor2(I,g){S(g,TA),A.rawimpulsejointset_jointSetAnchor2(this.__wbg_ptr,I,g.__wbg_ptr)}jointContactsEnabled(I){return 0!==A.rawimpulsejointset_jointContactsEnabled(this.__wbg_ptr,I)}jointSetContactsEnabled(I,g){A.rawimpulsejointset_jointSetContactsEnabled(this.__wbg_ptr,I,g)}jointLimitsEnabled(I,g){return 0!==A.rawimpulsejointset_jointLimitsEnabled(this.__wbg_ptr,I,g)}jointLimitsMin(I,g){return A.rawimpulsejointset_jointLimitsMin(this.__wbg_ptr,I,g)}jointLimitsMax(I,g){return A.rawimpulsejointset_jointLimitsMax(this.__wbg_ptr,I,g)}jointSetLimits(I,g,C,B){A.rawimpulsejointset_jointSetLimits(this.__wbg_ptr,I,g,C,B)}jointConfigureMotorModel(I,g,C){A.rawimpulsejointset_jointConfigureMotorModel(this.__wbg_ptr,I,g,C)}jointConfigureMotorVelocity(I,g,C,B){A.rawimpulsejointset_jointConfigureMotorVelocity(this.__wbg_ptr,I,g,C,B)}jointConfigureMotorPosition(I,g,C,B,Q){A.rawimpulsejointset_jointConfigureMotorPosition(this.__wbg_ptr,I,g,C,B,Q)}jointConfigureMotor(I,g,C,B,Q,E){A.rawimpulsejointset_jointConfigureMotor(this.__wbg_ptr,I,g,C,B,Q,E)}constructor(){const I=A.rawimpulsejointset_new();return this.__wbg_ptr=I>>>0,z.register(this,this.__wbg_ptr,this),this}createJoint(I,g,C,B){S(I,u);return A.rawimpulsejointset_createJoint(this.__wbg_ptr,I.__wbg_ptr,g,C,B)}remove(I,g){A.rawimpulsejointset_remove(this.__wbg_ptr,I,g)}len(){return A.rawimpulsejointset_len(this.__wbg_ptr)>>>0}contains(I){return 0!==A.rawimpulsejointset_contains(this.__wbg_ptr,I)}forEachJointHandle(g){try{A.rawimpulsejointset_forEachJointHandle(this.__wbg_ptr,y(g))}finally{I[K++]=void 0}}forEachJointAttachedToRigidBody(g,C){try{A.rawimpulsejointset_forEachJointAttachedToRigidBody(this.__wbg_ptr,g,y(C))}finally{I[K++]=void 0}}}const $="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawintegrationparameters_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_rawintegrationparameters_free(I,0)}constructor(){const I=A.rawintegrationparameters_new();return this.__wbg_ptr=I>>>0,$.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.rawimpulsejointset_len(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 IA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawislandmanager_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_rawislandmanager_free(I,0)}constructor(){const I=A.rawislandmanager_new();return this.__wbg_ptr=I>>>0,IA.register(this,this.__wbg_ptr,this),this}forEachActiveRigidBodyHandle(g){try{A.rawislandmanager_forEachActiveRigidBodyHandle(this.__wbg_ptr,y(g))}finally{I[K++]=void 0}}}const CA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawkinematiccharactercontroller_free(I>>>0,1)));class BA{__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_rawkinematiccharactercontroller_free(I,0)}constructor(I){const g=A.rawkinematiccharactercontroller_new(I);return this.__wbg_ptr=g>>>0,CA.register(this,this.__wbg_ptr,this),this}up(){const I=A.rawcollidershapecasthit_normal2(this.__wbg_ptr);return TA.__wrap(I)}setUp(I){S(I,TA),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,B,Q,i,D,o,w,G,h,s){try{S(C,YA),S(B,p),S(Q,MA),S(D,TA),A.rawkinematiccharactercontroller_computeColliderMovement(this.__wbg_ptr,g,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,i,D.__wbg_ptr,o,E(w)?4294967297:Math.fround(w),G,E(h)?4294967297:h>>>0,y(s))}finally{I[K++]=void 0}}computedMovement(){const I=A.rawkinematiccharactercontroller_computedMovement(this.__wbg_ptr);return TA.__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,l);return 0!==A.rawkinematiccharactercontroller_computedCollision(this.__wbg_ptr,I,g.__wbg_ptr)}}const QA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawmultibodyjointset_free(I>>>0,1)));class EA{static __wrap(A){A>>>=0;const I=Object.create(EA.prototype);return I.__wbg_ptr=A,QA.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,QA.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_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 TA.__wrap(g)}jointAnchor2(I){const g=A.rawmultibodyjointset_jointAnchor2(this.__wbg_ptr,I);return TA.__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,QA.register(this,this.__wbg_ptr,this),this}createJoint(I,g,C,B){S(I,u);return A.rawmultibodyjointset_createJoint(this.__wbg_ptr,I.__wbg_ptr,g,C,B)}remove(I,g){A.rawmultibodyjointset_remove(this.__wbg_ptr,I,g)}contains(I){return 0!==A.rawmultibodyjointset_contains(this.__wbg_ptr,I)}forEachJointHandle(g){try{A.rawmultibodyjointset_forEachJointHandle(this.__wbg_ptr,y(g))}finally{I[K++]=void 0}}forEachJointAttachedToRigidBody(g,C){try{A.rawmultibodyjointset_forEachJointAttachedToRigidBody(this.__wbg_ptr,g,y(C))}finally{I[K++]=void 0}}}const iA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawnarrowphase_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_rawnarrowphase_free(I,0)}constructor(){const I=A.rawnarrowphase_new();return this.__wbg_ptr=I>>>0,iA.register(this,this.__wbg_ptr,this),this}contact_pairs_with(I,g){A.rawnarrowphase_contact_pairs_with(this.__wbg_ptr,I,B(g))}contact_pair(I,g){const C=A.rawnarrowphase_contact_pair(this.__wbg_ptr,I,g);return 0===C?void 0:f.__wrap(C)}intersection_pairs_with(I,g){A.rawnarrowphase_intersection_pairs_with(this.__wbg_ptr,I,B(g))}intersection_pair(I,g){return 0!==A.rawnarrowphase_intersection_pair(this.__wbg_ptr,I,g)}}const oA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawphysicspipeline_free(I>>>0,1)));class wA{__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_rawphysicspipeline_free(I,0)}constructor(){const I=A.rawphysicspipeline_new();return this.__wbg_ptr=I>>>0,oA.register(this,this.__wbg_ptr,this),this}step(I,g,C,B,Q,E,i,D,o,w){S(I,TA),S(g,AA),S(C,gA),S(B,t),S(Q,DA),S(E,YA),S(i,p),S(D,_),S(o,EA),S(w,r),A.rawphysicspipeline_step(this.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,E.__wbg_ptr,i.__wbg_ptr,D.__wbg_ptr,o.__wbg_ptr,w.__wbg_ptr)}stepWithEvents(I,g,C,Q,E,i,D,o,w,G,h,K,y,s){S(I,TA),S(g,AA),S(C,gA),S(Q,t),S(E,DA),S(i,YA),S(D,p),S(o,_),S(w,EA),S(G,r),S(h,V),A.rawphysicspipeline_stepWithEvents(this.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,Q.__wbg_ptr,E.__wbg_ptr,i.__wbg_ptr,D.__wbg_ptr,o.__wbg_ptr,w.__wbg_ptr,G.__wbg_ptr,h.__wbg_ptr,B(K),B(y),B(s))}}const GA="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,GA.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawpidcontroller_free(I,0)}constructor(I,g,C,B){const Q=A.rawpidcontroller_new(I,g,C,B);return this.__wbg_ptr=Q>>>0,GA.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,B,Q){S(g,YA),S(B,TA),S(Q,TA),A.rawpidcontroller_apply_linear_correction(this.__wbg_ptr,I,g.__wbg_ptr,C,B.__wbg_ptr,Q.__wbg_ptr)}apply_angular_correction(I,g,C,B,Q){S(g,YA),A.rawpidcontroller_apply_angular_correction(this.__wbg_ptr,I,g.__wbg_ptr,C,B,Q)}linear_correction(I,g,C,B,Q){S(g,YA),S(B,TA),S(Q,TA);const E=A.rawpidcontroller_linear_correction(this.__wbg_ptr,I,g.__wbg_ptr,C,B.__wbg_ptr,Q.__wbg_ptr);return TA.__wrap(E)}angular_correction(I,g,C,B,Q){S(g,YA);return A.rawpidcontroller_angular_correction(this.__wbg_ptr,I,g.__wbg_ptr,C,B,Q)}}const SA="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,SA.register(I,I.__wbg_ptr,I),I}__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_rawpointcolliderprojection_free(I,0)}colliderHandle(){return A.rawpointcolliderprojection_colliderHandle(this.__wbg_ptr)}point(){const I=A.rawpointcolliderprojection_point(this.__wbg_ptr);return TA.__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 yA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawpointprojection_free(I>>>0,1)));class sA{static __wrap(A){A>>>=0;const I=Object.create(sA.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_rawpointprojection_free(I,0)}point(){const I=A.rawpointprojection_point(this.__wbg_ptr);return TA.__wrap(I)}isInside(){return 0!==A.rawpointprojection_isInside(this.__wbg_ptr)}}const NA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawquerypipeline_free(I>>>0,1)));class MA{__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_rawquerypipeline_free(I,0)}constructor(){const I=A.rawquerypipeline_new();return this.__wbg_ptr=I>>>0,NA.register(this,this.__wbg_ptr,this),this}update(I){S(I,p),A.rawquerypipeline_update(this.__wbg_ptr,I.__wbg_ptr)}castRay(g,C,B,Q,i,D,o,w,G,h,s){try{S(g,YA),S(C,p),S(B,TA),S(Q,TA);const N=A.rawquerypipeline_castRay(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,i,D,o,E(w)?4294967297:w>>>0,!E(G),E(G)?0:G,!E(h),E(h)?0:h,y(s));return 0===N?void 0:kA.__wrap(N)}finally{I[K++]=void 0}}castRayAndGetNormal(g,C,B,Q,i,D,o,w,G,h,s){try{S(g,YA),S(C,p),S(B,TA),S(Q,TA);const N=A.rawquerypipeline_castRayAndGetNormal(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,i,D,o,E(w)?4294967297:w>>>0,!E(G),E(G)?0:G,!E(h),E(h)?0:h,y(s));return 0===N?void 0:RA.__wrap(N)}finally{I[K++]=void 0}}intersectionsWithRay(g,C,B,Q,i,D,o,w,G,h,s,N){try{S(g,YA),S(C,p),S(B,TA),S(Q,TA),A.rawquerypipeline_intersectionsWithRay(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,i,D,y(o),w,E(G)?4294967297:G>>>0,!E(h),E(h)?0:h,!E(s),E(s)?0:s,y(N))}finally{I[K++]=void 0,I[K++]=void 0}}intersectionWithShape(g,C,B,Q,i,o,w,G,h,s){try{const F=A.__wbindgen_add_to_stack_pointer(-16);S(g,YA),S(C,p),S(B,TA),S(Q,tA),S(i,lA),A.rawquerypipeline_intersectionWithShape(F,this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,i.__wbg_ptr,o,E(w)?4294967297:w>>>0,!E(G),E(G)?0:G,!E(h),E(h)?0:h,y(s));var N=D().getInt32(F+0,!0),M=D().getFloat64(F+8,!0);return 0===N?void 0:M}finally{A.__wbindgen_add_to_stack_pointer(16),I[K++]=void 0}}projectPoint(g,C,B,Q,i,D,o,w,G){try{S(g,YA),S(C,p),S(B,TA);const h=A.rawquerypipeline_projectPoint(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q,i,E(D)?4294967297:D>>>0,!E(o),E(o)?0:o,!E(w),E(w)?0:w,y(G));return 0===h?void 0:KA.__wrap(h)}finally{I[K++]=void 0}}projectPointAndGetFeature(g,C,B,Q,i,D,o,w){try{S(g,YA),S(C,p),S(B,TA);const G=A.rawquerypipeline_projectPointAndGetFeature(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q,E(i)?4294967297:i>>>0,!E(D),E(D)?0:D,!E(o),E(o)?0:o,y(w));return 0===G?void 0:KA.__wrap(G)}finally{I[K++]=void 0}}intersectionsWithPoint(g,C,B,Q,i,D,o,w,G){try{S(g,YA),S(C,p),S(B,TA),A.rawquerypipeline_intersectionsWithPoint(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,y(Q),i,E(D)?4294967297:D>>>0,!E(o),E(o)?0:o,!E(w),E(w)?0:w,y(G))}finally{I[K++]=void 0,I[K++]=void 0}}castShape(g,C,B,Q,i,D,o,w,G,h,s,N,M,F){try{S(g,YA),S(C,p),S(B,TA),S(Q,tA),S(i,TA),S(D,lA);const k=A.rawquerypipeline_castShape(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,i.__wbg_ptr,D.__wbg_ptr,o,w,G,h,E(s)?4294967297:s>>>0,!E(N),E(N)?0:N,!E(M),E(M)?0:M,y(F));return 0===k?void 0:d.__wrap(k)}finally{I[K++]=void 0}}intersectionsWithShape(g,C,B,Q,i,D,o,w,G,h,s){try{S(g,YA),S(C,p),S(B,TA),S(Q,tA),S(i,lA),A.rawquerypipeline_intersectionsWithShape(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,i.__wbg_ptr,y(D),o,E(w)?4294967297:w>>>0,!E(G),E(G)?0:G,!E(h),E(h)?0:h,y(s))}finally{I[K++]=void 0,I[K++]=void 0}}collidersWithAabbIntersectingAabb(g,C,B){try{S(g,TA),S(C,TA),A.rawquerypipeline_collidersWithAabbIntersectingAabb(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,y(B))}finally{I[K++]=void 0}}}const FA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawraycolliderhit_free(I>>>0,1)));class kA{static __wrap(A){A>>>=0;const I=Object.create(kA.prototype);return I.__wbg_ptr=A,FA.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,FA.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 aA="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,aA.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,aA.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 TA.__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 TA.__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_rawrigidbodyset_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_rawrigidbodyset_free(I,0)}rbTranslation(I){const g=A.rawrigidbodyset_rbTranslation(this.__wbg_ptr,I);return TA.__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 TA.__wrap(g)}rbNextRotation(I){const g=A.rawrigidbodyset_rbNextRotation(this.__wbg_ptr,I);return tA.__wrap(g)}rbSetTranslation(I,g,C,B){A.rawrigidbodyset_rbSetTranslation(this.__wbg_ptr,I,g,C,B)}rbSetRotation(I,g,C){A.rawrigidbodyset_rbSetRotation(this.__wbg_ptr,I,g,C)}rbSetLinvel(I,g,C){S(g,TA),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,p),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,B,Q){S(C,TA),A.rawrigidbodyset_rbSetAdditionalMassProperties(this.__wbg_ptr,I,g,C.__wbg_ptr,B,Q)}rbLinvel(I){const g=A.rawrigidbodyset_rbLinvel(this.__wbg_ptr,I);return TA.__wrap(g)}rbAngvel(I){return A.rawrigidbodyset_rbAngvel(this.__wbg_ptr,I)}rbLockTranslations(I,g,C){A.rawrigidbodyset_rbLockTranslations(this.__wbg_ptr,I,g,C)}rbSetEnabledTranslations(I,g,C,B){A.rawrigidbodyset_rbSetEnabledTranslations(this.__wbg_ptr,I,g,C,B)}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 TA.__wrap(g)}rbLocalCom(I){const g=A.rawrigidbodyset_rbLocalCom(this.__wbg_ptr,I);return TA.__wrap(g)}rbWorldCom(I){const g=A.rawrigidbodyset_rbWorldCom(this.__wbg_ptr,I);return TA.__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_rbSetGravityScale(this.__wbg_ptr,I,g,C)}rbResetForces(I,g){A.rawrigidbodyset_rbResetForces(this.__wbg_ptr,I,g)}rbResetTorques(I,g){A.rawrigidbodyset_rbResetTorques(this.__wbg_ptr,I,g)}rbAddForce(I,g,C){S(g,TA),A.rawrigidbodyset_rbAddForce(this.__wbg_ptr,I,g.__wbg_ptr,C)}rbApplyImpulse(I,g,C){S(g,TA),A.rawrigidbodyset_rbApplyImpulse(this.__wbg_ptr,I,g.__wbg_ptr,C)}rbAddTorque(I,g,C){A.rawrigidbodyset_rbAddTorque(this.__wbg_ptr,I,g,C)}rbApplyTorqueImpulse(I,g,C){A.rawrigidbodyset_rbApplyTorqueImpulse(this.__wbg_ptr,I,g,C)}rbAddForceAtPoint(I,g,C,B){S(g,TA),S(C,TA),A.rawrigidbodyset_rbAddForceAtPoint(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,B)}rbApplyImpulseAtPoint(I,g,C,B){S(g,TA),S(C,TA),A.rawrigidbodyset_rbApplyImpulseAtPoint(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,B)}rbAdditionalSolverIterations(I){return A.rawrigidbodyset_rbAdditionalSolverIterations(this.__wbg_ptr,I)>>>0}rbSetAdditionalSolverIterations(I,g){A.rawrigi