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