UNPKG

hytopia

Version:

The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.

1 lines 5.2 MB
import{createRequire as CV1}from"node:module";var NV1=Object.create;var{getPrototypeOf:jV1,defineProperty:ND,getOwnPropertyNames:DV1}=Object;var PV1=Object.prototype.hasOwnProperty;var r=(Z,J,X)=>{X=Z!=null?NV1(jV1(Z)):{};let Y=J||!Z||!Z.__esModule?ND(X,"default",{value:Z,enumerable:!0}):X;for(let $ of DV1(Z))if(!PV1.call(Y,$))ND(Y,$,{get:()=>Z[$],enumerable:!0});return Y};var O=(Z,J)=>()=>(J||Z((J={exports:{}}).exports,J),J.exports);var zK=(Z,J)=>{for(var X in J)ND(Z,X,{get:J[X],enumerable:!0,configurable:!0,set:(Y)=>J[X]=()=>Y})};var m=CV1(import.meta.url);var xm=O((B26,jD)=>{var TV1=Object.prototype.hasOwnProperty,n6="~";function j3(){}if(Object.create){if(j3.prototype=Object.create(null),!new j3().__proto__)n6=!1}function EV1(Z,J,X){this.fn=Z,this.context=J,this.once=X||!1}function Am(Z,J,X,Y,$){if(typeof X!=="function")throw new TypeError("The listener must be a function");var Q=new EV1(X,Y||Z,$),K=n6?n6+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 RU(Z,J){if(--Z._eventsCount===0)Z._events=new j3;else delete Z._events[J]}function T6(){this._events=new j3,this._eventsCount=0}T6.prototype.eventNames=function Z(){var J=[],X,Y;if(this._eventsCount===0)return J;for(Y in X=this._events)if(TV1.call(X,Y))J.push(n6?Y.slice(1):Y);if(Object.getOwnPropertySymbols)return J.concat(Object.getOwnPropertySymbols(X));return J};T6.prototype.listeners=function Z(J){var X=n6?n6+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};T6.prototype.listenerCount=function Z(J){var X=n6?n6+J:J,Y=this._events[X];if(!Y)return 0;if(Y.fn)return 1;return Y.length};T6.prototype.emit=function Z(J,X,Y,$,Q,K){var W=n6?n6+J:J;if(!this._events[W])return!1;var G=this._events[W],H=arguments.length,V,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,V=new Array(H-1);F<H;F++)V[F-1]=arguments[F];G.fn.apply(G.context,V)}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(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(!V)for(q=1,V=new Array(H-1);q<H;q++)V[q-1]=arguments[q];G[F].fn.apply(G[F].context,V)}}}return!0};T6.prototype.on=function Z(J,X,Y){return Am(this,J,X,Y,!1)};T6.prototype.once=function Z(J,X,Y){return Am(this,J,X,Y,!0)};T6.prototype.removeListener=function Z(J,X,Y,$){var Q=n6?n6+J:J;if(!this._events[Q])return this;if(!X)return RU(this,Q),this;var K=this._events[Q];if(K.fn){if(K.fn===X&&(!$||K.once)&&(!Y||K.context===Y))RU(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 RU(this,Q)}return this};T6.prototype.removeAllListeners=function Z(J){var X;if(J){if(X=n6?n6+J:J,this._events[X])RU(this,X)}else this._events=new j3,this._eventsCount=0;return this};T6.prototype.off=T6.prototype.removeListener;T6.prototype.addListener=T6.prototype.on;T6.prefixed=n6;T6.EventEmitter=T6;if(typeof jD!=="undefined")jD.exports=T6});var KH=O((Tu)=>{var D;Object.defineProperty(Tu,"__esModule",{value:!0});var Y1=new Array(128).fill(void 0);function L1(Z){return Y1[Z]}Y1.push(void 0,null,!0,!1);var v3=Y1.length;function f8(Z){v3===Y1.length&&Y1.push(Y1.length+1);let J=v3;return v3=Y1[J],Y1[J]=Z,J}function PD(Z,J){try{return Z.apply(this,J)}catch(X){D.__wbindgen_export_0(f8(X))}}function _0(Z){return Z==null}var SY=null;function y8(){return(SY===null||SY.buffer.detached===!0||SY.buffer.detached===void 0&&SY.buffer!==D.memory.buffer)&&(SY=new DataView(D.memory.buffer)),SY}function A3(Z){let J=L1(Z);return function(X){X<132||(Y1[X]=v3,v3=X)}(Z),J}var Fu=typeof TextDecoder!="undefined"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder!="undefined"&&Fu.decode();var T3=null;function qu(Z,J){return Z>>>=0,Fu.decode((T3!==null&&T3.byteLength!==0||(T3=new Uint8Array(D.memory.buffer)),T3).subarray(Z,Z+J))}function S(Z,J){if(!(Z instanceof J))throw new Error(`expected instance of ${J.name}`)}var P1=128;function u1(Z){if(P1==1)throw new Error("out of js stack");return Y1[--P1]=Z,P1}var E3=null;function IV1(Z,J){return Z>>>=0,(E3!==null&&E3.byteLength!==0||(E3=new Int32Array(D.memory.buffer)),E3).subarray(Z/4,Z/4+J)}var I3=null;function Uu(){return I3!==null&&I3.byteLength!==0||(I3=new Float32Array(D.memory.buffer)),I3}function gm(Z,J){return Z>>>=0,Uu().subarray(Z/4,Z/4+J)}var k3=null;function Lu(){return k3!==null&&k3.byteLength!==0||(k3=new Uint32Array(D.memory.buffer)),k3}var a6=0;function C3(Z,J){let X=J(4*Z.length,4)>>>0;return Lu().set(Z,X/4),a6=Z.length,X}function xJ(Z,J){let X=J(4*Z.length,4)>>>0;return Uu().set(Z,X/4),a6=Z.length,X}Object.freeze({Vertex:0,0:"Vertex",Edge:1,1:"Edge",Face:2,2:"Face",Unknown:3,3:"Unknown"});var kU=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"}),T4=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 r8=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"}),CD=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>D.__wbg_rawbroadphase_free(Z>>>0,1));class wZ{static __wrap(Z){Z>>>=0;let J=Object.create(wZ.prototype);return J.__wbg_ptr=Z,CD.register(J,J.__wbg_ptr,J),J}__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,CD.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,CD.register(this,this.__wbg_ptr,this),this}castRay(Z,J,X,Y,$,Q,K,W,G,H,V,F){try{S(Z,b8),S(J,y1),S(X,e1),S(Y,f),S($,f);let z=D.rawbroadphase_castRay(this.__wbg_ptr,Z.__wbg_ptr,J.__wbg_ptr,X.__wbg_ptr,Y.__wbg_ptr,$.__wbg_ptr,Q,K,W,_0(G)?4294967297:G>>>0,!_0(H),_0(H)?0:H,!_0(V),_0(V)?0:V,u1(F));return z===0?void 0:oD.__wrap(z)}finally{Y1[P1++]=void 0}}castRayAndGetNormal(Z,J,X,Y,$,Q,K,W,G,H,V,F){try{S(Z,b8),S(J,y1),S(X,e1),S(Y,f),S($,f);let z=D.rawbroadphase_castRayAndGetNormal(this.__wbg_ptr,Z.__wbg_ptr,J.__wbg_ptr,X.__wbg_ptr,Y.__wbg_ptr,$.__wbg_ptr,Q,K,W,_0(G)?4294967297:G>>>0,!_0(H),_0(H)?0:H,!_0(V),_0(V)?0:V,u1(F));return z===0?void 0:SU.__wrap(z)}finally{Y1[P1++]=void 0}}intersectionsWithRay(Z,J,X,Y,$,Q,K,W,G,H,V,F,z){try{S(Z,b8),S(J,y1),S(X,e1),S(Y,f),S($,f),D.rawbroadphase_intersectionsWithRay(this.__wbg_ptr,Z.__wbg_ptr,J.__wbg_ptr,X.__wbg_ptr,Y.__wbg_ptr,$.__wbg_ptr,Q,K,u1(W),G,_0(H)?4294967297:H>>>0,!_0(V),_0(V)?0:V,!_0(F),_0(F)?0:F,u1(z))}finally{Y1[P1++]=void 0,Y1[P1++]=void 0}}intersectionWithShape(Z,J,X,Y,$,Q,K,W,G,H,V){try{let q=D.__wbindgen_add_to_stack_pointer(-16);S(Z,b8),S(J,y1),S(X,e1),S(Y,f),S($,s0),S(Q,P0),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,_0(W)?4294967297:W>>>0,!_0(G),_0(G)?0:G,!_0(H),_0(H)?0:H,u1(V));var F=y8().getInt32(q+0,!0),z=y8().getFloat64(q+8,!0);return F===0?void 0:z}finally{D.__wbindgen_add_to_stack_pointer(16),Y1[P1++]=void 0}}projectPoint(Z,J,X,Y,$,Q,K,W,G,H){try{S(Z,b8),S(J,y1),S(X,e1),S(Y,f);let V=D.rawbroadphase_projectPoint(this.__wbg_ptr,Z.__wbg_ptr,J.__wbg_ptr,X.__wbg_ptr,Y.__wbg_ptr,$,Q,_0(K)?4294967297:K>>>0,!_0(W),_0(W)?0:W,!_0(G),_0(G)?0:G,u1(H));return V===0?void 0:EU.__wrap(V)}finally{Y1[P1++]=void 0}}projectPointAndGetFeature(Z,J,X,Y,$,Q,K,W,G){try{S(Z,b8),S(J,y1),S(X,e1),S(Y,f);let H=D.rawbroadphase_projectPointAndGetFeature(this.__wbg_ptr,Z.__wbg_ptr,J.__wbg_ptr,X.__wbg_ptr,Y.__wbg_ptr,$,_0(Q)?4294967297:Q>>>0,!_0(K),_0(K)?0:K,!_0(W),_0(W)?0:W,u1(G));return H===0?void 0:EU.__wrap(H)}finally{Y1[P1++]=void 0}}intersectionsWithPoint(Z,J,X,Y,$,Q,K,W,G,H){try{S(Z,b8),S(J,y1),S(X,e1),S(Y,f),D.rawbroadphase_intersectionsWithPoint(this.__wbg_ptr,Z.__wbg_ptr,J.__wbg_ptr,X.__wbg_ptr,Y.__wbg_ptr,u1($),Q,_0(K)?4294967297:K>>>0,!_0(W),_0(W)?0:W,!_0(G),_0(G)?0:G,u1(H))}finally{Y1[P1++]=void 0,Y1[P1++]=void 0}}castShape(Z,J,X,Y,$,Q,K,W,G,H,V,F,z,q,U){try{S(Z,b8),S(J,y1),S(X,e1),S(Y,f),S($,s0),S(Q,f),S(K,P0);let B=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,V,_0(F)?4294967297:F>>>0,!_0(z),_0(z)?0:z,!_0(q),_0(q)?0:q,u1(U));return B===0?void 0:_U.__wrap(B)}finally{Y1[P1++]=void 0}}intersectionsWithShape(Z,J,X,Y,$,Q,K,W,G,H,V,F){try{S(Z,b8),S(J,y1),S(X,e1),S(Y,f),S($,s0),S(Q,P0),D.rawbroadphase_intersectionsWithShape(this.__wbg_ptr,Z.__wbg_ptr,J.__wbg_ptr,X.__wbg_ptr,Y.__wbg_ptr,$.__wbg_ptr,Q.__wbg_ptr,u1(K),W,_0(G)?4294967297:G>>>0,!_0(H),_0(H)?0:H,!_0(V),_0(V)?0:V,u1(F))}finally{Y1[P1++]=void 0,Y1[P1++]=void 0}}collidersWithAabbIntersectingAabb(Z,J,X,Y,$,Q){try{S(Z,b8),S(J,y1),S(X,e1),S(Y,f),S($,f),D.rawbroadphase_collidersWithAabbIntersectingAabb(this.__wbg_ptr,Z.__wbg_ptr,J.__wbg_ptr,X.__wbg_ptr,Y.__wbg_ptr,$.__wbg_ptr,u1(Q))}finally{Y1[P1++]=void 0}}}var mm=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>D.__wbg_rawccdsolver_free(Z>>>0,1));class TU{__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,mm.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,mm.register(this,this.__wbg_ptr,this),this}}var um=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>D.__wbg_rawcharactercollision_free(Z>>>0,1));class lD{__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,um.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,um.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 f.__wrap(Z)}translationDeltaRemaining(){let Z=D.rawcharactercollision_translationDeltaRemaining(this.__wbg_ptr);return f.__wrap(Z)}toi(){return D.rawcharactercollision_toi(this.__wbg_ptr)}worldWitness1(){let Z=D.rawcharactercollision_worldWitness1(this.__wbg_ptr);return f.__wrap(Z)}worldWitness2(){let Z=D.rawcharactercollision_worldWitness2(this.__wbg_ptr);return f.__wrap(Z)}worldNormal1(){let Z=D.rawcharactercollision_worldNormal1(this.__wbg_ptr);return f.__wrap(Z)}worldNormal2(){let Z=D.rawcharactercollision_worldNormal2(this.__wbg_ptr);return f.__wrap(Z)}}var TD=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>D.__wbg_rawcolliderset_free(Z>>>0,1));class e1{static __wrap(Z){Z>>>=0;let J=Object.create(e1.prototype);return J.__wbg_ptr=Z,TD.register(J,J.__wbg_ptr,J),J}__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,TD.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 f.__wrap(J)}coRotation(Z){let J=D.rawcolliderset_coRotation(this.__wbg_ptr,Z);return s0.__wrap(J)}coTranslationWrtParent(Z){let J=D.rawcolliderset_coTranslationWrtParent(this.__wbg_ptr,Z);return J===0?void 0:f.__wrap(J)}coRotationWrtParent(Z){let J=D.rawcolliderset_coRotationWrtParent(this.__wbg_ptr,Z);return J===0?void 0:s0.__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:f.__wrap(J)}coHalfExtents(Z){let J=D.rawcolliderset_coHalfExtents(this.__wbg_ptr,Z);return J===0?void 0:f.__wrap(J)}coSetHalfExtents(Z,J){S(J,f),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=y8().getInt32(Y+0,!0),X=y8().getInt32(Y+4,!0);let $;return J!==0&&($=IV1(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:f.__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=y8().getInt32(Y+0,!0),X=y8().getInt32(Y+4,!0);let $;return J!==0&&($=gm(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=y8().getInt32(Y+0,!0),X=y8().getInt32(Y+4,!0);let $;return J!==0&&($=function(Q,K){return Q>>>=0,Lu().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=y8().getInt32(Y+0,!0),X=y8().getInt32(Y+4,!0);let $;return J!==0&&($=gm(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:f.__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=y8().getInt32(Y+0,!0),X=y8().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,f),D.rawcolliderset_coContainsPoint(this.__wbg_ptr,Z,J.__wbg_ptr)!==0}coCastShape(Z,J,X,Y,$,Q,K,W,G){S(J,f),S(X,P0),S(Y,f),S($,s0),S(Q,f);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:xU.__wrap(H)}coCastCollider(Z,J,X,Y,$,Q,K){S(J,f),S(Y,f);let W=D.rawcolliderset_coCastCollider(this.__wbg_ptr,Z,J.__wbg_ptr,X,Y.__wbg_ptr,$,Q,K);return W===0?void 0:_U.__wrap(W)}coIntersectsShape(Z,J,X,Y){return S(J,P0),S(X,f),S(Y,s0),D.rawcolliderset_coIntersectsShape(this.__wbg_ptr,Z,J.__wbg_ptr,X.__wbg_ptr,Y.__wbg_ptr)!==0}coContactShape(Z,J,X,Y,$){S(J,P0),S(X,f),S(Y,s0);let Q=D.rawcolliderset_coContactShape(this.__wbg_ptr,Z,J.__wbg_ptr,X.__wbg_ptr,Y.__wbg_ptr,$);return Q===0?void 0:x3.__wrap(Q)}coContactCollider(Z,J,X){let Y=D.rawcolliderset_coContactCollider(this.__wbg_ptr,Z,J,X);return Y===0?void 0:x3.__wrap(Y)}coProjectPoint(Z,J,X){S(J,f);let Y=D.rawcolliderset_coProjectPoint(this.__wbg_ptr,Z,J.__wbg_ptr,X);return vU.__wrap(Y)}coIntersectsRay(Z,J,X,Y){return S(J,f),S(X,f),D.rawcolliderset_coIntersectsRay(this.__wbg_ptr,Z,J.__wbg_ptr,X.__wbg_ptr,Y)!==0}coCastRay(Z,J,X,Y,$){return S(J,f),S(X,f),D.rawcolliderset_coCastRay(this.__wbg_ptr,Z,J.__wbg_ptr,X.__wbg_ptr,Y,$)}coCastRayAndGetNormal(Z,J,X,Y,$){S(J,f),S(X,f);let Q=D.rawcolliderset_coCastRayAndGetNormal(this.__wbg_ptr,Z,J.__wbg_ptr,X.__wbg_ptr,Y,$);return Q===0?void 0:AU.__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,P0),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,f),S(Y,f),S($,s0),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,TD.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,V,F,z,q,U,B,L,w,M,R,N,P,j,C,T){try{let v=D.__wbindgen_add_to_stack_pointer(-16);S(J,P0),S(X,f),S(Y,s0),S(K,f),S(W,f),S(G,s0),S(T,y1),D.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,H,V,F,z,q,U,B,L,w,M,R,N,P,j,C,T.__wbg_ptr);var E=y8().getInt32(v+0,!0),x=y8().getFloat64(v+8,!0);return E===0?void 0:x}finally{D.__wbindgen_add_to_stack_pointer(16)}}remove(Z,J,X,Y){S(J,MZ),S(X,y1),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,u1(Z))}finally{Y1[P1++]=void 0}}}var dm=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>D.__wbg_rawcollidershapecasthit_free(Z>>>0,1));class _U{static __wrap(Z){Z>>>=0;let J=Object.create(_U.prototype);return J.__wbg_ptr=Z,dm.register(J,J.__wbg_ptr,J),J}__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,dm.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 f.__wrap(Z)}witness2(){let Z=D.rawcollidershapecasthit_witness2(this.__wbg_ptr);return f.__wrap(Z)}normal1(){let Z=D.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);return f.__wrap(Z)}normal2(){let Z=D.rawcharactercollision_translationDeltaRemaining(this.__wbg_ptr);return f.__wrap(Z)}}var cm=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>D.__wbg_rawcontactforceevent_free(Z>>>0,1));class pD{static __wrap(Z){Z>>>=0;let J=Object.create(pD.prototype);return J.__wbg_ptr=Z,cm.register(J,J.__wbg_ptr,J),J}__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,cm.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 f.__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 f.__wrap(Z)}max_force_magnitude(){return D.rawcontactforceevent_max_force_magnitude(this.__wbg_ptr)}}var lm=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>D.__wbg_rawcontactmanifold_free(Z>>>0,1));class iD{static __wrap(Z){Z>>>=0;let J=Object.create(iD.prototype);return J.__wbg_ptr=Z,lm.register(J,J.__wbg_ptr,J),J}__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,lm.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 f.__wrap(Z)}local_n1(){let Z=D.rawcontactmanifold_local_n1(this.__wbg_ptr);return f.__wrap(Z)}local_n2(){let Z=D.rawcontactmanifold_local_n2(this.__wbg_ptr);return f.__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:f.__wrap(J)}contact_local_p2(Z){let J=D.rawcontactmanifold_contact_local_p2(this.__wbg_ptr,Z);return J===0?void 0:f.__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:f.__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 f.__wrap(J)}}var pm=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>D.__wbg_rawcontactpair_free(Z>>>0,1));class nD{static __wrap(Z){Z>>>=0;let J=Object.create(nD.prototype);return J.__wbg_ptr=Z,pm.register(J,J.__wbg_ptr,J),J}__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,pm.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:iD.__wrap(J)}}var im=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>D.__wbg_rawdebugrenderpipeline_free(Z>>>0,1));class Bu{__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,im.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,im.register(this,this.__wbg_ptr,this),this}vertices(){return A3(D.rawdebugrenderpipeline_vertices(this.__wbg_ptr))}colors(){return A3(D.rawdebugrenderpipeline_colors(this.__wbg_ptr))}render(Z,J,X,Y,$,Q,K){try{S(Z,y1),S(J,e1),S(X,OZ),S(Y,RZ),S($,b8),D.rawdebugrenderpipeline_render(this.__wbg_ptr,Z.__wbg_ptr,J.__wbg_ptr,X.__wbg_ptr,Y.__wbg_ptr,$.__wbg_ptr,Q,u1(K))}finally{Y1[P1++]=void 0}}}var nm=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>D.__wbg_rawdeserializedworld_free(Z>>>0,1));class aD{static __wrap(Z){Z>>>=0;let J=Object.create(aD.prototype);return J.__wbg_ptr=Z,nm.register(J,J.__wbg_ptr,J),J}__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,nm.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:f.__wrap(Z)}takeIntegrationParameters(){let Z=D.rawdeserializedworld_takeIntegrationParameters(this.__wbg_ptr);return Z===0?void 0:xY.__wrap(Z)}takeIslandManager(){let Z=D.rawdeserializedworld_takeIslandManager(this.__wbg_ptr);return Z===0?void 0:MZ.__wrap(Z)}takeBroadPhase(){let Z=D.rawdeserializedworld_takeBroadPhase(this.__wbg_ptr);return Z===0?void 0:wZ.__wrap(Z)}takeNarrowPhase(){let Z=D.rawdeserializedworld_takeNarrowPhase(this.__wbg_ptr);return Z===0?void 0:b8.__wrap(Z)}takeBodies(){let Z=D.rawdeserializedworld_takeBodies(this.__wbg_ptr);return Z===0?void 0:y1.__wrap(Z)}takeColliders(){let Z=D.rawdeserializedworld_takeColliders(this.__wbg_ptr);return Z===0?void 0:e1.__wrap(Z)}takeImpulseJoints(){let Z=D.rawdeserializedworld_takeImpulseJoints(this.__wbg_ptr);return Z===0?void 0:OZ.__wrap(Z)}takeMultibodyJoints(){let Z=D.rawdeserializedworld_takeMultibodyJoints(this.__wbg_ptr);return Z===0?void 0:RZ.__wrap(Z)}}var am=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>D.__wbg_rawdynamicraycastvehiclecontroller_free(Z>>>0,1));class wu{__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,am.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,am.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,f),S(J,f),S(X,f),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,wZ),S(X,b8),S(Y,y1),S($,e1),D.rawdynamicraycastvehiclecontroller_update_vehicle(this.__wbg_ptr,Z,J.__wbg_ptr,X.__wbg_ptr,Y.__wbg_ptr,$.__wbg_ptr,Q,_0(K)?4294967297:K>>>0,u1(W))}finally{Y1[P1++]=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:f.__wrap(J)}set_wheel_chassis_connection_point_cs(Z,J){S(J,f),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:f.__wrap(J)}set_wheel_direction_cs(Z,J){S(J,f),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:f.__wrap(J)}set_wheel_axle_cs(Z,J){S(J,f),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:f.__wrap(J)}wheel_contact_point_ws(Z){let J=D.rawdynamicraycastvehiclecontroller_wheel_contact_point_ws(this.__wbg_ptr,Z);return J===0?void 0:f.__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:f.__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=y8().getInt32(Y+0,!0),X=y8().getFloat64(Y+8,!0);return J===0?void 0:X}finally{D.__wbindgen_add_to_stack_pointer(16)}}}var sm=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>D.__wbg_raweventqueue_free(Z>>>0,1));class sD{__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_raweventqueue_free(Z,0)}constructor(Z){let J=D.raweventqueue_new(Z);return this.__wbg_ptr=J>>>0,sm.register(this,this.__wbg_ptr,this),this}drainCollisionEvents(Z){try{D.raweventqueue_drainCollisionEvents(this.__wbg_ptr,u1(Z))}finally{Y1[P1++]=void 0}}drainContactForceEvents(Z){try{D.raweventqueue_drainContactForceEvents(this.__wbg_ptr,u1(Z))}finally{Y1[P1++]=void 0}}clear(){D.raweventqueue_clear(this.__wbg_ptr)}}var om=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>D.__wbg_rawgenericjoint_free(Z>>>0,1));class t8{static __wrap(Z){Z>>>=0;let J=Object.create(t8.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_rawgenericjoint_free(Z,0)}static generic(Z,J,X,Y){S(Z,f),S(J,f),S(X,f);let $=D.rawgenericjoint_generic(Z.__wbg_ptr,J.__wbg_ptr,X.__wbg_ptr,Y);return $===0?void 0:t8.__wrap($)}static spring(Z,J,X,Y,$){S(Y,f),S($,f);let Q=D.rawgenericjoint_spring(Z,J,X,Y.__wbg_ptr,$.__wbg_ptr);return t8.__wrap(Q)}static rope(Z,J,X){S(J,f),S(X,f);let Y=D.rawgenericjoint_rope(Z,J.__wbg_ptr,X.__wbg_ptr);return t8.__wrap(Y)}static spherical(Z,J){S(Z,f),S(J,f);let X=D.rawgenericjoint_spherical(Z.__wbg_ptr,J.__wbg_ptr);return t8.__wrap(X)}static prismatic(Z,J,X,Y,$,Q){S(Z,f),S(J,f),S(X,f);let K=D.rawgenericjoint_prismatic(Z.__wbg_ptr,J.__wbg_ptr,X.__wbg_ptr,Y,$,Q);return K===0?void 0:t8.__wrap(K)}static fixed(Z,J,X,Y){S(Z,f),S(J,s0),S(X,f),S(Y,s0);let $=D.rawgenericjoint_fixed(Z.__wbg_ptr,J.__wbg_ptr,X.__wbg_ptr,Y.__wbg_ptr);return t8.__wrap($)}static revolute(Z,J,X){S(Z,f),S(J,f),S(X,f);let Y=D.rawgenericjoint_revolute(Z.__wbg_ptr,J.__wbg_ptr,X.__wbg_ptr);return Y===0?void 0:t8.__wrap(Y)}}var ED=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>D.__wbg_rawimpulsejointset_free(Z>>>0,1));class OZ{static __wrap(Z){Z>>>=0;let J=Object.create(OZ.prototype);return J.__wbg_ptr=Z,ED.register(J,J.__wbg_ptr,J),J}__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,ED.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 s0.__wrap(J)}jointFrameX2(Z){let J=D.rawimpulsejointset_jointFrameX2(this.__wbg_ptr,Z);return s0.__wrap(J)}jointAnchor1(Z){let J=D.rawimpulsejointset_jointAnchor1(this.__wbg_ptr,Z);return f.__wrap(J)}jointAnchor2(Z){let J=D.rawimpulsejointset_jointAnchor2(this.__wbg_ptr,Z);return f.__wrap(J)}jointSetAnchor1(Z,J){S(J,f),D.rawimpulsejointset_jointSetAnchor1(this.__wbg_ptr,Z,J.__wbg_ptr)}jointSetAnchor2(Z,J){S(J,f),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,ED.register(this,this.__wbg_ptr,this),this}createJoint(Z,J,X,Y){return S(Z,t8),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,u1(Z))}finally{Y1[P1++]=void 0}}forEachJointAttachedToRigidBody(Z,J){try{D.rawimpulsejointset_forEachJointAttachedToRigidBody(this.__wbg_ptr,Z,u1(J))}finally{Y1[P1++]=void 0}}}var ID=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>D.__wbg_rawintegrationparameters_free(Z>>>0,1));class xY{static __wrap(Z){Z>>>=0;let J=Object.create(xY.prototype);return J.__wbg_ptr=Z,ID.register(J,J.__wbg_ptr,J),J}__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,ID.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,ID.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 kD=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>D.__wbg_rawislandmanager_free(Z>>>0,1));class MZ{static __wrap(Z){Z>>>=0;let J=Object.create(MZ.prototype);return J.__wbg_ptr=Z,kD.register(J,J.__wbg_ptr,J),J}__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,kD.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,kD.register(this,this.__wbg_ptr,this),this}forEachActiveRigidBodyHandle(Z){try{D.rawislandmanager_forEachActiveRigidBodyHandle(this.__wbg_ptr,u1(Z))}finally{Y1[P1++]=void 0}}}var rm=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>D.__wbg_rawkinematiccharactercontroller_free(Z>>>0,1));class Ou{__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_rawkinematiccharactercontroller_free(Z,0)}constructor(Z){let J=D.rawkinematiccharactercontroller_new(Z);return this.__wbg_ptr=J>>>0,rm.register(this,this.__wbg_ptr,this),this}up(){let Z=D.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);return f.__wrap(Z)}setUp(Z){S(Z,f),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,V,F){try{S(J,wZ),S(X,b8),S(Y,y1),S($,e1),S(K,f),D.rawkinematiccharactercontroller_computeColliderMovement(this.__wbg_ptr,Z,J.__wbg_ptr,X.__wbg_ptr,Y.__wbg_ptr,$.__wbg_ptr,Q,K.__wbg_ptr,W,_0(G)?4294967297:Math.fround(G),H,_0(V)?4294967297:V>>>0,u1(F))}finally{Y1[P1++]=void 0}}computedMovement(){let Z=D.rawkinematiccharactercontroller_computedMovement(this.__wbg_ptr);return f.__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,lD),D.rawkinematiccharactercontroller_computedCollision(this.__wbg_ptr,Z,J.__wbg_ptr)!==0}}var _D=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>D.__wbg_rawmultibodyjointset_free(Z>>>0,1));class RZ{static __wrap(Z){Z>>>=0;let J=Object.create(RZ.prototype);return J.__wbg_ptr=Z,_D.register(J,J.__wbg_ptr,J),J}__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,_D.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 s0.__wrap(J)}jointFrameX2(Z){let J=D.rawmultibodyjointset_jointFrameX2(this.__wbg_ptr,Z);return s0.__wrap(J)}jointAnchor1(Z){let J=D.rawmultibodyjointset_jointAnchor1(this.__wbg_ptr,Z);return f.__wrap(J)}jointAnchor2(Z){let J=D.rawmultibodyjointset_jointAnchor2(this.__wbg_ptr,Z);return f.__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,_D.register(this,this.__wbg_ptr,this),this}createJoint(Z,J,X,Y){return S(Z,t8),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,u1(Z))}finally{Y1[P1++]=void 0}}forEachJointAttachedToRigidBody(Z,J){try{D.rawmultibodyjointset_forEachJointAttachedToRigidBody(this.__wbg_ptr,Z,u1(J))}finally{Y1[P1++]=void 0}}}var vD=typeof FinalizationRegistry=="undefined"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((Z)=>D.__wbg_rawnarrowphase_free(Z>>>0,1));class b8{static __wrap(Z){Z>>>=0;let J=Object.create(b8.prototype);return J.__wbg_ptr=Z,vD.register(J,J.__wbg_ptr,J),J}__destroy_into_raw(){let Z=this.__wbg_ptr;return this.__wbg_ptr=0,vD.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,vD.register(this,this.__wbg_ptr,this),this}contact_pairs_with(Z,J)