@dimforge/rapier3d-compat
Version:
3-dimensional physics engine in Rust - official JS bindings. Compatibility package with inlined webassembly as base64.
1 lines • 2.1 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 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 S="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&S.decode();let w=null;function G(I,g){return I>>>=0,S.decode((null!==w&&0!==w.byteLength||(w=new Uint8Array(A.memory.buffer)),w).subarray(I,I+g))}function K(A,I){if(!(A instanceof I))throw new Error(`expected instance of ${I.name}`)}let k=128;function h(A){if(1==k)throw new Error("out of js stack");return I[--k]=A,k}let N=null;function U(){return null!==N&&0!==N.byteLength||(N=new Float32Array(A.memory.buffer)),N}function y(A,I){return A>>>=0,U().subarray(A/4,A/4+I)}let J=null;function M(){return null!==J&&0!==J.byteLength||(J=new Uint32Array(A.memory.buffer)),J}let F=0;function s(A,I){const g=I(4*A.length,4)>>>0;return U().set(A,g/4),F=A.length,g}function a(A,I){const g=I(4*A.length,4)>>>0;return M().set(A,g/4),F=A.length,g}Object.freeze({Vertex:0,0:"Vertex",Edge:1,1:"Edge",Face:2,2:"Face",Unknown:3,3:"Unknown"});const R=Object.freeze({LinX:0,0:"LinX",LinY:1,1:"LinY",LinZ:2,2:"LinZ",AngX:3,3:"AngX",AngY:4,4:"AngY",AngZ:5,5:"AngZ"}),q=Object.freeze({Revolute:0,0:"Revolute",Fixed:1,1:"Fixed",Prismatic:2,2:"Prismatic",Rope:3,3:"Rope",Spring:4,4:"Spring",Spherical:5,5:"Spherical",Generic:6,6:"Generic"});Object.freeze({AccelerationBased:0,0:"AccelerationBased",ForceBased:1,1:"ForceBased"}),Object.freeze({Dynamic:0,0:"Dynamic",Fixed:1,1:"Fixed",KinematicPositionBased:2,2:"KinematicPositionBased",KinematicVelocityBased:3,3:"KinematicVelocityBased"});const c=Object.freeze({Ball:0,0:"Ball",Cuboid:1,1:"Cuboid",Capsule:2,2:"Capsule",Segment:3,3:"Segment",Polyline:4,4:"Polyline",Triangle:5,5:"Triangle",TriMesh:6,6:"TriMesh",HeightField:7,7:"HeightField",Compound:8,8:"Compound",ConvexPolyhedron:9,9:"ConvexPolyhedron",Cylinder:10,10:"Cylinder",Cone:11,11:"Cone",RoundCuboid:12,12:"RoundCuboid",RoundTriangle:13,13:"RoundTriangle",RoundCylinder:14,14:"RoundCylinder",RoundCone:15,15:"RoundCone",RoundConvexPolyhedron:16,16:"RoundConvexPolyhedron",HalfSpace:17,17:"HalfSpace"}),Y="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawbroadphase_free(I>>>0,1)));class L{static __wrap(A){A>>>=0;const I=Object.create(L.prototype);return I.__wbg_ptr=A,Y.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,Y.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,Y.register(this,this.__wbg_ptr,this),this}}const l="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawccdsolver_free(I>>>0,1)));class H{__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_rawccdsolver_free(I,0)}constructor(){const I=A.rawccdsolver_new();return this.__wbg_ptr=I>>>0,l.register(this,this.__wbg_ptr,this),this}}const t="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawcharactercollision_free(I>>>0,1)));class r{__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_rawcharactercollision_free(I,0)}constructor(){const I=A.rawcharactercollision_new();return this.__wbg_ptr=I>>>0,t.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 WA.__wrap(I)}translationDeltaRemaining(){const I=A.rawcharactercollision_translationDeltaRemaining(this.__wbg_ptr);return WA.__wrap(I)}toi(){return A.rawcharactercollision_toi(this.__wbg_ptr)}worldWitness1(){const I=A.rawcharactercollision_worldWitness1(this.__wbg_ptr);return WA.__wrap(I)}worldWitness2(){const I=A.rawcharactercollision_worldWitness2(this.__wbg_ptr);return WA.__wrap(I)}worldNormal1(){const I=A.rawcharactercollision_worldNormal1(this.__wbg_ptr);return WA.__wrap(I)}worldNormal2(){const I=A.rawcharactercollision_worldNormal2(this.__wbg_ptr);return WA.__wrap(I)}}const p="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawcolliderset_free(I>>>0,1)));class e{static __wrap(A){A>>>=0;const I=Object.create(e.prototype);return I.__wbg_ptr=A,p.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,p.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawcolliderset_free(I,0)}coTranslation(I){const g=A.rawcolliderset_coTranslation(this.__wbg_ptr,I);return WA.__wrap(g)}coRotation(I){const g=A.rawcolliderset_coRotation(this.__wbg_ptr,I);return HA.__wrap(g)}coSetTranslation(I,g,C,B){A.rawcolliderset_coSetTranslation(this.__wbg_ptr,I,g,C,B)}coSetTranslationWrtParent(I,g,C,B){A.rawcolliderset_coSetTranslationWrtParent(this.__wbg_ptr,I,g,C,B)}coSetRotation(I,g,C,B,Q){A.rawcolliderset_coSetRotation(this.__wbg_ptr,I,g,C,B,Q)}coSetRotationWrtParent(I,g,C,B,Q){A.rawcolliderset_coSetRotationWrtParent(this.__wbg_ptr,I,g,C,B,Q)}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:WA.__wrap(g)}coHalfExtents(I){const g=A.rawcolliderset_coHalfExtents(this.__wbg_ptr,I);return 0===g?void 0:WA.__wrap(g)}coSetHalfExtents(I,g){K(g,WA),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=y(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,M().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}coHeightFieldFlags(I){const g=A.rawcolliderset_coHeightFieldFlags(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=y(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:WA.__wrap(g)}coHeightfieldNRows(I){const g=A.rawcolliderset_coHeightfieldNRows(this.__wbg_ptr,I);return 4294967297===g?void 0:g}coHeightfieldNCols(I){const g=A.rawcolliderset_coHeightfieldNCols(this.__wbg_ptr,I);return 4294967297===g?void 0: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){K(g,WA);return 0!==A.rawcolliderset_coContainsPoint(this.__wbg_ptr,I,g.__wbg_ptr)}coCastShape(I,g,C,B,Q,E,i,D,o){K(g,WA),K(C,dA),K(B,WA),K(Q,HA),K(E,WA);const S=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===S?void 0:TA.__wrap(S)}coCastCollider(I,g,C,B,Q,E,i){K(g,WA),K(B,WA);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){K(g,dA),K(C,WA),K(B,HA);return 0!==A.rawcolliderset_coIntersectsShape(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr)}coContactShape(I,g,C,B,Q){K(g,dA),K(C,WA),K(B,HA);const E=A.rawcolliderset_coContactShape(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q);return 0===E?void 0:bA.__wrap(E)}coContactCollider(I,g,C){const B=A.rawcolliderset_coContactCollider(this.__wbg_ptr,I,g,C);return 0===B?void 0:bA.__wrap(B)}coProjectPoint(I,g,C){K(g,WA);const B=A.rawcolliderset_coProjectPoint(this.__wbg_ptr,I,g.__wbg_ptr,C);return yA.__wrap(B)}coIntersectsRay(I,g,C,B){K(g,WA),K(C,WA);return 0!==A.rawcolliderset_coIntersectsRay(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,B)}coCastRay(I,g,C,B,Q){K(g,WA),K(C,WA);return A.rawcolliderset_coCastRay(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,B,Q)}coCastRayAndGetNormal(I,g,C,B,Q){K(g,WA),K(C,WA);const E=A.rawcolliderset_coCastRayAndGetNormal(this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,B,Q);return 0===E?void 0:cA.__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){K(g,dA),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,Q){K(C,WA),K(B,WA),K(Q,HA),A.rawcolliderset_coSetMassProperties(this.__wbg_ptr,I,g,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr)}constructor(){const I=A.rawcolliderset_new();return this.__wbg_ptr=I>>>0,p.register(this,this.__wbg_ptr,this),this}len(){return A.rawcolliderset_len(this.__wbg_ptr)>>>0}contains(I){return 0!==A.rawcolliderset_contains(this.__wbg_ptr,I)}createCollider(I,g,C,B,Q,E,i,o,S,w,G,k,h,N,U,y,J,M,F,s,a,R,q,c,Y){try{const H=A.__wbindgen_add_to_stack_pointer(-16);K(g,dA),K(C,WA),K(B,HA),K(i,WA),K(o,WA),K(S,HA),K(Y,LA),A.rawcolliderset_createCollider(H,this.__wbg_ptr,I,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q,E,i.__wbg_ptr,o.__wbg_ptr,S.__wbg_ptr,w,G,k,h,N,U,y,J,M,F,s,a,R,q,c,Y.__wbg_ptr);var L=D().getInt32(H+0,!0),l=D().getFloat64(H+8,!0);return 0===L?void 0:l}finally{A.__wbindgen_add_to_stack_pointer(16)}}remove(I,g,C,B){K(g,BA),K(C,LA),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,h(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.rawcharactercollision_handle(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 WA.__wrap(I)}witness2(){const I=A.rawcollidershapecasthit_witness2(this.__wbg_ptr);return WA.__wrap(I)}normal1(){const I=A.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);return WA.__wrap(I)}normal2(){const I=A.rawcharactercollision_translationDeltaRemaining(this.__wbg_ptr);return WA.__wrap(I)}}const O="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,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_rawcontactforceevent_free(I,0)}collider1(){return A.rawcharactercollision_handle(this.__wbg_ptr)}collider2(){return A.rawcontactforceevent_collider2(this.__wbg_ptr)}total_force(){const I=A.rawcontactforceevent_total_force(this.__wbg_ptr);return WA.__wrap(I)}total_force_magnitude(){return A.rawcontactforceevent_total_force_magnitude(this.__wbg_ptr)}max_force_direction(){const I=A.rawcontactforceevent_max_force_direction(this.__wbg_ptr);return WA.__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 b{static __wrap(A){A>>>=0;const I=Object.create(b.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 WA.__wrap(I)}local_n1(){const I=A.rawcontactmanifold_local_n1(this.__wbg_ptr);return WA.__wrap(I)}local_n2(){const I=A.rawcontactmanifold_local_n2(this.__wbg_ptr);return WA.__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:WA.__wrap(g)}contact_local_p2(I){const g=A.rawcontactmanifold_contact_local_p2(this.__wbg_ptr,I);return 0===g?void 0:WA.__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_x(I){return A.rawcontactmanifold_contact_tangent_impulse_x(this.__wbg_ptr,I)}contact_tangent_impulse_y(I){return A.rawcontactmanifold_contact_tangent_impulse_y(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:WA.__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 WA.__wrap(g)}}const x="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawcontactpair_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_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:b.__wrap(g)}}const f="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawdebugrenderpipeline_free(I>>>0,1)));class j{__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,f.unregister(this),A}free(){const I=this.__destroy_into_raw();A.__wbg_rawdebugrenderpipeline_free(I,0)}constructor(){const I=A.rawdebugrenderpipeline_new();return this.__wbg_ptr=I>>>0,f.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){K(I,LA),K(g,e),K(C,AA),K(B,DA),K(Q,SA),A.rawdebugrenderpipeline_render(this.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr)}}const m="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,m.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,m.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:WA.__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:BA.__wrap(I)}takeBroadPhase(){const I=A.rawdeserializedworld_takeBroadPhase(this.__wbg_ptr);return 0===I?void 0:L.__wrap(I)}takeNarrowPhase(){const I=A.rawdeserializedworld_takeNarrowPhase(this.__wbg_ptr);return 0===I?void 0:SA.__wrap(I)}takeBodies(){const I=A.rawdeserializedworld_takeBodies(this.__wbg_ptr);return 0===I?void 0:LA.__wrap(I)}takeColliders(){const I=A.rawdeserializedworld_takeColliders(this.__wbg_ptr);return 0===I?void 0:e.__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_rawdynamicraycastvehiclecontroller_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_rawdynamicraycastvehiclecontroller_free(I,0)}constructor(I){const g=A.rawdynamicraycastvehiclecontroller_new(I);return this.__wbg_ptr=g>>>0,P.register(this,this.__wbg_ptr,this),this}current_vehicle_speed(){return A.rawdynamicraycastvehiclecontroller_current_vehicle_speed(this.__wbg_ptr)}chassis(){return A.rawdynamicraycastvehiclecontroller_chassis(this.__wbg_ptr)}index_up_axis(){return A.rawdynamicraycastvehiclecontroller_index_up_axis(this.__wbg_ptr)>>>0}set_index_up_axis(I){A.rawdynamicraycastvehiclecontroller_set_index_up_axis(this.__wbg_ptr,I)}index_forward_axis(){return A.rawdynamicraycastvehiclecontroller_index_forward_axis(this.__wbg_ptr)>>>0}set_index_forward_axis(I){A.rawdynamicraycastvehiclecontroller_set_index_forward_axis(this.__wbg_ptr,I)}add_wheel(I,g,C,B,Q){K(I,WA),K(g,WA),K(C,WA),A.rawdynamicraycastvehiclecontroller_add_wheel(this.__wbg_ptr,I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B,Q)}num_wheels(){return A.rawdynamicraycastvehiclecontroller_num_wheels(this.__wbg_ptr)>>>0}update_vehicle(g,C,B,Q,i,D,o){try{K(C,LA),K(B,e),K(Q,MA),A.rawdynamicraycastvehiclecontroller_update_vehicle(this.__wbg_ptr,g,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,i,E(D)?4294967297:D>>>0,h(o))}finally{I[k++]=void 0}}wheel_chassis_connection_point_cs(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_chassis_connection_point_cs(this.__wbg_ptr,I);return 0===g?void 0:WA.__wrap(g)}set_wheel_chassis_connection_point_cs(I,g){K(g,WA),A.rawdynamicraycastvehiclecontroller_set_wheel_chassis_connection_point_cs(this.__wbg_ptr,I,g.__wbg_ptr)}wheel_suspension_rest_length(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_suspension_rest_length(this.__wbg_ptr,I);return 4294967297===g?void 0:g}set_wheel_suspension_rest_length(I,g){A.rawdynamicraycastvehiclecontroller_set_wheel_suspension_rest_length(this.__wbg_ptr,I,g)}wheel_max_suspension_travel(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_max_suspension_travel(this.__wbg_ptr,I);return 4294967297===g?void 0:g}set_wheel_max_suspension_travel(I,g){A.rawdynamicraycastvehiclecontroller_set_wheel_max_suspension_travel(this.__wbg_ptr,I,g)}wheel_radius(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_radius(this.__wbg_ptr,I);return 4294967297===g?void 0:g}set_wheel_radius(I,g){A.rawdynamicraycastvehiclecontroller_set_wheel_radius(this.__wbg_ptr,I,g)}wheel_suspension_stiffness(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_suspension_stiffness(this.__wbg_ptr,I);return 4294967297===g?void 0:g}set_wheel_suspension_stiffness(I,g){A.rawdynamicraycastvehiclecontroller_set_wheel_suspension_stiffness(this.__wbg_ptr,I,g)}wheel_suspension_compression(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_suspension_compression(this.__wbg_ptr,I);return 4294967297===g?void 0:g}set_wheel_suspension_compression(I,g){A.rawdynamicraycastvehiclecontroller_set_wheel_suspension_compression(this.__wbg_ptr,I,g)}wheel_suspension_relaxation(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_suspension_relaxation(this.__wbg_ptr,I);return 4294967297===g?void 0:g}set_wheel_suspension_relaxation(I,g){A.rawdynamicraycastvehiclecontroller_set_wheel_suspension_relaxation(this.__wbg_ptr,I,g)}wheel_max_suspension_force(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_max_suspension_force(this.__wbg_ptr,I);return 4294967297===g?void 0:g}set_wheel_max_suspension_force(I,g){A.rawdynamicraycastvehiclecontroller_set_wheel_max_suspension_force(this.__wbg_ptr,I,g)}wheel_brake(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_brake(this.__wbg_ptr,I);return 4294967297===g?void 0:g}set_wheel_brake(I,g){A.rawdynamicraycastvehiclecontroller_set_wheel_brake(this.__wbg_ptr,I,g)}wheel_steering(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_steering(this.__wbg_ptr,I);return 4294967297===g?void 0:g}set_wheel_steering(I,g){A.rawdynamicraycastvehiclecontroller_set_wheel_steering(this.__wbg_ptr,I,g)}wheel_engine_force(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_engine_force(this.__wbg_ptr,I);return 4294967297===g?void 0:g}set_wheel_engine_force(I,g){A.rawdynamicraycastvehiclecontroller_set_wheel_engine_force(this.__wbg_ptr,I,g)}wheel_direction_cs(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_direction_cs(this.__wbg_ptr,I);return 0===g?void 0:WA.__wrap(g)}set_wheel_direction_cs(I,g){K(g,WA),A.rawdynamicraycastvehiclecontroller_set_wheel_direction_cs(this.__wbg_ptr,I,g.__wbg_ptr)}wheel_axle_cs(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_axle_cs(this.__wbg_ptr,I);return 0===g?void 0:WA.__wrap(g)}set_wheel_axle_cs(I,g){K(g,WA),A.rawdynamicraycastvehiclecontroller_set_wheel_axle_cs(this.__wbg_ptr,I,g.__wbg_ptr)}wheel_friction_slip(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_friction_slip(this.__wbg_ptr,I);return 4294967297===g?void 0:g}set_wheel_friction_slip(I,g){A.rawdynamicraycastvehiclecontroller_set_wheel_friction_slip(this.__wbg_ptr,I,g)}wheel_side_friction_stiffness(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_side_friction_stiffness(this.__wbg_ptr,I);return 4294967297===g?void 0:g}set_wheel_side_friction_stiffness(I,g){A.rawdynamicraycastvehiclecontroller_set_wheel_side_friction_stiffness(this.__wbg_ptr,I,g)}wheel_rotation(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_rotation(this.__wbg_ptr,I);return 4294967297===g?void 0:g}wheel_forward_impulse(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_forward_impulse(this.__wbg_ptr,I);return 4294967297===g?void 0:g}wheel_side_impulse(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_side_impulse(this.__wbg_ptr,I);return 4294967297===g?void 0:g}wheel_suspension_force(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_suspension_force(this.__wbg_ptr,I);return 4294967297===g?void 0:g}wheel_contact_normal_ws(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_contact_normal_ws(this.__wbg_ptr,I);return 0===g?void 0:WA.__wrap(g)}wheel_contact_point_ws(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_contact_point_ws(this.__wbg_ptr,I);return 0===g?void 0:WA.__wrap(g)}wheel_suspension_length(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_suspension_length(this.__wbg_ptr,I);return 4294967297===g?void 0:g}wheel_hard_point_ws(I){const g=A.rawdynamicraycastvehiclecontroller_wheel_hard_point_ws(this.__wbg_ptr,I);return 0===g?void 0:WA.__wrap(g)}wheel_is_in_contact(I){return 0!==A.rawdynamicraycastvehiclecontroller_wheel_is_in_contact(this.__wbg_ptr,I)}wheel_ground_object(I){try{const B=A.__wbindgen_add_to_stack_pointer(-16);A.rawdynamicraycastvehiclecontroller_wheel_ground_object(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)}}}const u="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,u.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,u.register(this,this.__wbg_ptr,this),this}drainCollisionEvents(g){try{A.raweventqueue_drainCollisionEvents(this.__wbg_ptr,h(g))}finally{I[k++]=void 0}}drainContactForceEvents(g){try{A.raweventqueue_drainContactForceEvents(this.__wbg_ptr,h(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 _{static __wrap(A){A>>>=0;const I=Object.create(_.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 generic(I,g,C,B){K(I,WA),K(g,WA),K(C,WA);const Q=A.rawgenericjoint_generic(I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B);return 0===Q?void 0:_.__wrap(Q)}static spring(I,g,C,B,Q){K(B,WA),K(Q,WA);const E=A.rawgenericjoint_spring(I,g,C,B.__wbg_ptr,Q.__wbg_ptr);return _.__wrap(E)}static rope(I,g,C){K(g,WA),K(C,WA);const B=A.rawgenericjoint_rope(I,g.__wbg_ptr,C.__wbg_ptr);return _.__wrap(B)}static spherical(I,g){K(I,WA),K(g,WA);const C=A.rawgenericjoint_spherical(I.__wbg_ptr,g.__wbg_ptr);return _.__wrap(C)}static prismatic(I,g,C,B,Q,E){K(I,WA),K(g,WA),K(C,WA);const i=A.rawgenericjoint_prismatic(I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B,Q,E);return 0===i?void 0:_.__wrap(i)}static fixed(I,g,C,B){K(I,WA),K(g,HA),K(C,WA),K(B,HA);const Q=A.rawgenericjoint_fixed(I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr);return _.__wrap(Q)}static revolute(I,g,C){K(I,WA),K(g,WA),K(C,WA);const B=A.rawgenericjoint_revolute(I.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr);return 0===B?void 0:_.__wrap(B)}}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 WA.__wrap(g)}jointAnchor2(I){const g=A.rawimpulsejointset_jointAnchor2(this.__wbg_ptr,I);return WA.__wrap(g)}jointSetAnchor1(I,g){K(g,WA),A.rawimpulsejointset_jointSetAnchor1(this.__wbg_ptr,I,g.__wbg_ptr)}jointSetAnchor2(I,g){K(g,WA),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,$.register(this,this.__wbg_ptr,this),this}createJoint(I,g,C,B){K(I,_);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,h(g))}finally{I[k++]=void 0}}forEachJointAttachedToRigidBody(g,C){try{A.rawimpulsejointset_forEachJointAttachedToRigidBody(this.__wbg_ptr,g,h(C))}finally{I[k++]=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.rawintegrationparameters_normalizedAllowedLinearError(this.__wbg_ptr)}get normalizedPredictionDistance(){return A.rawcontactforceevent_max_force_magnitude(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.rawintegrationparameters_lengthUnit(this.__wbg_ptr)}set dt(I){A.rawintegrationparameters_set_dt(this.__wbg_ptr,I)}set contact_natural_frequency(I){A.rawintegrationparameters_set_contact_natural_frequency(this.__wbg_ptr,I)}set normalizedAllowedLinearError(I){A.rawintegrationparameters_set_normalizedAllowedLinearError(this.__wbg_ptr,I)}set normalizedPredictionDistance(I){A.rawintegrationparameters_set_normalizedPredictionDistance(this.__wbg_ptr,I)}set numSolverIterations(I){A.rawintegrationparameters_set_numSolverIterations(this.__wbg_ptr,I)}set 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 BA{static __wrap(A){A>>>=0;const I=Object.create(BA.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,h(g))}finally{I[k++]=void 0}}}const QA="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,QA.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,QA.register(this,this.__wbg_ptr,this),this}up(){const I=A.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);return WA.__wrap(I)}setUp(I){K(I,WA),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.rawkinematiccharactercontroller_maxSlopeClimbAngle(this.__wbg_ptr)}setMaxSlopeClimbAngle(I){A.rawkinematiccharactercontroller_setMaxSlopeClimbAngle(this.__wbg_ptr,I)}minSlopeSlideAngle(){return A.rawkinematiccharactercontroller_minSlopeSlideAngle(this.__wbg_ptr)}setMinSlopeSlideAngle(I){A.rawkinematiccharactercontroller_setMinSlopeSlideAngle(this.__wbg_ptr,I)}snapToGroundDistance(){const I=A.rawkinematiccharactercontroller_snapToGroundDistance(this.__wbg_ptr);return 4294967297===I?void 0:I}enableSnapToGround(I){A.rawkinematiccharactercontroller_enableSnapToGround(this.__wbg_ptr,I)}disableSnapToGround(){A.rawkinematiccharactercontroller_disableSnapToGround(this.__wbg_ptr)}snapToGroundEnabled(){return 0!==A.rawkinematiccharactercontroller_snapToGroundEnabled(this.__wbg_ptr)}computeColliderMovement(g,C,B,Q,i,D,o,S,w,G,N){try{K(C,LA),K(B,e),K(Q,MA),K(D,WA),A.rawkinematiccharactercontroller_computeColliderMovement(this.__wbg_ptr,g,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,i,D.__wbg_ptr,o,E(S)?4294967297:Math.fround(S),w,E(G)?4294967297:G>>>0,h(N))}finally{I[k++]=void 0}}computedMovement(){const I=A.rawkinematiccharactercontroller_computedMovement(this.__wbg_ptr);return WA.__wrap(I)}computedGrounded(){return 0!==A.rawkinematiccharactercontroller_computedGrounded(this.__wbg_ptr)}numComputedCollisions(){return A.rawkinematiccharactercontroller_numComputedCollisions(this.__wbg_ptr)>>>0}computedCollision(I,g){K(g,r);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 WA.__wrap(g)}jointAnchor2(I){const g=A.rawmultibodyjointset_jointAnchor2(this.__wbg_ptr,I);return WA.__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,B){K(I,_);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,h(g))}finally{I[k++]=void 0}}forEachJointAttachedToRigidBody(g,C){try{A.rawmultibodyjointset_forEachJointAttachedToRigidBody(this.__wbg_ptr,g,h(C))}finally{I[k++]=void 0}}}const oA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawnarrowphase_free(I>>>0,1)));class SA{static __wrap(A){A>>>=0;const I=Object.create(SA.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,B(g))}contact_pair(I,g){const C=A.rawnarrowphase_contact_pair(this.__wbg_ptr,I,g);return 0===C?void 0:W.__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 wA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawphysicspipeline_free(I>>>0,1)));class GA{__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,wA.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,wA.register(this,this.__wbg_ptr,this),this}step(I,g,C,B,Q,E,i,D,o,S){K(I,WA),K(g,gA),K(C,BA),K(B,L),K(Q,SA),K(E,LA),K(i,e),K(D,AA),K(o,DA),K(S,H),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,S.__wbg_ptr)}stepWithEvents(I,g,C,Q,E,i,D,o,S,w,G,k,h,N){K(I,WA),K(g,gA),K(C,BA),K(Q,L),K(E,SA),K(i,LA),K(D,e),K(o,AA),K(S,DA),K(w,H),K(G,z),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,S.__wbg_ptr,w.__wbg_ptr,G.__wbg_ptr,B(k),B(h),B(N))}}const KA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawpidcontroller_free(I>>>0,1)));class kA{__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_rawpidcontroller_free(I,0)}constructor(I,g,C,B){const Q=A.rawpidcontroller_new(I,g,C,B);return this.__wbg_ptr=Q>>>0,KA.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){K(g,LA),K(B,WA),K(Q,WA),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){K(g,LA),K(B,HA),K(Q,WA),A.rawpidcontroller_apply_angular_correction(this.__wbg_ptr,I,g.__wbg_ptr,C,B.__wbg_ptr,Q.__wbg_ptr)}linear_correction(I,g,C,B,Q){K(g,LA),K(B,WA),K(Q,WA);const E=A.rawpidcontroller_linear_correction(this.__wbg_ptr,I,g.__wbg_ptr,C,B.__wbg_ptr,Q.__wbg_ptr);return WA.__wrap(E)}angular_correction(I,g,C,B,Q){K(g,LA),K(B,HA),K(Q,WA);const E=A.rawpidcontroller_angular_correction(this.__wbg_ptr,I,g.__wbg_ptr,C,B.__wbg_ptr,Q.__wbg_ptr);return WA.__wrap(E)}}const hA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawpointcolliderprojection_free(I>>>0,1)));class NA{static __wrap(A){A>>>=0;const I=Object.create(NA.prototype);return I.__wbg_ptr=A,hA.register(I,I.__wbg_ptr,I),I}__destroy_into_raw(){const A=this.__wbg_ptr;return this.__wbg_ptr=0,hA.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 WA.__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 UA="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((I=>A.__wbg_rawpointprojection_free(I>>>0,1)));class yA{static __wrap(A){A>>>=0;const I=Object.create(yA.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_rawpointprojection_free(I,0)}point(){const I=A.rawpointprojection_point(this.__wbg_ptr);return WA.__wrap(I)}isInside(){return 0!==A.rawpointprojection_isInside(this.__wbg_ptr)}}const JA="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,JA.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,JA.register(this,this.__wbg_ptr,this),this}update(I){K(I,e),A.rawquerypipeline_update(this.__wbg_ptr,I.__wbg_ptr)}castRay(g,C,B,Q,i,D,o,S,w,G,N){try{K(g,LA),K(C,e),K(B,WA),K(Q,WA);const U=A.rawquerypipeline_castRay(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,i,D,o,E(S)?4294967297:S>>>0,!E(w),E(w)?0:w,!E(G),E(G)?0:G,h(N));return 0===U?void 0:sA.__wrap(U)}finally{I[k++]=void 0}}castRayAndGetNormal(g,C,B,Q,i,D,o,S,w,G,N){try{K(g,LA),K(C,e),K(B,WA),K(Q,WA);const U=A.rawquerypipeline_castRayAndGetNormal(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,i,D,o,E(S)?4294967297:S>>>0,!E(w),E(w)?0:w,!E(G),E(G)?0:G,h(N));return 0===U?void 0:RA.__wrap(U)}finally{I[k++]=void 0}}intersectionsWithRay(g,C,B,Q,i,D,o,S,w,G,N,U){try{K(g,LA),K(C,e),K(B,WA),K(Q,WA),A.rawquerypipeline_intersectionsWithRay(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,i,D,h(o),S,E(w)?4294967297:w>>>0,!E(G),E(G)?0:G,!E(N),E(N)?0:N,h(U))}finally{I[k++]=void 0,I[k++]=void 0}}intersectionWithShape(g,C,B,Q,i,o,S,w,G,N){try{const J=A.__wbindgen_add_to_stack_pointer(-16);K(g,LA),K(C,e),K(B,WA),K(Q,HA),K(i,dA),A.rawquerypipeline_intersectionWithShape(J,this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,i.__wbg_ptr,o,E(S)?4294967297:S>>>0,!E(w),E(w)?0:w,!E(G),E(G)?0:G,h(N));var U=D().getInt32(J+0,!0),y=D().getFloat64(J+8,!0);return 0===U?void 0:y}finally{A.__wbindgen_add_to_stack_pointer(16),I[k++]=void 0}}projectPoint(g,C,B,Q,i,D,o,S,w){try{K(g,LA),K(C,e),K(B,WA);const G=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(S),E(S)?0:S,h(w));return 0===G?void 0:NA.__wrap(G)}finally{I[k++]=void 0}}projectPointAndGetFeature(g,C,B,Q,i,D,o,S){try{K(g,LA),K(C,e),K(B,WA);const w=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,h(S));return 0===w?void 0:NA.__wrap(w)}finally{I[k++]=void 0}}intersectionsWithPoint(g,C,B,Q,i,D,o,S,w){try{K(g,LA),K(C,e),K(B,WA),A.rawquerypipeline_intersectionsWithPoint(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,h(Q),i,E(D)?4294967297:D>>>0,!E(o),E(o)?0:o,!E(S),E(S)?0:S,h(w))}finally{I[k++]=void 0,I[k++]=void 0}}castShape(g,C,B,Q,i,D,o,S,w,G,N,U,y,J){try{K(g,LA),K(C,e),K(B,WA),K(Q,HA),K(i,WA),K(D,dA);const M=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,S,w,G,E(N)?4294967297:N>>>0,!E(U),E(U)?0:U,!E(y),E(y)?0:y,h(J));return 0===M?void 0:d.__wrap(M)}finally{I[k++]=void 0}}intersectionsWithShape(g,C,B,Q,i,D,o,S,w,G,N){try{K(g,LA),K(C,e),K(B,WA),K(Q,HA),K(i,dA),A.rawquerypipeline_intersectionsWithShape(this.__wbg_ptr,g.__wbg_ptr,C.__wbg_ptr,B.__wbg_ptr,Q.__wbg_ptr,i.__wbg_ptr,h(D),o,E(S)?4294967297:S>>>0,!E(w),E(w)?0:w,!E(G),E(G)?0:G,h(N))}finally{I[k++]=void 0,I[k++]=void 0}}collidersWithAabbIntersectingAabb(g,C,B){try{K(g,WA),K(C,WA),A.rawquerypipeline_collidersWithAabbIntersecti