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