hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
1 lines • 5.16 MB
JavaScript
import{createRequire as QG1}from"node:module";var JG1=Object.create;var{getPrototypeOf:XG1,defineProperty:nR,getOwnPropertyNames:YG1}=Object;var $G1=Object.prototype.hasOwnProperty;var r=(Z,J,X)=>{X=Z!=null?JG1(XG1(Z)):{};let Y=J||!Z||!Z.__esModule?nR(X,"default",{value:Z,enumerable:!0}):X;for(let $ of YG1(Z))if(!$G1.call(Y,$))nR(Y,$,{get:()=>Z[$],enumerable:!0});return Y};var j=(Z,J)=>()=>(J||Z((J={exports:{}}).exports,J),J.exports);var Mq=(Z,J)=>{for(var X in J)nR(Z,X,{get:J[X],enumerable:!0,configurable:!0,set:(Y)=>J[X]=()=>Y})};var g=QG1(import.meta.url);var ay=j((IF6,aR)=>{var KG1=Object.prototype.hasOwnProperty,d6="~";function gG(){}if(Object.create){if(gG.prototype=Object.create(null),!new gG().__proto__)d6=!1}function WG1(Z,J,X){this.fn=Z,this.context=J,this.once=X||!1}function ny(Z,J,X,Y,$){if(typeof X!=="function")throw new TypeError("The listener must be a function");var Q=new WG1(X,Y||Z,$),K=d6?d6+J:J;if(!Z._events[K])Z._events[K]=Q,Z._eventsCount++;else if(!Z._events[K].fn)Z._events[K].push(Q);else Z._events[K]=[Z._events[K],Q];return Z}function Pq(Z,J){if(--Z._eventsCount===0)Z._events=new gG;else delete Z._events[J]}function P6(){this._events=new gG,this._eventsCount=0}P6.prototype.eventNames=function Z(){var J=[],X,Y;if(this._eventsCount===0)return J;for(Y in X=this._events)if(KG1.call(X,Y))J.push(d6?Y.slice(1):Y);if(Object.getOwnPropertySymbols)return J.concat(Object.getOwnPropertySymbols(X));return J};P6.prototype.listeners=function Z(J){var X=d6?d6+J:J,Y=this._events[X];if(!Y)return[];if(Y.fn)return[Y.fn];for(var $=0,Q=Y.length,K=new Array(Q);$<Q;$++)K[$]=Y[$].fn;return K};P6.prototype.listenerCount=function Z(J){var X=d6?d6+J:J,Y=this._events[X];if(!Y)return 0;if(Y.fn)return 1;return Y.length};P6.prototype.emit=function Z(J,X,Y,$,Q,K){var W=d6?d6+J:J;if(!this._events[W])return!1;var G=this._events[W],V=arguments.length,H,F;if(G.fn){if(G.once)this.removeListener(J,G.fn,void 0,!0);switch(V){case 1:return G.fn.call(G.context),!0;case 2:return G.fn.call(G.context,X),!0;case 3:return G.fn.call(G.context,X,Y),!0;case 4:return G.fn.call(G.context,X,Y,$),!0;case 5:return G.fn.call(G.context,X,Y,$,Q),!0;case 6:return G.fn.call(G.context,X,Y,$,Q,K),!0}for(F=1,H=new Array(V-1);F<V;F++)H[F-1]=arguments[F];G.fn.apply(G.context,H)}else{var z=G.length,q;for(F=0;F<z;F++){if(G[F].once)this.removeListener(J,G[F].fn,void 0,!0);switch(V){case 1:G[F].fn.call(G[F].context);break;case 2:G[F].fn.call(G[F].context,X);break;case 3:G[F].fn.call(G[F].context,X,Y);break;case 4:G[F].fn.call(G[F].context,X,Y,$);break;default:if(!H)for(q=1,H=new Array(V-1);q<V;q++)H[q-1]=arguments[q];G[F].fn.apply(G[F].context,H)}}}return!0};P6.prototype.on=function Z(J,X,Y){return ny(this,J,X,Y,!1)};P6.prototype.once=function Z(J,X,Y){return ny(this,J,X,Y,!0)};P6.prototype.removeListener=function Z(J,X,Y,$){var Q=d6?d6+J:J;if(!this._events[Q])return this;if(!X)return Pq(this,Q),this;var K=this._events[Q];if(K.fn){if(K.fn===X&&(!$||K.once)&&(!Y||K.context===Y))Pq(this,Q)}else{for(var W=0,G=[],V=K.length;W<V;W++)if(K[W].fn!==X||$&&!K[W].once||Y&&K[W].context!==Y)G.push(K[W]);if(G.length)this._events[Q]=G.length===1?G[0]:G;else Pq(this,Q)}return this};P6.prototype.removeAllListeners=function Z(J){var X;if(J){if(X=d6?d6+J:J,this._events[X])Pq(this,X)}else this._events=new gG,this._eventsCount=0;return this};P6.prototype.off=P6.prototype.removeListener;P6.prototype.addListener=P6.prototype.on;P6.prefixed=d6;P6.EventEmitter=P6;if(typeof aR!=="undefined")aR.exports=P6});var gQ=j((mb)=>{var P;Object.defineProperty(mb,"__esModule",{value:!0});var Z1=new Array(128).fill(void 0);function F1(Z){return Z1[Z]}Z1.push(void 0,null,!0,!1);var aG=Z1.length;function v8(Z){aG===Z1.length&&Z1.push(Z1.length+1);let J=aG;return aG=Z1[J],Z1[J]=Z,J}function oR(Z,J){try{return Z.apply(this,J)}catch(X){P.__wbindgen_export_0(v8(X))}}function D0(Z){return Z==null}var XY=null;function S8(){return(XY===null||XY.buffer.detached===!0||XY.buffer.detached===void 0&&XY.buffer!==P.memory.buffer)&&(XY=new DataView(P.memory.buffer)),XY}function oG(Z){let J=F1(Z);return function(X){X<132||(Z1[X]=aG,aG=X)}(Z),J}var Eb=typeof TextDecoder!="undefined"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder!="undefined"&&Eb.decode();var cG=null;function kb(Z,J){return Z>>>=0,Eb.decode((cG!==null&&cG.byteLength!==0||(cG=new Uint8Array(P.memory.buffer)),cG).subarray(Z,Z+J))}function S(Z,J){if(!(Z instanceof J))throw new Error(`expected instance of ${J.name}`)}var R1=128;function b1(Z){if(R1==1)throw new Error("out of js stack");return Z1[--R1]=Z,R1}var lG=null;function GG1(Z,J){return Z>>>=0,(lG!==null&&lG.byteLength!==0||(lG=new Int32Array(P.memory.buffer)),lG).subarray(Z/4,Z/4+J)}var pG=null;function Ib(){return pG!==null&&pG.byteLength!==0||(pG=new Float32Array(P.memory.buffer)),pG}function ey(Z,J){return Z>>>=0,Ib().subarray(Z/4,Z/4+J)}var iG=null;function _b(){return iG!==null&&iG.byteLength!==0||(iG=new Uint32Array(P.memory.buffer)),iG}var c6=0;function dG(Z,J){let X=J(4*Z.length,4)>>>0;return _b().set(Z,X/4),c6=Z.length,X}function qJ(Z,J){let X=J(4*Z.length,4)>>>0;return Ib().set(Z,X/4),c6=Z.length,X}Object.freeze({Vertex:0,0:"Vertex",Edge:1,1:"Edge",Face:2,2:"Face",Unknown:3,3:"Unknown"});var Sq=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"}),V4=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"});var n8=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",Voxels:18,18:"Voxels"}),rR=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>P.__wbg_rawbroadphase_free(Z>>>0,1));class $Y{static __wrap(Z){Z>>>=0;let J=Object.create($Y.prototype);return J.__wbg_ptr=Z,rR.register(J,J.__wbg_ptr,J),J}__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,rR.unregister(this),Z}free(){let Z=this.__destroy_into_raw();P.__wbg_rawbroadphase_free(Z,0)}constructor(){let Z=P.rawbroadphase_new();return this.__wbg_ptr=Z>>>0,rR.register(this,this.__wbg_ptr,this),this}}var Zb=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>P.__wbg_rawccdsolver_free(Z>>>0,1));class Iq{__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,Zb.unregister(this),Z}free(){let Z=this.__destroy_into_raw();P.__wbg_rawccdsolver_free(Z,0)}constructor(){let Z=P.rawccdsolver_new();return this.__wbg_ptr=Z>>>0,Zb.register(this,this.__wbg_ptr,this),this}}var Jb=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>P.__wbg_rawcharactercollision_free(Z>>>0,1));class BM{__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,Jb.unregister(this),Z}free(){let Z=this.__destroy_into_raw();P.__wbg_rawcharactercollision_free(Z,0)}constructor(){let Z=P.rawcharactercollision_new();return this.__wbg_ptr=Z>>>0,Jb.register(this,this.__wbg_ptr,this),this}handle(){return P.rawcharactercollision_handle(this.__wbg_ptr)}translationDeltaApplied(){let Z=P.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);return h.__wrap(Z)}translationDeltaRemaining(){let Z=P.rawcharactercollision_translationDeltaRemaining(this.__wbg_ptr);return h.__wrap(Z)}toi(){return P.rawcharactercollision_toi(this.__wbg_ptr)}worldWitness1(){let Z=P.rawcharactercollision_worldWitness1(this.__wbg_ptr);return h.__wrap(Z)}worldWitness2(){let Z=P.rawcharactercollision_worldWitness2(this.__wbg_ptr);return h.__wrap(Z)}worldNormal1(){let Z=P.rawcharactercollision_worldNormal1(this.__wbg_ptr);return h.__wrap(Z)}worldNormal2(){let Z=P.rawcharactercollision_worldNormal2(this.__wbg_ptr);return h.__wrap(Z)}}var tR=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>P.__wbg_rawcolliderset_free(Z>>>0,1));class a1{static __wrap(Z){Z>>>=0;let J=Object.create(a1.prototype);return J.__wbg_ptr=Z,tR.register(J,J.__wbg_ptr,J),J}__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,tR.unregister(this),Z}free(){let Z=this.__destroy_into_raw();P.__wbg_rawcolliderset_free(Z,0)}coTranslation(Z){let J=P.rawcolliderset_coTranslation(this.__wbg_ptr,Z);return h.__wrap(J)}coRotation(Z){let J=P.rawcolliderset_coRotation(this.__wbg_ptr,Z);return i0.__wrap(J)}coSetTranslation(Z,J,X,Y){P.rawcolliderset_coSetTranslation(this.__wbg_ptr,Z,J,X,Y)}coSetTranslationWrtParent(Z,J,X,Y){P.rawcolliderset_coSetTranslationWrtParent(this.__wbg_ptr,Z,J,X,Y)}coSetRotation(Z,J,X,Y,$){P.rawcolliderset_coSetRotation(this.__wbg_ptr,Z,J,X,Y,$)}coSetRotationWrtParent(Z,J,X,Y,$){P.rawcolliderset_coSetRotationWrtParent(this.__wbg_ptr,Z,J,X,Y,$)}coIsSensor(Z){return P.rawcolliderset_coIsSensor(this.__wbg_ptr,Z)!==0}coShapeType(Z){return P.rawcolliderset_coShapeType(this.__wbg_ptr,Z)}coHalfspaceNormal(Z){let J=P.rawcolliderset_coHalfspaceNormal(this.__wbg_ptr,Z);return J===0?void 0:h.__wrap(J)}coHalfExtents(Z){let J=P.rawcolliderset_coHalfExtents(this.__wbg_ptr,Z);return J===0?void 0:h.__wrap(J)}coSetHalfExtents(Z,J){S(J,h),P.rawcolliderset_coSetHalfExtents(this.__wbg_ptr,Z,J.__wbg_ptr)}coRadius(Z){let J=P.rawcolliderset_coRadius(this.__wbg_ptr,Z);return J===4294967297?void 0:J}coSetRadius(Z,J){P.rawcolliderset_coSetRadius(this.__wbg_ptr,Z,J)}coHalfHeight(Z){let J=P.rawcolliderset_coHalfHeight(this.__wbg_ptr,Z);return J===4294967297?void 0:J}coSetHalfHeight(Z,J){P.rawcolliderset_coSetHalfHeight(this.__wbg_ptr,Z,J)}coRoundRadius(Z){let J=P.rawcolliderset_coRoundRadius(this.__wbg_ptr,Z);return J===4294967297?void 0:J}coSetRoundRadius(Z,J){P.rawcolliderset_coSetRoundRadius(this.__wbg_ptr,Z,J)}coVoxelData(Z){try{let Y=P.__wbindgen_add_to_stack_pointer(-16);P.rawcolliderset_coVoxelData(Y,this.__wbg_ptr,Z);var J=S8().getInt32(Y+0,!0),X=S8().getInt32(Y+4,!0);let $;return J!==0&&($=GG1(J,X).slice(),P.__wbindgen_export_1(J,4*X,4)),$}finally{P.__wbindgen_add_to_stack_pointer(16)}}coVoxelSize(Z){let J=P.rawcolliderset_coVoxelSize(this.__wbg_ptr,Z);return J===0?void 0:h.__wrap(J)}coSetVoxel(Z,J,X,Y,$){P.rawcolliderset_coSetVoxel(this.__wbg_ptr,Z,J,X,Y,$)}coPropagateVoxelChange(Z,J,X,Y,$,Q,K,W){P.rawcolliderset_coPropagateVoxelChange(this.__wbg_ptr,Z,J,X,Y,$,Q,K,W)}coCombineVoxelStates(Z,J,X,Y,$){P.rawcolliderset_coCombineVoxelStates(this.__wbg_ptr,Z,J,X,Y,$)}coVertices(Z){try{let Y=P.__wbindgen_add_to_stack_pointer(-16);P.rawcolliderset_coVertices(Y,this.__wbg_ptr,Z);var J=S8().getInt32(Y+0,!0),X=S8().getInt32(Y+4,!0);let $;return J!==0&&($=ey(J,X).slice(),P.__wbindgen_export_1(J,4*X,4)),$}finally{P.__wbindgen_add_to_stack_pointer(16)}}coIndices(Z){try{let Y=P.__wbindgen_add_to_stack_pointer(-16);P.rawcolliderset_coIndices(Y,this.__wbg_ptr,Z);var J=S8().getInt32(Y+0,!0),X=S8().getInt32(Y+4,!0);let $;return J!==0&&($=function(Q,K){return Q>>>=0,_b().subarray(Q/4,Q/4+K)}(J,X).slice(),P.__wbindgen_export_1(J,4*X,4)),$}finally{P.__wbindgen_add_to_stack_pointer(16)}}coTriMeshFlags(Z){let J=P.rawcolliderset_coTriMeshFlags(this.__wbg_ptr,Z);return J===4294967297?void 0:J}coHeightFieldFlags(Z){let J=P.rawcolliderset_coHeightFieldFlags(this.__wbg_ptr,Z);return J===4294967297?void 0:J}coHeightfieldHeights(Z){try{let Y=P.__wbindgen_add_to_stack_pointer(-16);P.rawcolliderset_coHeightfieldHeights(Y,this.__wbg_ptr,Z);var J=S8().getInt32(Y+0,!0),X=S8().getInt32(Y+4,!0);let $;return J!==0&&($=ey(J,X).slice(),P.__wbindgen_export_1(J,4*X,4)),$}finally{P.__wbindgen_add_to_stack_pointer(16)}}coHeightfieldScale(Z){let J=P.rawcolliderset_coHeightfieldScale(this.__wbg_ptr,Z);return J===0?void 0:h.__wrap(J)}coHeightfieldNRows(Z){let J=P.rawcolliderset_coHeightfieldNRows(this.__wbg_ptr,Z);return J===4294967297?void 0:J}coHeightfieldNCols(Z){let J=P.rawcolliderset_coHeightfieldNCols(this.__wbg_ptr,Z);return J===4294967297?void 0:J}coParent(Z){try{let Y=P.__wbindgen_add_to_stack_pointer(-16);P.rawcolliderset_coParent(Y,this.__wbg_ptr,Z);var J=S8().getInt32(Y+0,!0),X=S8().getFloat64(Y+8,!0);return J===0?void 0:X}finally{P.__wbindgen_add_to_stack_pointer(16)}}coSetEnabled(Z,J){P.rawcolliderset_coSetEnabled(this.__wbg_ptr,Z,J)}coIsEnabled(Z){return P.rawcolliderset_coIsEnabled(this.__wbg_ptr,Z)!==0}coSetContactSkin(Z,J){P.rawcolliderset_coSetContactSkin(this.__wbg_ptr,Z,J)}coContactSkin(Z){return P.rawcolliderset_coContactSkin(this.__wbg_ptr,Z)}coFriction(Z){return P.rawcolliderset_coFriction(this.__wbg_ptr,Z)}coRestitution(Z){return P.rawcolliderset_coRestitution(this.__wbg_ptr,Z)}coDensity(Z){return P.rawcolliderset_coDensity(this.__wbg_ptr,Z)}coMass(Z){return P.rawcolliderset_coMass(this.__wbg_ptr,Z)}coVolume(Z){return P.rawcolliderset_coVolume(this.__wbg_ptr,Z)}coCollisionGroups(Z){return P.rawcolliderset_coCollisionGroups(this.__wbg_ptr,Z)>>>0}coSolverGroups(Z){return P.rawcolliderset_coSolverGroups(this.__wbg_ptr,Z)>>>0}coActiveHooks(Z){return P.rawcolliderset_coActiveHooks(this.__wbg_ptr,Z)>>>0}coActiveCollisionTypes(Z){return P.rawcolliderset_coActiveCollisionTypes(this.__wbg_ptr,Z)}coActiveEvents(Z){return P.rawcolliderset_coActiveEvents(this.__wbg_ptr,Z)>>>0}coContactForceEventThreshold(Z){return P.rawcolliderset_coContactForceEventThreshold(this.__wbg_ptr,Z)}coContainsPoint(Z,J){return S(J,h),P.rawcolliderset_coContainsPoint(this.__wbg_ptr,Z,J.__wbg_ptr)!==0}coCastShape(Z,J,X,Y,$,Q,K,W,G){S(J,h),S(X,O0),S(Y,h),S($,i0),S(Q,h);let V=P.rawcolliderset_coCastShape(this.__wbg_ptr,Z,J.__wbg_ptr,X.__wbg_ptr,Y.__wbg_ptr,$.__wbg_ptr,Q.__wbg_ptr,K,W,G);return V===0?void 0:bq.__wrap(V)}coCastCollider(Z,J,X,Y,$,Q,K){S(J,h),S(Y,h);let W=P.rawcolliderset_coCastCollider(this.__wbg_ptr,Z,J.__wbg_ptr,X,Y.__wbg_ptr,$,Q,K);return W===0?void 0:Aq.__wrap(W)}coIntersectsShape(Z,J,X,Y){return S(J,O0),S(X,h),S(Y,i0),P.rawcolliderset_coIntersectsShape(this.__wbg_ptr,Z,J.__wbg_ptr,X.__wbg_ptr,Y.__wbg_ptr)!==0}coContactShape(Z,J,X,Y,$){S(J,O0),S(X,h),S(Y,i0);let Q=P.rawcolliderset_coContactShape(this.__wbg_ptr,Z,J.__wbg_ptr,X.__wbg_ptr,Y.__wbg_ptr,$);return Q===0?void 0:rG.__wrap(Q)}coContactCollider(Z,J,X){let Y=P.rawcolliderset_coContactCollider(this.__wbg_ptr,Z,J,X);return Y===0?void 0:rG.__wrap(Y)}coProjectPoint(Z,J,X){S(J,h);let Y=P.rawcolliderset_coProjectPoint(this.__wbg_ptr,Z,J.__wbg_ptr,X);return xq.__wrap(Y)}coIntersectsRay(Z,J,X,Y){return S(J,h),S(X,h),P.rawcolliderset_coIntersectsRay(this.__wbg_ptr,Z,J.__wbg_ptr,X.__wbg_ptr,Y)!==0}coCastRay(Z,J,X,Y,$){return S(J,h),S(X,h),P.rawcolliderset_coCastRay(this.__wbg_ptr,Z,J.__wbg_ptr,X.__wbg_ptr,Y,$)}coCastRayAndGetNormal(Z,J,X,Y,$){S(J,h),S(X,h);let Q=P.rawcolliderset_coCastRayAndGetNormal(this.__wbg_ptr,Z,J.__wbg_ptr,X.__wbg_ptr,Y,$);return Q===0?void 0:yq.__wrap(Q)}coSetSensor(Z,J){P.rawcolliderset_coSetSensor(this.__wbg_ptr,Z,J)}coSetRestitution(Z,J){P.rawcolliderset_coSetRestitution(this.__wbg_ptr,Z,J)}coSetFriction(Z,J){P.rawcolliderset_coSetFriction(this.__wbg_ptr,Z,J)}coFrictionCombineRule(Z){return P.rawcolliderset_coFrictionCombineRule(this.__wbg_ptr,Z)>>>0}coSetFrictionCombineRule(Z,J){P.rawcolliderset_coSetFrictionCombineRule(this.__wbg_ptr,Z,J)}coRestitutionCombineRule(Z){return P.rawcolliderset_coRestitutionCombineRule(this.__wbg_ptr,Z)>>>0}coSetRestitutionCombineRule(Z,J){P.rawcolliderset_coSetRestitutionCombineRule(this.__wbg_ptr,Z,J)}coSetCollisionGroups(Z,J){P.rawcolliderset_coSetCollisionGroups(this.__wbg_ptr,Z,J)}coSetSolverGroups(Z,J){P.rawcolliderset_coSetSolverGroups(this.__wbg_ptr,Z,J)}coSetActiveHooks(Z,J){P.rawcolliderset_coSetActiveHooks(this.__wbg_ptr,Z,J)}coSetActiveEvents(Z,J){P.rawcolliderset_coSetActiveEvents(this.__wbg_ptr,Z,J)}coSetActiveCollisionTypes(Z,J){P.rawcolliderset_coSetActiveCollisionTypes(this.__wbg_ptr,Z,J)}coSetShape(Z,J){S(J,O0),P.rawcolliderset_coSetShape(this.__wbg_ptr,Z,J.__wbg_ptr)}coSetContactForceEventThreshold(Z,J){P.rawcolliderset_coSetContactForceEventThreshold(this.__wbg_ptr,Z,J)}coSetDensity(Z,J){P.rawcolliderset_coSetDensity(this.__wbg_ptr,Z,J)}coSetMass(Z,J){P.rawcolliderset_coSetMass(this.__wbg_ptr,Z,J)}coSetMassProperties(Z,J,X,Y,$){S(X,h),S(Y,h),S($,i0),P.rawcolliderset_coSetMassProperties(this.__wbg_ptr,Z,J,X.__wbg_ptr,Y.__wbg_ptr,$.__wbg_ptr)}constructor(){let Z=P.rawcolliderset_new();return this.__wbg_ptr=Z>>>0,tR.register(this,this.__wbg_ptr,this),this}len(){return P.rawcolliderset_len(this.__wbg_ptr)>>>0}contains(Z){return P.rawcolliderset_contains(this.__wbg_ptr,Z)!==0}createCollider(Z,J,X,Y,$,Q,K,W,G,V,H,F,z,q,U,L,B,w,O,N,R,D,M,C,T){try{let v=P.__wbindgen_add_to_stack_pointer(-16);S(J,O0),S(X,h),S(Y,i0),S(K,h),S(W,h),S(G,i0),S(T,g1),P.rawcolliderset_createCollider(v,this.__wbg_ptr,Z,J.__wbg_ptr,X.__wbg_ptr,Y.__wbg_ptr,$,Q,K.__wbg_ptr,W.__wbg_ptr,G.__wbg_ptr,V,H,F,z,q,U,L,B,w,O,N,R,D,M,C,T.__wbg_ptr);var E=S8().getInt32(v+0,!0),A=S8().getFloat64(v+8,!0);return E===0?void 0:A}finally{P.__wbindgen_add_to_stack_pointer(16)}}remove(Z,J,X,Y){S(J,$Z),S(X,g1),P.rawcolliderset_remove(this.__wbg_ptr,Z,J.__wbg_ptr,X.__wbg_ptr,Y)}isHandleValid(Z){return P.rawcolliderset_contains(this.__wbg_ptr,Z)!==0}forEachColliderHandle(Z){try{P.rawcolliderset_forEachColliderHandle(this.__wbg_ptr,b1(Z))}finally{Z1[R1++]=void 0}}}var Xb=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>P.__wbg_rawcollidershapecasthit_free(Z>>>0,1));class Aq{static __wrap(Z){Z>>>=0;let J=Object.create(Aq.prototype);return J.__wbg_ptr=Z,Xb.register(J,J.__wbg_ptr,J),J}__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,Xb.unregister(this),Z}free(){let Z=this.__destroy_into_raw();P.__wbg_rawcollidershapecasthit_free(Z,0)}colliderHandle(){return P.rawcharactercollision_handle(this.__wbg_ptr)}time_of_impact(){return P.rawcollidershapecasthit_time_of_impact(this.__wbg_ptr)}witness1(){let Z=P.rawcollidershapecasthit_witness1(this.__wbg_ptr);return h.__wrap(Z)}witness2(){let Z=P.rawcollidershapecasthit_witness2(this.__wbg_ptr);return h.__wrap(Z)}normal1(){let Z=P.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);return h.__wrap(Z)}normal2(){let Z=P.rawcharactercollision_translationDeltaRemaining(this.__wbg_ptr);return h.__wrap(Z)}}var Yb=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>P.__wbg_rawcontactforceevent_free(Z>>>0,1));class wM{static __wrap(Z){Z>>>=0;let J=Object.create(wM.prototype);return J.__wbg_ptr=Z,Yb.register(J,J.__wbg_ptr,J),J}__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,Yb.unregister(this),Z}free(){let Z=this.__destroy_into_raw();P.__wbg_rawcontactforceevent_free(Z,0)}collider1(){return P.rawcharactercollision_handle(this.__wbg_ptr)}collider2(){return P.rawcontactforceevent_collider2(this.__wbg_ptr)}total_force(){let Z=P.rawcontactforceevent_total_force(this.__wbg_ptr);return h.__wrap(Z)}total_force_magnitude(){return P.rawcontactforceevent_total_force_magnitude(this.__wbg_ptr)}max_force_direction(){let Z=P.rawcontactforceevent_max_force_direction(this.__wbg_ptr);return h.__wrap(Z)}max_force_magnitude(){return P.rawcontactforceevent_max_force_magnitude(this.__wbg_ptr)}}var $b=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>P.__wbg_rawcontactmanifold_free(Z>>>0,1));class jM{static __wrap(Z){Z>>>=0;let J=Object.create(jM.prototype);return J.__wbg_ptr=Z,$b.register(J,J.__wbg_ptr,J),J}__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,$b.unregister(this),Z}free(){let Z=this.__destroy_into_raw();P.__wbg_rawcontactmanifold_free(Z,0)}normal(){let Z=P.rawcontactmanifold_normal(this.__wbg_ptr);return h.__wrap(Z)}local_n1(){let Z=P.rawcontactmanifold_local_n1(this.__wbg_ptr);return h.__wrap(Z)}local_n2(){let Z=P.rawcontactmanifold_local_n2(this.__wbg_ptr);return h.__wrap(Z)}subshape1(){return P.rawcontactmanifold_subshape1(this.__wbg_ptr)>>>0}subshape2(){return P.rawcontactmanifold_subshape2(this.__wbg_ptr)>>>0}num_contacts(){return P.rawcontactmanifold_num_contacts(this.__wbg_ptr)>>>0}contact_local_p1(Z){let J=P.rawcontactmanifold_contact_local_p1(this.__wbg_ptr,Z);return J===0?void 0:h.__wrap(J)}contact_local_p2(Z){let J=P.rawcontactmanifold_contact_local_p2(this.__wbg_ptr,Z);return J===0?void 0:h.__wrap(J)}contact_dist(Z){return P.rawcontactmanifold_contact_dist(this.__wbg_ptr,Z)}contact_fid1(Z){return P.rawcontactmanifold_contact_fid1(this.__wbg_ptr,Z)>>>0}contact_fid2(Z){return P.rawcontactmanifold_contact_fid2(this.__wbg_ptr,Z)>>>0}contact_impulse(Z){return P.rawcontactmanifold_contact_impulse(this.__wbg_ptr,Z)}contact_tangent_impulse_x(Z){return P.rawcontactmanifold_contact_tangent_impulse_x(this.__wbg_ptr,Z)}contact_tangent_impulse_y(Z){return P.rawcontactmanifold_contact_tangent_impulse_y(this.__wbg_ptr,Z)}num_solver_contacts(){return P.rawcontactmanifold_num_solver_contacts(this.__wbg_ptr)>>>0}solver_contact_point(Z){let J=P.rawcontactmanifold_solver_contact_point(this.__wbg_ptr,Z);return J===0?void 0:h.__wrap(J)}solver_contact_dist(Z){return P.rawcontactmanifold_solver_contact_dist(this.__wbg_ptr,Z)}solver_contact_friction(Z){return P.rawcontactmanifold_solver_contact_friction(this.__wbg_ptr,Z)}solver_contact_restitution(Z){return P.rawcontactmanifold_solver_contact_restitution(this.__wbg_ptr,Z)}solver_contact_tangent_velocity(Z){let J=P.rawcontactmanifold_solver_contact_tangent_velocity(this.__wbg_ptr,Z);return h.__wrap(J)}}var Qb=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>P.__wbg_rawcontactpair_free(Z>>>0,1));class OM{static __wrap(Z){Z>>>=0;let J=Object.create(OM.prototype);return J.__wbg_ptr=Z,Qb.register(J,J.__wbg_ptr,J),J}__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,Qb.unregister(this),Z}free(){let Z=this.__destroy_into_raw();P.__wbg_rawcontactpair_free(Z,0)}collider1(){return P.rawcontactpair_collider1(this.__wbg_ptr)}collider2(){return P.rawcontactpair_collider2(this.__wbg_ptr)}numContactManifolds(){return P.rawcontactpair_numContactManifolds(this.__wbg_ptr)>>>0}contactManifold(Z){let J=P.rawcontactpair_contactManifold(this.__wbg_ptr,Z);return J===0?void 0:jM.__wrap(J)}}var Kb=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>P.__wbg_rawdebugrenderpipeline_free(Z>>>0,1));class vb{__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,Kb.unregister(this),Z}free(){let Z=this.__destroy_into_raw();P.__wbg_rawdebugrenderpipeline_free(Z,0)}constructor(){let Z=P.rawdebugrenderpipeline_new();return this.__wbg_ptr=Z>>>0,Kb.register(this,this.__wbg_ptr,this),this}vertices(){return oG(P.rawdebugrenderpipeline_vertices(this.__wbg_ptr))}colors(){return oG(P.rawdebugrenderpipeline_colors(this.__wbg_ptr))}render(Z,J,X,Y,$,Q,K){try{S(Z,g1),S(J,a1),S(X,YZ),S(Y,QZ),S($,jJ),P.rawdebugrenderpipeline_render(this.__wbg_ptr,Z.__wbg_ptr,J.__wbg_ptr,X.__wbg_ptr,Y.__wbg_ptr,$.__wbg_ptr,Q,b1(K))}finally{Z1[R1++]=void 0}}}var Wb=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>P.__wbg_rawdeserializedworld_free(Z>>>0,1));class NM{static __wrap(Z){Z>>>=0;let J=Object.create(NM.prototype);return J.__wbg_ptr=Z,Wb.register(J,J.__wbg_ptr,J),J}__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,Wb.unregister(this),Z}free(){let Z=this.__destroy_into_raw();P.__wbg_rawdeserializedworld_free(Z,0)}takeGravity(){let Z=P.rawdeserializedworld_takeGravity(this.__wbg_ptr);return Z===0?void 0:h.__wrap(Z)}takeIntegrationParameters(){let Z=P.rawdeserializedworld_takeIntegrationParameters(this.__wbg_ptr);return Z===0?void 0:QY.__wrap(Z)}takeIslandManager(){let Z=P.rawdeserializedworld_takeIslandManager(this.__wbg_ptr);return Z===0?void 0:$Z.__wrap(Z)}takeBroadPhase(){let Z=P.rawdeserializedworld_takeBroadPhase(this.__wbg_ptr);return Z===0?void 0:$Y.__wrap(Z)}takeNarrowPhase(){let Z=P.rawdeserializedworld_takeNarrowPhase(this.__wbg_ptr);return Z===0?void 0:jJ.__wrap(Z)}takeBodies(){let Z=P.rawdeserializedworld_takeBodies(this.__wbg_ptr);return Z===0?void 0:g1.__wrap(Z)}takeColliders(){let Z=P.rawdeserializedworld_takeColliders(this.__wbg_ptr);return Z===0?void 0:a1.__wrap(Z)}takeImpulseJoints(){let Z=P.rawdeserializedworld_takeImpulseJoints(this.__wbg_ptr);return Z===0?void 0:YZ.__wrap(Z)}takeMultibodyJoints(){let Z=P.rawdeserializedworld_takeMultibodyJoints(this.__wbg_ptr);return Z===0?void 0:QZ.__wrap(Z)}}var Gb=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>P.__wbg_rawdynamicraycastvehiclecontroller_free(Z>>>0,1));class Sb{__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,Gb.unregister(this),Z}free(){let Z=this.__destroy_into_raw();P.__wbg_rawdynamicraycastvehiclecontroller_free(Z,0)}constructor(Z){let J=P.rawdynamicraycastvehiclecontroller_new(Z);return this.__wbg_ptr=J>>>0,Gb.register(this,this.__wbg_ptr,this),this}current_vehicle_speed(){return P.rawdynamicraycastvehiclecontroller_current_vehicle_speed(this.__wbg_ptr)}chassis(){return P.rawdynamicraycastvehiclecontroller_chassis(this.__wbg_ptr)}index_up_axis(){return P.rawdynamicraycastvehiclecontroller_index_up_axis(this.__wbg_ptr)>>>0}set_index_up_axis(Z){P.rawdynamicraycastvehiclecontroller_set_index_up_axis(this.__wbg_ptr,Z)}index_forward_axis(){return P.rawdynamicraycastvehiclecontroller_index_forward_axis(this.__wbg_ptr)>>>0}set_index_forward_axis(Z){P.rawdynamicraycastvehiclecontroller_set_index_forward_axis(this.__wbg_ptr,Z)}add_wheel(Z,J,X,Y,$){S(Z,h),S(J,h),S(X,h),P.rawdynamicraycastvehiclecontroller_add_wheel(this.__wbg_ptr,Z.__wbg_ptr,J.__wbg_ptr,X.__wbg_ptr,Y,$)}num_wheels(){return P.rawdynamicraycastvehiclecontroller_num_wheels(this.__wbg_ptr)>>>0}update_vehicle(Z,J,X,Y,$,Q,K){try{S(J,g1),S(X,a1),S(Y,hq),P.rawdynamicraycastvehiclecontroller_update_vehicle(this.__wbg_ptr,Z,J.__wbg_ptr,X.__wbg_ptr,Y.__wbg_ptr,$,D0(Q)?4294967297:Q>>>0,b1(K))}finally{Z1[R1++]=void 0}}wheel_chassis_connection_point_cs(Z){let J=P.rawdynamicraycastvehiclecontroller_wheel_chassis_connection_point_cs(this.__wbg_ptr,Z);return J===0?void 0:h.__wrap(J)}set_wheel_chassis_connection_point_cs(Z,J){S(J,h),P.rawdynamicraycastvehiclecontroller_set_wheel_chassis_connection_point_cs(this.__wbg_ptr,Z,J.__wbg_ptr)}wheel_suspension_rest_length(Z){let J=P.rawdynamicraycastvehiclecontroller_wheel_suspension_rest_length(this.__wbg_ptr,Z);return J===4294967297?void 0:J}set_wheel_suspension_rest_length(Z,J){P.rawdynamicraycastvehiclecontroller_set_wheel_suspension_rest_length(this.__wbg_ptr,Z,J)}wheel_max_suspension_travel(Z){let J=P.rawdynamicraycastvehiclecontroller_wheel_max_suspension_travel(this.__wbg_ptr,Z);return J===4294967297?void 0:J}set_wheel_max_suspension_travel(Z,J){P.rawdynamicraycastvehiclecontroller_set_wheel_max_suspension_travel(this.__wbg_ptr,Z,J)}wheel_radius(Z){let J=P.rawdynamicraycastvehiclecontroller_wheel_radius(this.__wbg_ptr,Z);return J===4294967297?void 0:J}set_wheel_radius(Z,J){P.rawdynamicraycastvehiclecontroller_set_wheel_radius(this.__wbg_ptr,Z,J)}wheel_suspension_stiffness(Z){let J=P.rawdynamicraycastvehiclecontroller_wheel_suspension_stiffness(this.__wbg_ptr,Z);return J===4294967297?void 0:J}set_wheel_suspension_stiffness(Z,J){P.rawdynamicraycastvehiclecontroller_set_wheel_suspension_stiffness(this.__wbg_ptr,Z,J)}wheel_suspension_compression(Z){let J=P.rawdynamicraycastvehiclecontroller_wheel_suspension_compression(this.__wbg_ptr,Z);return J===4294967297?void 0:J}set_wheel_suspension_compression(Z,J){P.rawdynamicraycastvehiclecontroller_set_wheel_suspension_compression(this.__wbg_ptr,Z,J)}wheel_suspension_relaxation(Z){let J=P.rawdynamicraycastvehiclecontroller_wheel_suspension_relaxation(this.__wbg_ptr,Z);return J===4294967297?void 0:J}set_wheel_suspension_relaxation(Z,J){P.rawdynamicraycastvehiclecontroller_set_wheel_suspension_relaxation(this.__wbg_ptr,Z,J)}wheel_max_suspension_force(Z){let J=P.rawdynamicraycastvehiclecontroller_wheel_max_suspension_force(this.__wbg_ptr,Z);return J===4294967297?void 0:J}set_wheel_max_suspension_force(Z,J){P.rawdynamicraycastvehiclecontroller_set_wheel_max_suspension_force(this.__wbg_ptr,Z,J)}wheel_brake(Z){let J=P.rawdynamicraycastvehiclecontroller_wheel_brake(this.__wbg_ptr,Z);return J===4294967297?void 0:J}set_wheel_brake(Z,J){P.rawdynamicraycastvehiclecontroller_set_wheel_brake(this.__wbg_ptr,Z,J)}wheel_steering(Z){let J=P.rawdynamicraycastvehiclecontroller_wheel_steering(this.__wbg_ptr,Z);return J===4294967297?void 0:J}set_wheel_steering(Z,J){P.rawdynamicraycastvehiclecontroller_set_wheel_steering(this.__wbg_ptr,Z,J)}wheel_engine_force(Z){let J=P.rawdynamicraycastvehiclecontroller_wheel_engine_force(this.__wbg_ptr,Z);return J===4294967297?void 0:J}set_wheel_engine_force(Z,J){P.rawdynamicraycastvehiclecontroller_set_wheel_engine_force(this.__wbg_ptr,Z,J)}wheel_direction_cs(Z){let J=P.rawdynamicraycastvehiclecontroller_wheel_direction_cs(this.__wbg_ptr,Z);return J===0?void 0:h.__wrap(J)}set_wheel_direction_cs(Z,J){S(J,h),P.rawdynamicraycastvehiclecontroller_set_wheel_direction_cs(this.__wbg_ptr,Z,J.__wbg_ptr)}wheel_axle_cs(Z){let J=P.rawdynamicraycastvehiclecontroller_wheel_axle_cs(this.__wbg_ptr,Z);return J===0?void 0:h.__wrap(J)}set_wheel_axle_cs(Z,J){S(J,h),P.rawdynamicraycastvehiclecontroller_set_wheel_axle_cs(this.__wbg_ptr,Z,J.__wbg_ptr)}wheel_friction_slip(Z){let J=P.rawdynamicraycastvehiclecontroller_wheel_friction_slip(this.__wbg_ptr,Z);return J===4294967297?void 0:J}set_wheel_friction_slip(Z,J){P.rawdynamicraycastvehiclecontroller_set_wheel_friction_slip(this.__wbg_ptr,Z,J)}wheel_side_friction_stiffness(Z){let J=P.rawdynamicraycastvehiclecontroller_wheel_side_friction_stiffness(this.__wbg_ptr,Z);return J===4294967297?void 0:J}set_wheel_side_friction_stiffness(Z,J){P.rawdynamicraycastvehiclecontroller_set_wheel_side_friction_stiffness(this.__wbg_ptr,Z,J)}wheel_rotation(Z){let J=P.rawdynamicraycastvehiclecontroller_wheel_rotation(this.__wbg_ptr,Z);return J===4294967297?void 0:J}wheel_forward_impulse(Z){let J=P.rawdynamicraycastvehiclecontroller_wheel_forward_impulse(this.__wbg_ptr,Z);return J===4294967297?void 0:J}wheel_side_impulse(Z){let J=P.rawdynamicraycastvehiclecontroller_wheel_side_impulse(this.__wbg_ptr,Z);return J===4294967297?void 0:J}wheel_suspension_force(Z){let J=P.rawdynamicraycastvehiclecontroller_wheel_suspension_force(this.__wbg_ptr,Z);return J===4294967297?void 0:J}wheel_contact_normal_ws(Z){let J=P.rawdynamicraycastvehiclecontroller_wheel_contact_normal_ws(this.__wbg_ptr,Z);return J===0?void 0:h.__wrap(J)}wheel_contact_point_ws(Z){let J=P.rawdynamicraycastvehiclecontroller_wheel_contact_point_ws(this.__wbg_ptr,Z);return J===0?void 0:h.__wrap(J)}wheel_suspension_length(Z){let J=P.rawdynamicraycastvehiclecontroller_wheel_suspension_length(this.__wbg_ptr,Z);return J===4294967297?void 0:J}wheel_hard_point_ws(Z){let J=P.rawdynamicraycastvehiclecontroller_wheel_hard_point_ws(this.__wbg_ptr,Z);return J===0?void 0:h.__wrap(J)}wheel_is_in_contact(Z){return P.rawdynamicraycastvehiclecontroller_wheel_is_in_contact(this.__wbg_ptr,Z)!==0}wheel_ground_object(Z){try{let Y=P.__wbindgen_add_to_stack_pointer(-16);P.rawdynamicraycastvehiclecontroller_wheel_ground_object(Y,this.__wbg_ptr,Z);var J=S8().getInt32(Y+0,!0),X=S8().getFloat64(Y+8,!0);return J===0?void 0:X}finally{P.__wbindgen_add_to_stack_pointer(16)}}}var Vb=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>P.__wbg_raweventqueue_free(Z>>>0,1));class RM{__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,Vb.unregister(this),Z}free(){let Z=this.__destroy_into_raw();P.__wbg_raweventqueue_free(Z,0)}constructor(Z){let J=P.raweventqueue_new(Z);return this.__wbg_ptr=J>>>0,Vb.register(this,this.__wbg_ptr,this),this}drainCollisionEvents(Z){try{P.raweventqueue_drainCollisionEvents(this.__wbg_ptr,b1(Z))}finally{Z1[R1++]=void 0}}drainContactForceEvents(Z){try{P.raweventqueue_drainContactForceEvents(this.__wbg_ptr,b1(Z))}finally{Z1[R1++]=void 0}}clear(){P.raweventqueue_clear(this.__wbg_ptr)}}var Hb=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>P.__wbg_rawgenericjoint_free(Z>>>0,1));class a8{static __wrap(Z){Z>>>=0;let J=Object.create(a8.prototype);return J.__wbg_ptr=Z,Hb.register(J,J.__wbg_ptr,J),J}__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,Hb.unregister(this),Z}free(){let Z=this.__destroy_into_raw();P.__wbg_rawgenericjoint_free(Z,0)}static generic(Z,J,X,Y){S(Z,h),S(J,h),S(X,h);let $=P.rawgenericjoint_generic(Z.__wbg_ptr,J.__wbg_ptr,X.__wbg_ptr,Y);return $===0?void 0:a8.__wrap($)}static spring(Z,J,X,Y,$){S(Y,h),S($,h);let Q=P.rawgenericjoint_spring(Z,J,X,Y.__wbg_ptr,$.__wbg_ptr);return a8.__wrap(Q)}static rope(Z,J,X){S(J,h),S(X,h);let Y=P.rawgenericjoint_rope(Z,J.__wbg_ptr,X.__wbg_ptr);return a8.__wrap(Y)}static spherical(Z,J){S(Z,h),S(J,h);let X=P.rawgenericjoint_spherical(Z.__wbg_ptr,J.__wbg_ptr);return a8.__wrap(X)}static prismatic(Z,J,X,Y,$,Q){S(Z,h),S(J,h),S(X,h);let K=P.rawgenericjoint_prismatic(Z.__wbg_ptr,J.__wbg_ptr,X.__wbg_ptr,Y,$,Q);return K===0?void 0:a8.__wrap(K)}static fixed(Z,J,X,Y){S(Z,h),S(J,i0),S(X,h),S(Y,i0);let $=P.rawgenericjoint_fixed(Z.__wbg_ptr,J.__wbg_ptr,X.__wbg_ptr,Y.__wbg_ptr);return a8.__wrap($)}static revolute(Z,J,X){S(Z,h),S(J,h),S(X,h);let Y=P.rawgenericjoint_revolute(Z.__wbg_ptr,J.__wbg_ptr,X.__wbg_ptr);return Y===0?void 0:a8.__wrap(Y)}}var eR=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>P.__wbg_rawimpulsejointset_free(Z>>>0,1));class YZ{static __wrap(Z){Z>>>=0;let J=Object.create(YZ.prototype);return J.__wbg_ptr=Z,eR.register(J,J.__wbg_ptr,J),J}__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,eR.unregister(this),Z}free(){let Z=this.__destroy_into_raw();P.__wbg_rawimpulsejointset_free(Z,0)}jointType(Z){return P.rawimpulsejointset_jointType(this.__wbg_ptr,Z)}jointBodyHandle1(Z){return P.rawimpulsejointset_jointBodyHandle1(this.__wbg_ptr,Z)}jointBodyHandle2(Z){return P.rawimpulsejointset_jointBodyHandle2(this.__wbg_ptr,Z)}jointFrameX1(Z){let J=P.rawimpulsejointset_jointFrameX1(this.__wbg_ptr,Z);return i0.__wrap(J)}jointFrameX2(Z){let J=P.rawimpulsejointset_jointFrameX2(this.__wbg_ptr,Z);return i0.__wrap(J)}jointAnchor1(Z){let J=P.rawimpulsejointset_jointAnchor1(this.__wbg_ptr,Z);return h.__wrap(J)}jointAnchor2(Z){let J=P.rawimpulsejointset_jointAnchor2(this.__wbg_ptr,Z);return h.__wrap(J)}jointSetAnchor1(Z,J){S(J,h),P.rawimpulsejointset_jointSetAnchor1(this.__wbg_ptr,Z,J.__wbg_ptr)}jointSetAnchor2(Z,J){S(J,h),P.rawimpulsejointset_jointSetAnchor2(this.__wbg_ptr,Z,J.__wbg_ptr)}jointContactsEnabled(Z){return P.rawimpulsejointset_jointContactsEnabled(this.__wbg_ptr,Z)!==0}jointSetContactsEnabled(Z,J){P.rawimpulsejointset_jointSetContactsEnabled(this.__wbg_ptr,Z,J)}jointLimitsEnabled(Z,J){return P.rawimpulsejointset_jointLimitsEnabled(this.__wbg_ptr,Z,J)!==0}jointLimitsMin(Z,J){return P.rawimpulsejointset_jointLimitsMin(this.__wbg_ptr,Z,J)}jointLimitsMax(Z,J){return P.rawimpulsejointset_jointLimitsMax(this.__wbg_ptr,Z,J)}jointSetLimits(Z,J,X,Y){P.rawimpulsejointset_jointSetLimits(this.__wbg_ptr,Z,J,X,Y)}jointConfigureMotorModel(Z,J,X){P.rawimpulsejointset_jointConfigureMotorModel(this.__wbg_ptr,Z,J,X)}jointConfigureMotorVelocity(Z,J,X,Y){P.rawimpulsejointset_jointConfigureMotorVelocity(this.__wbg_ptr,Z,J,X,Y)}jointConfigureMotorPosition(Z,J,X,Y,$){P.rawimpulsejointset_jointConfigureMotorPosition(this.__wbg_ptr,Z,J,X,Y,$)}jointConfigureMotor(Z,J,X,Y,$,Q){P.rawimpulsejointset_jointConfigureMotor(this.__wbg_ptr,Z,J,X,Y,$,Q)}constructor(){let Z=P.rawimpulsejointset_new();return this.__wbg_ptr=Z>>>0,eR.register(this,this.__wbg_ptr,this),this}createJoint(Z,J,X,Y){return S(Z,a8),P.rawimpulsejointset_createJoint(this.__wbg_ptr,Z.__wbg_ptr,J,X,Y)}remove(Z,J){P.rawimpulsejointset_remove(this.__wbg_ptr,Z,J)}len(){return P.rawimpulsejointset_len(this.__wbg_ptr)>>>0}contains(Z){return P.rawimpulsejointset_contains(this.__wbg_ptr,Z)!==0}forEachJointHandle(Z){try{P.rawimpulsejointset_forEachJointHandle(this.__wbg_ptr,b1(Z))}finally{Z1[R1++]=void 0}}forEachJointAttachedToRigidBody(Z,J){try{P.rawimpulsejointset_forEachJointAttachedToRigidBody(this.__wbg_ptr,Z,b1(J))}finally{Z1[R1++]=void 0}}}var ZM=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>P.__wbg_rawintegrationparameters_free(Z>>>0,1));class QY{static __wrap(Z){Z>>>=0;let J=Object.create(QY.prototype);return J.__wbg_ptr=Z,ZM.register(J,J.__wbg_ptr,J),J}__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,ZM.unregister(this),Z}free(){let Z=this.__destroy_into_raw();P.__wbg_rawintegrationparameters_free(Z,0)}constructor(){let Z=P.rawintegrationparameters_new();return this.__wbg_ptr=Z>>>0,ZM.register(this,this.__wbg_ptr,this),this}get dt(){return P.rawintegrationparameters_dt(this.__wbg_ptr)}get contact_erp(){return P.rawintegrationparameters_contact_erp(this.__wbg_ptr)}get normalizedAllowedLinearError(){return P.rawdynamicraycastvehiclecontroller_current_vehicle_speed(this.__wbg_ptr)}get normalizedPredictionDistance(){return P.rawcontactforceevent_max_force_magnitude(this.__wbg_ptr)}get numSolverIterations(){return P.rawintegrationparameters_numSolverIterations(this.__wbg_ptr)>>>0}get numAdditionalFrictionIterations(){return P.rawdynamicraycastvehiclecontroller_index_up_axis(this.__wbg_ptr)>>>0}get numInternalPgsIterations(){return P.rawdynamicraycastvehiclecontroller_index_forward_axis(this.__wbg_ptr)>>>0}get minIslandSize(){return P.rawintegrationparameters_minIslandSize(this.__wbg_ptr)>>>0}get maxCcdSubsteps(){return P.rawintegrationparameters_maxCcdSubsteps(this.__wbg_ptr)>>>0}get lengthUnit(){return P.rawintegrationparameters_lengthUnit(this.__wbg_ptr)}set dt(Z){P.rawintegrationparameters_set_dt(this.__wbg_ptr,Z)}set contact_natural_frequency(Z){P.rawintegrationparameters_set_contact_natural_frequency(this.__wbg_ptr,Z)}set normalizedAllowedLinearError(Z){P.rawintegrationparameters_set_normalizedAllowedLinearError(this.__wbg_ptr,Z)}set normalizedPredictionDistance(Z){P.rawintegrationparameters_set_normalizedPredictionDistance(this.__wbg_ptr,Z)}set numSolverIterations(Z){P.rawintegrationparameters_set_numSolverIterations(this.__wbg_ptr,Z)}set numAdditionalFrictionIterations(Z){P.rawdynamicraycastvehiclecontroller_set_index_up_axis(this.__wbg_ptr,Z)}set numInternalPgsIterations(Z){P.rawdynamicraycastvehiclecontroller_set_index_forward_axis(this.__wbg_ptr,Z)}set minIslandSize(Z){P.rawintegrationparameters_set_minIslandSize(this.__wbg_ptr,Z)}set maxCcdSubsteps(Z){P.rawintegrationparameters_set_maxCcdSubsteps(this.__wbg_ptr,Z)}set lengthUnit(Z){P.rawintegrationparameters_set_lengthUnit(this.__wbg_ptr,Z)}switchToStandardPgsSolver(){P.rawintegrationparameters_switchToStandardPgsSolver(this.__wbg_ptr)}switchToSmallStepsPgsSolver(){P.rawintegrationparameters_switchToSmallStepsPgsSolver(this.__wbg_ptr)}switchToSmallStepsPgsSolverWithoutWarmstart(){P.rawintegrationparameters_switchToSmallStepsPgsSolverWithoutWarmstart(this.__wbg_ptr)}}var JM=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>P.__wbg_rawislandmanager_free(Z>>>0,1));class $Z{static __wrap(Z){Z>>>=0;let J=Object.create($Z.prototype);return J.__wbg_ptr=Z,JM.register(J,J.__wbg_ptr,J),J}__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,JM.unregister(this),Z}free(){let Z=this.__destroy_into_raw();P.__wbg_rawislandmanager_free(Z,0)}constructor(){let Z=P.rawislandmanager_new();return this.__wbg_ptr=Z>>>0,JM.register(this,this.__wbg_ptr,this),this}forEachActiveRigidBodyHandle(Z){try{P.rawislandmanager_forEachActiveRigidBodyHandle(this.__wbg_ptr,b1(Z))}finally{Z1[R1++]=void 0}}}var zb=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>P.__wbg_rawkinematiccharactercontroller_free(Z>>>0,1));class Ab{__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,zb.unregister(this),Z}free(){let Z=this.__destroy_into_raw();P.__wbg_rawkinematiccharactercontroller_free(Z,0)}constructor(Z){let J=P.rawkinematiccharactercontroller_new(Z);return this.__wbg_ptr=J>>>0,zb.register(this,this.__wbg_ptr,this),this}up(){let Z=P.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);return h.__wrap(Z)}setUp(Z){S(Z,h),P.rawkinematiccharactercontroller_setUp(this.__wbg_ptr,Z.__wbg_ptr)}normalNudgeFactor(){return P.rawkinematiccharactercontroller_normalNudgeFactor(this.__wbg_ptr)}setNormalNudgeFactor(Z){P.rawkinematiccharactercontroller_setNormalNudgeFactor(this.__wbg_ptr,Z)}offset(){return P.rawintegrationparameters_dt(this.__wbg_ptr)}setOffset(Z){P.rawkinematiccharactercontroller_setOffset(this.__wbg_ptr,Z)}slideEnabled(){return P.rawkinematiccharactercontroller_slideEnabled(this.__wbg_ptr)!==0}setSlideEnabled(Z){P.rawkinematiccharactercontroller_setSlideEnabled(this.__wbg_ptr,Z)}autostepMaxHeight(){let Z=P.rawkinematiccharactercontroller_autostepMaxHeight(this.__wbg_ptr);return Z===4294967297?void 0:Z}autostepMinWidth(){let Z=P.rawkinematiccharactercontroller_autostepMinWidth(this.__wbg_ptr);return Z===4294967297?void 0:Z}autostepIncludesDynamicBodies(){let Z=P.rawkinematiccharactercontroller_autostepIncludesDynamicBodies(this.__wbg_ptr);return Z===16777215?void 0:Z!==0}autostepEnabled(){return P.rawkinematiccharactercontroller_autostepEnabled(this.__wbg_ptr)!==0}enableAutostep(Z,J,X){P.rawkinematiccharactercontroller_enableAutostep(this.__wbg_ptr,Z,J,X)}disableAutostep(){P.rawkinematiccharactercontroller_disableAutostep(this.__wbg_ptr)}maxSlopeClimbAngle(){return P.rawkinematiccharactercontroller_maxSlopeClimbAngle(this.__wbg_ptr)}setMaxSlopeClimbAngle(Z){P.rawkinematiccharactercontroller_setMaxSlopeClimbAngle(this.__wbg_ptr,Z)}minSlopeSlideAngle(){return P.rawkinematiccharactercontroller_minSlopeSlideAngle(this.__wbg_ptr)}setMinSlopeSlideAngle(Z){P.rawkinematiccharactercontroller_setMinSlopeSlideAngle(this.__wbg_ptr,Z)}snapToGroundDistance(){let Z=P.rawkinematiccharactercontroller_snapToGroundDistance(this.__wbg_ptr);return Z===4294967297?void 0:Z}enableSnapToGround(Z){P.rawkinematiccharactercontroller_enableSnapToGround(this.__wbg_ptr,Z)}disableSnapToGround(){P.rawkinematiccharactercontroller_disableSnapToGround(this.__wbg_ptr)}snapToGroundEnabled(){return P.rawkinematiccharactercontroller_snapToGroundEnabled(this.__wbg_ptr)!==0}computeColliderMovement(Z,J,X,Y,$,Q,K,W,G,V,H){try{S(J,g1),S(X,a1),S(Y,hq),S(Q,h),P.rawkinematiccharactercontroller_computeColliderMovement(this.__wbg_ptr,Z,J.__wbg_ptr,X.__wbg_ptr,Y.__wbg_ptr,$,Q.__wbg_ptr,K,D0(W)?4294967297:Math.fround(W),G,D0(V)?4294967297:V>>>0,b1(H))}finally{Z1[R1++]=void 0}}computedMovement(){let Z=P.rawkinematiccharactercontroller_computedMovement(this.__wbg_ptr);return h.__wrap(Z)}computedGrounded(){return P.rawkinematiccharactercontroller_computedGrounded(this.__wbg_ptr)!==0}numComputedCollisions(){return P.rawkinematiccharactercontroller_numComputedCollisions(this.__wbg_ptr)>>>0}computedCollision(Z,J){return S(J,BM),P.rawkinematiccharactercontroller_computedCollision(this.__wbg_ptr,Z,J.__wbg_ptr)!==0}}var XM=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>P.__wbg_rawmultibodyjointset_free(Z>>>0,1));class QZ{static __wrap(Z){Z>>>=0;let J=Object.create(QZ.prototype);return J.__wbg_ptr=Z,XM.register(J,J.__wbg_ptr,J),J}__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,XM.unregister(this),Z}free(){let Z=this.__destroy_into_raw();P.__wbg_rawmultibodyjointset_free(Z,0)}jointType(Z){return P.rawmultibodyjointset_jointType(this.__wbg_ptr,Z)}jointFrameX1(Z){let J=P.rawmultibodyjointset_jointFrameX1(this.__wbg_ptr,Z);return i0.__wrap(J)}jointFrameX2(Z){let J=P.rawmultibodyjointset_jointFrameX2(this.__wbg_ptr,Z);return i0.__wrap(J)}jointAnchor1(Z){let J=P.rawmultibodyjointset_jointAnchor1(this.__wbg_ptr,Z);return h.__wrap(J)}jointAnchor2(Z){let J=P.rawmultibodyjointset_jointAnchor2(this.__wbg_ptr,Z);return h.__wrap(J)}jointContactsEnabled(Z){return P.rawmultibodyjointset_jointContactsEnabled(this.__wbg_ptr,Z)!==0}jointSetContactsEnabled(Z,J){P.rawmultibodyjointset_jointSetContactsEnabled(this.__wbg_ptr,Z,J)}jointLimitsEnabled(Z,J){return P.rawmultibodyjointset_jointLimitsEnabled(this.__wbg_ptr,Z,J)!==0}jointLimitsMin(Z,J){return P.rawmultibodyjointset_jointLimitsMin(this.__wbg_ptr,Z,J)}jointLimitsMax(Z,J){return P.rawmultibodyjointset_jointLimitsMax(this.__wbg_ptr,Z,J)}constructor(){let Z=P.rawmultibodyjointset_new();return this.__wbg_ptr=Z>>>0,XM.register(this,this.__wbg_ptr,this),this}createJoint(Z,J,X,Y){return S(Z,a8),P.rawmultibodyjointset_createJoint(this.__wbg_ptr,Z.__wbg_ptr,J,X,Y)}remove(Z,J){P.rawmultibodyjointset_remove(this.__wbg_ptr,Z,J)}contains(Z){return P.rawmultibodyjointset_contains(this.__wbg_ptr,Z)!==0}forEachJointHandle(Z){try{P.rawmultibodyjointset_forEachJointHandle(this.__wbg_ptr,b1(Z))}finally{Z1[R1++]=void 0}}forEachJointAttachedToRigidBody(Z,J){try{P.rawmultibodyjointset_forEachJointAttachedToRigidBody(this.__wbg_ptr,Z,b1(J))}finally{Z1[R1++]=void 0}}}var YM=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>P.__wbg_rawnarrowphase_free(Z>>>0,1));class jJ{static __wrap(Z){Z>>>=0;let J=Object.create(jJ.prototype);return J.__wbg_ptr=Z,YM.register(J,J.__wbg_ptr,J),J}__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,YM.unregister(this),Z}free(){let Z=this.__destroy_into_raw();P.__wbg_rawnarrowphase_free(Z,0)}constructor(){let Z=P.rawnarrowphase_new();return this.__wbg_ptr=Z>>>0,YM.register(this,this.__wbg_ptr,this),this}contact_pairs_with(Z,J){P.rawnarrowphase_contact_pairs_with(this.__wbg_ptr,Z,v8(J))}contact_pair(Z,J){let X=P.rawnarrowphase_contact_pair(this.__wbg_ptr,Z,J);return X===0?void 0:OM.__wrap(X)}intersection_pairs_with(Z,J){P.rawnarrowphase_intersection_pairs_with(this.__wbg_ptr,Z,v8(J))}intersection_pair(Z,J){return P.rawnarrowphase_intersection_pair(this.__wbg_ptr,Z,J)!==0}}var Fb=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>P.__wbg_rawphysicspipeline_free(Z>>>0,1));class xb{__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,Fb.unregister(this),Z}free(){let Z=this.__destroy_into_raw();P.__wbg_rawphysicspipeline_free(Z,0)}constructor(){let Z=P.rawphysicspipeline_new();return this.__wbg_ptr=Z>>>0,Fb.register(this,this.__wbg_ptr,this),this}step(Z,J,X,Y,$,Q,K,W,G,V){S(Z,h),S(J,QY),S(X,$Z),S(Y,$Y),S($,jJ),S(Q,g1),S(K,a1),S(W,YZ),S(G,QZ),S(V,Iq),P.rawphysicspipeline_step(this.__wbg_ptr,Z.__wbg_ptr,J.__wbg_ptr,X.__wbg_ptr,Y.__wbg_ptr,$.__wbg_ptr,Q.__wbg_ptr,K.__wbg_ptr,W.__wbg_ptr,G.__wbg_ptr,V.__wbg_ptr)}stepWithEvents(Z,J,X,Y,$,Q,K,W,G,V,H,F,z,q){S(Z,h),S(J,QY),S(X,$Z),S(Y,$Y),S($,jJ),S(Q,g1),S(K,a1),S(W,YZ),S(G,QZ),S(V,Iq),S(H,RM),P.rawphysicspipeline_stepWithEvents(this.__wbg_ptr,Z.__wbg_ptr,J.__wbg_ptr,X.__wbg_ptr,Y.__wbg_ptr,$.__wbg_ptr,Q.__wbg_ptr,K.__wbg_ptr,W.__wbg_ptr,G.__wbg_ptr,V.__wbg_ptr,H.__wbg_ptr,v8(F),v8(z),v8(q))}}var qb=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>P.__wbg_rawpidcontroller_free(Z>>>0,1));class hb{__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,qb.unregister(this),Z}free(){let Z=this.__destroy_into_raw();P.__wbg_rawpidcontroller_free(Z,0)}constructor(Z,J,X,Y){let $=P.rawpidcontroller_new(Z,J,X,Y);return this.__wbg_ptr=$>>>0,qb.register(this,this.__wbg_ptr,this),this}set_kp(Z,J){P.rawpidcontroller_set_kp(this.__wbg_ptr,Z,J)}set_ki(Z,J){P.rawpidcontroller_set_ki(this.__wbg_ptr,Z,J)}set_kd(Z,J){P.rawpidcontroller_set_kd(this.__wbg_ptr,Z,J)}set_axes_mask(Z){P.rawpidcontroller_set_axes_mask(this.__wbg_ptr,Z)}reset_integrals(){P.rawpidcontroller_reset_integrals(this.__wbg_ptr)}apply_linear_correction(Z,J,X,Y,$){S(J,g1),S(Y,h),S($,h),P.rawpidcontroller_apply_linear_correction(this.__wbg_ptr,Z,J.__wbg_ptr,X,Y.__wbg_ptr,$.__wbg_ptr)}apply_angular_correction(Z,J,X,Y,$){S(J,g1),S(Y,i0),S($,h),P.rawpidcontroller_apply_angular_correction(this.__wbg_ptr,Z,J.__wbg_ptr,X,Y.__wbg_ptr,$.__wbg_ptr)}linear_correction(Z,J,X,Y,$){S(J,g1),S(Y,h),S($,h);let Q=P.rawpidcontroller_linear_correction(this.__wbg_ptr,Z,J.__wbg_ptr,X,Y.__wbg_ptr,$.__wbg_ptr);return h.__wrap(Q)}angular_correction(Z,J,X,Y,$){S(J,g1),S(Y,i0),S($,h);let Q=P.rawpidcontroller_angular_correction(this.__wbg_ptr,Z,J.__wbg_ptr,X,Y.__wbg_ptr,$.__wbg_ptr);return h.__wrap(Q)}}var Ub=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>P.__wbg_rawpointcolliderprojection_free(Z>>>0,1));class _q{static __wrap(Z){Z>>>=0;let J=Object.create(_q.prototype);return J.__wbg_ptr=Z,Ub.register(J,J.__wbg_ptr,J),J}__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,Ub.unregister(this),Z}free(){let Z=this.__destroy_into_raw();P.__wbg_rawpointcolliderprojection_free(Z,0)}colliderHandle(){return P.rawpointcolliderprojection_colliderHandle(this.__wbg_ptr)}point(){let Z=P.rawpointcolliderprojection_point(this.__wbg_ptr);return h.__wrap(Z)}isInside(){return P.rawpointcolliderprojection_isInside(this.__wbg_ptr)!==0}featureType(){return P.rawpointcollider