UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

92 lines (90 loc) 1.99 MB
(self["webpackChunk_polygonjs_polygonjs"] = self["webpackChunk_polygonjs_polygonjs"] || []).push([[162],{ /***/ 4162: /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "ActiveCollisionTypes": () => (/* binding */ yA), /* harmony export */ "ActiveEvents": () => (/* binding */ JA), /* harmony export */ "ActiveHooks": () => (/* binding */ UA), /* harmony export */ "Ball": () => (/* binding */ CI), /* harmony export */ "BroadPhase": () => (/* binding */ fA), /* harmony export */ "CCDSolver": () => (/* binding */ xA), /* harmony export */ "Capsule": () => (/* binding */ iI), /* harmony export */ "CharacterCollision": () => (/* binding */ LI), /* harmony export */ "CoefficientCombineRule": () => (/* binding */ kA), /* harmony export */ "Collider": () => (/* binding */ UI), /* harmony export */ "ColliderDesc": () => (/* binding */ NI), /* harmony export */ "ColliderSet": () => (/* binding */ FI), /* harmony export */ "Cone": () => (/* binding */ MI), /* harmony export */ "ConvexPolyhedron": () => (/* binding */ kI), /* harmony export */ "Cuboid": () => (/* binding */ QI), /* harmony export */ "Cylinder": () => (/* binding */ yI), /* harmony export */ "DebugRenderBuffers": () => (/* binding */ YI), /* harmony export */ "DebugRenderPipeline": () => (/* binding */ cI), /* harmony export */ "EventQueue": () => (/* binding */ pI), /* harmony export */ "FeatureType": () => (/* binding */ aA), /* harmony export */ "FixedImpulseJoint": () => (/* binding */ HA), /* harmony export */ "FixedMultibodyJoint": () => (/* binding */ OA), /* harmony export */ "HalfSpace": () => (/* binding */ BI), /* harmony export */ "Heightfield": () => (/* binding */ KI), /* harmony export */ "ImpulseJoint": () => (/* binding */ cA), /* harmony export */ "ImpulseJointSet": () => (/* binding */ rA), /* harmony export */ "IntegrationParameters": () => (/* binding */ YA), /* harmony export */ "IslandManager": () => (/* binding */ jA), /* harmony export */ "JointData": () => (/* binding */ eA), /* harmony export */ "JointType": () => (/* binding */ wA), /* harmony export */ "KinematicCharacterController": () => (/* binding */ HI), /* harmony export */ "MassPropsMode": () => (/* binding */ hA), /* harmony export */ "MotorModel": () => (/* binding */ SA), /* harmony export */ "MultibodyJoint": () => (/* binding */ dA), /* harmony export */ "MultibodyJointSet": () => (/* binding */ WA), /* harmony export */ "NarrowPhase": () => (/* binding */ VA), /* harmony export */ "PhysicsPipeline": () => (/* binding */ qI), /* harmony export */ "PointColliderProjection": () => (/* binding */ uA), /* harmony export */ "PointProjection": () => (/* binding */ mA), /* harmony export */ "Polyline": () => (/* binding */ wI), /* harmony export */ "PrismaticImpulseJoint": () => (/* binding */ lA), /* harmony export */ "PrismaticMultibodyJoint": () => (/* binding */ nA), /* harmony export */ "Quaternion": () => (/* binding */ DA), /* harmony export */ "QueryFilterFlags": () => (/* binding */ MA), /* harmony export */ "QueryPipeline": () => (/* binding */ RI), /* harmony export */ "Ray": () => (/* binding */ zA), /* harmony export */ "RayColliderIntersection": () => (/* binding */ _A), /* harmony export */ "RayColliderToi": () => (/* binding */ $A), /* harmony export */ "RayIntersection": () => (/* binding */ vA), /* harmony export */ "RevoluteImpulseJoint": () => (/* binding */ tA), /* harmony export */ "RevoluteMultibodyJoint": () => (/* binding */ ZA), /* harmony export */ "RigidBody": () => (/* binding */ FA), /* harmony export */ "RigidBodyDesc": () => (/* binding */ qA), /* harmony export */ "RigidBodySet": () => (/* binding */ sA), /* harmony export */ "RigidBodyType": () => (/* binding */ GA), /* harmony export */ "RotationOps": () => (/* binding */ oA), /* harmony export */ "RoundCone": () => (/* binding */ JI), /* harmony export */ "RoundConvexPolyhedron": () => (/* binding */ aI), /* harmony export */ "RoundCuboid": () => (/* binding */ EI), /* harmony export */ "RoundCylinder": () => (/* binding */ hI), /* harmony export */ "RoundTriangle": () => (/* binding */ GI), /* harmony export */ "Segment": () => (/* binding */ DI), /* harmony export */ "SerializationPipeline": () => (/* binding */ sI), /* harmony export */ "Shape": () => (/* binding */ gI), /* harmony export */ "ShapeColliderTOI": () => (/* binding */ II), /* harmony export */ "ShapeContact": () => (/* binding */ PA), /* harmony export */ "ShapeTOI": () => (/* binding */ AI), /* harmony export */ "ShapeType": () => (/* binding */ KA), /* harmony export */ "SolverFlags": () => (/* binding */ NA), /* harmony export */ "SphericalImpulseJoint": () => (/* binding */ pA), /* harmony export */ "SphericalMultibodyJoint": () => (/* binding */ bA), /* harmony export */ "TempContactForceEvent": () => (/* binding */ tI), /* harmony export */ "TempContactManifold": () => (/* binding */ XA), /* harmony export */ "TriMesh": () => (/* binding */ SI), /* harmony export */ "Triangle": () => (/* binding */ oI), /* harmony export */ "UnitImpulseJoint": () => (/* binding */ LA), /* harmony export */ "UnitMultibodyJoint": () => (/* binding */ TA), /* harmony export */ "Vector3": () => (/* binding */ EA), /* harmony export */ "VectorOps": () => (/* binding */ iA), /* harmony export */ "World": () => (/* binding */ lI), /* harmony export */ "default": () => (/* binding */ VI), /* harmony export */ "init": () => (/* binding */ jI), /* harmony export */ "version": () => (/* binding */ fI) /* harmony export */ }); let A;const I=new Array(32).fill(void 0);function g(A){return I[A]}I.push(void 0,null,!0,!1);let C=I.length;function B(A){const B=g(A);return function(A){A<36||(I[A]=C,C=A)}(A),B}function Q(A){C===I.length&&I.push(I.length+1);const g=C;return C=I[g],I[g]=A,g}function E(A){return null==A}let i=new Float64Array;function D(){return 0===i.byteLength&&(i=new Float64Array(A.memory.buffer)),i}let o=new Int32Array;function G(){return 0===o.byteLength&&(o=new Int32Array(A.memory.buffer)),o}const w=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});w.decode();let S=new Uint8Array;function k(I,g){return w.decode((0===S.byteLength&&(S=new Uint8Array(A.memory.buffer)),S).subarray(I,I+g))}function a(A,I){if(!(A instanceof I))throw new Error(`expected instance of ${I.name}`);return A.ptr}let K=new Float32Array;function y(){return 0===K.byteLength&&(K=new Float32Array(A.memory.buffer)),K}let h=32;function M(A){if(1==h)throw new Error("out of js stack");return I[--h]=A,h}function J(A,I){return y().subarray(A/4,A/4+I)}let U=new Uint32Array;function N(){return 0===U.byteLength&&(U=new Uint32Array(A.memory.buffer)),U}let F=0;function q(A,I){const g=I(4*A.length);return y().set(A,g/4),F=A.length,g}function R(A,I){const g=I(4*A.length);return N().set(A,g/4),F=A.length,g}function s(I,g){try{return I.apply(this,g)}catch(I){A.__wbindgen_exn_store(Q(I))}}Object.freeze({Revolute:0,0:"Revolute",Fixed:1,1:"Fixed",Prismatic:2,2:"Prismatic",Spherical:3,3:"Spherical",Generic:4,4:"Generic"}),Object.freeze({AccelerationBased:0,0:"AccelerationBased",ForceBased:1,1:"ForceBased"});const Y=Object.freeze({X:0,0:"X",Y:1,1:"Y",Z:2,2:"Z",AngX:3,3:"AngX",AngY:4,4:"AngY",AngZ:5,5:"AngZ"});Object.freeze({Dynamic:0,0:"Dynamic",Fixed:1,1:"Fixed",KinematicPositionBased:2,2:"KinematicPositionBased",KinematicVelocityBased:3,3:"KinematicVelocityBased"}),Object.freeze({Vertex:0,0:"Vertex",Edge:1,1:"Edge",Face:2,2:"Face",Unknown:3,3:"Unknown"}),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"});class c{static __wrap(A){const I=Object.create(c.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_rawbroadphase_free(I)}constructor(){const I=A.rawbroadphase_new();return c.__wrap(I)}}class L{static __wrap(A){const I=Object.create(L.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_rawccdsolver_free(I)}constructor(){const I=A.rawccdsolver_new();return L.__wrap(I)}}class H{static __wrap(A){const I=Object.create(H.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_rawcharactercollision_free(I)}constructor(){const I=A.rawcharactercollision_new();return H.__wrap(I)}handle(){return A.rawcharactercollision_handle(this.ptr)}translationApplied(){const I=A.rawcharactercollision_translationApplied(this.ptr);return BA.__wrap(I)}translationRemaining(){const I=A.rawcharactercollision_translationRemaining(this.ptr);return BA.__wrap(I)}toi(){return A.rawcharactercollision_toi(this.ptr)}worldWitness1(){const I=A.rawcharactercollision_worldWitness1(this.ptr);return BA.__wrap(I)}worldWitness2(){const I=A.rawcharactercollision_worldWitness2(this.ptr);return BA.__wrap(I)}worldNormal1(){const I=A.rawcharactercollision_worldNormal1(this.ptr);return BA.__wrap(I)}worldNormal2(){const I=A.rawcharactercollision_worldNormal2(this.ptr);return BA.__wrap(I)}}class l{static __wrap(A){const I=Object.create(l.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_rawcolliderset_free(I)}coTranslation(I){const g=A.rawcolliderset_coTranslation(this.ptr,I);return BA.__wrap(g)}coRotation(I){const g=A.rawcolliderset_coRotation(this.ptr,I);return _.__wrap(g)}coSetTranslation(I,g,C,B){A.rawcolliderset_coSetTranslation(this.ptr,I,g,C,B)}coSetTranslationWrtParent(I,g,C,B){A.rawcolliderset_coSetTranslationWrtParent(this.ptr,I,g,C,B)}coSetRotation(I,g,C,B,Q){A.rawcolliderset_coSetRotation(this.ptr,I,g,C,B,Q)}coSetRotationWrtParent(I,g,C,B,Q){A.rawcolliderset_coSetRotationWrtParent(this.ptr,I,g,C,B,Q)}coIsSensor(I){return 0!==A.rawcolliderset_coIsSensor(this.ptr,I)}coShapeType(I){return A.rawcolliderset_coShapeType(this.ptr,I)>>>0}coHalfspaceNormal(I){const g=A.rawcolliderset_coHalfspaceNormal(this.ptr,I);return 0===g?void 0:BA.__wrap(g)}coHalfExtents(I){const g=A.rawcolliderset_coHalfExtents(this.ptr,I);return 0===g?void 0:BA.__wrap(g)}coSetHalfExtents(I,g){a(g,BA),A.rawcolliderset_coSetHalfExtents(this.ptr,I,g.ptr)}coRadius(I){try{const B=A.__wbindgen_add_to_stack_pointer(-16);A.rawcolliderset_coRadius(B,this.ptr,I);var g=G()[B/4+0],C=y()[B/4+1];return 0===g?void 0:C}finally{A.__wbindgen_add_to_stack_pointer(16)}}coSetRadius(I,g){A.rawcolliderset_coSetRadius(this.ptr,I,g)}coHalfHeight(I){try{const B=A.__wbindgen_add_to_stack_pointer(-16);A.rawcolliderset_coHalfHeight(B,this.ptr,I);var g=G()[B/4+0],C=y()[B/4+1];return 0===g?void 0:C}finally{A.__wbindgen_add_to_stack_pointer(16)}}coSetHalfHeight(I,g){A.rawcolliderset_coSetHalfHeight(this.ptr,I,g)}coRoundRadius(I){try{const B=A.__wbindgen_add_to_stack_pointer(-16);A.rawcolliderset_coRoundRadius(B,this.ptr,I);var g=G()[B/4+0],C=y()[B/4+1];return 0===g?void 0:C}finally{A.__wbindgen_add_to_stack_pointer(16)}}coSetRoundRadius(I,g){A.rawcolliderset_coSetRoundRadius(this.ptr,I,g)}coVertices(I){try{const B=A.__wbindgen_add_to_stack_pointer(-16);A.rawcolliderset_coVertices(B,this.ptr,I);var g=G()[B/4+0],C=G()[B/4+1];let Q;return 0!==g&&(Q=J(g,C).slice(),A.__wbindgen_free(g,4*C)),Q}finally{A.__wbindgen_add_to_stack_pointer(16)}}coIndices(I){try{const B=A.__wbindgen_add_to_stack_pointer(-16);A.rawcolliderset_coIndices(B,this.ptr,I);var g=G()[B/4+0],C=G()[B/4+1];let Q;return 0!==g&&(Q=function(A,I){return N().subarray(A/4,A/4+I)}(g,C).slice(),A.__wbindgen_free(g,4*C)),Q}finally{A.__wbindgen_add_to_stack_pointer(16)}}coHeightfieldHeights(I){try{const B=A.__wbindgen_add_to_stack_pointer(-16);A.rawcolliderset_coHeightfieldHeights(B,this.ptr,I);var g=G()[B/4+0],C=G()[B/4+1];let Q;return 0!==g&&(Q=J(g,C).slice(),A.__wbindgen_free(g,4*C)),Q}finally{A.__wbindgen_add_to_stack_pointer(16)}}coHeightfieldScale(I){const g=A.rawcolliderset_coHeightfieldScale(this.ptr,I);return 0===g?void 0:BA.__wrap(g)}coHeightfieldNRows(I){try{const B=A.__wbindgen_add_to_stack_pointer(-16);A.rawcolliderset_coHeightfieldNRows(B,this.ptr,I);var g=G()[B/4+0],C=G()[B/4+1];return 0===g?void 0:C>>>0}finally{A.__wbindgen_add_to_stack_pointer(16)}}coHeightfieldNCols(I){try{const B=A.__wbindgen_add_to_stack_pointer(-16);A.rawcolliderset_coHeightfieldNCols(B,this.ptr,I);var g=G()[B/4+0],C=G()[B/4+1];return 0===g?void 0:C>>>0}finally{A.__wbindgen_add_to_stack_pointer(16)}}coParent(I){try{const B=A.__wbindgen_add_to_stack_pointer(-16);A.rawcolliderset_coParent(B,this.ptr,I);var g=G()[B/4+0],C=D()[B/8+1];return 0===g?void 0:C}finally{A.__wbindgen_add_to_stack_pointer(16)}}coSetEnabled(I,g){A.rawcolliderset_coSetEnabled(this.ptr,I,g)}coIsEnabled(I){return 0!==A.rawcolliderset_coIsEnabled(this.ptr,I)}coFriction(I){return A.rawcolliderset_coFriction(this.ptr,I)}coRestitution(I){return A.rawcolliderset_coRestitution(this.ptr,I)}coDensity(I){return A.rawcolliderset_coDensity(this.ptr,I)}coMass(I){return A.rawcolliderset_coMass(this.ptr,I)}coVolume(I){return A.rawcolliderset_coVolume(this.ptr,I)}coCollisionGroups(I){return A.rawcolliderset_coCollisionGroups(this.ptr,I)>>>0}coSolverGroups(I){return A.rawcolliderset_coSolverGroups(this.ptr,I)>>>0}coActiveHooks(I){return A.rawcolliderset_coActiveHooks(this.ptr,I)>>>0}coActiveCollisionTypes(I){return A.rawcolliderset_coActiveCollisionTypes(this.ptr,I)}coActiveEvents(I){return A.rawcolliderset_coActiveEvents(this.ptr,I)>>>0}coContactForceEventThreshold(I){return A.rawcolliderset_coContactForceEventThreshold(this.ptr,I)}coContainsPoint(I,g){a(g,BA);return 0!==A.rawcolliderset_coContainsPoint(this.ptr,I,g.ptr)}coCastShape(I,g,C,B,Q,E,i,D){a(g,BA),a(C,AA),a(B,BA),a(Q,_),a(E,BA);const o=A.rawcolliderset_coCastShape(this.ptr,I,g.ptr,C.ptr,B.ptr,Q.ptr,E.ptr,i,D);return 0===o?void 0:CA.__wrap(o)}coCastCollider(I,g,C,B,Q,E){a(g,BA),a(B,BA);const i=A.rawcolliderset_coCastCollider(this.ptr,I,g.ptr,C,B.ptr,Q,E);return 0===i?void 0:IA.__wrap(i)}coIntersectsShape(I,g,C,B){a(g,AA),a(C,BA),a(B,_);return 0!==A.rawcolliderset_coIntersectsShape(this.ptr,I,g.ptr,C.ptr,B.ptr)}coContactShape(I,g,C,B,Q){a(g,AA),a(C,BA),a(B,_);const E=A.rawcolliderset_coContactShape(this.ptr,I,g.ptr,C.ptr,B.ptr,Q);return 0===E?void 0:gA.__wrap(E)}coContactCollider(I,g,C){const B=A.rawcolliderset_coContactCollider(this.ptr,I,g,C);return 0===B?void 0:gA.__wrap(B)}coProjectPoint(I,g,C){a(g,BA);const B=A.rawcolliderset_coProjectPoint(this.ptr,I,g.ptr,C);return X.__wrap(B)}coIntersectsRay(I,g,C,B){a(g,BA),a(C,BA);return 0!==A.rawcolliderset_coIntersectsRay(this.ptr,I,g.ptr,C.ptr,B)}coCastRay(I,g,C,B,Q){a(g,BA),a(C,BA);return A.rawcolliderset_coCastRay(this.ptr,I,g.ptr,C.ptr,B,Q)}coCastRayAndGetNormal(I,g,C,B,Q){a(g,BA),a(C,BA);const E=A.rawcolliderset_coCastRayAndGetNormal(this.ptr,I,g.ptr,C.ptr,B,Q);return 0===E?void 0:z.__wrap(E)}coSetSensor(I,g){A.rawcolliderset_coSetSensor(this.ptr,I,g)}coSetRestitution(I,g){A.rawcolliderset_coSetRestitution(this.ptr,I,g)}coSetFriction(I,g){A.rawcolliderset_coSetFriction(this.ptr,I,g)}coFrictionCombineRule(I){return A.rawcolliderset_coFrictionCombineRule(this.ptr,I)>>>0}coSetFrictionCombineRule(I,g){A.rawcolliderset_coSetFrictionCombineRule(this.ptr,I,g)}coRestitutionCombineRule(I){return A.rawcolliderset_coRestitutionCombineRule(this.ptr,I)>>>0}coSetRestitutionCombineRule(I,g){A.rawcolliderset_coSetRestitutionCombineRule(this.ptr,I,g)}coSetCollisionGroups(I,g){A.rawcolliderset_coSetCollisionGroups(this.ptr,I,g)}coSetSolverGroups(I,g){A.rawcolliderset_coSetSolverGroups(this.ptr,I,g)}coSetActiveHooks(I,g){A.rawcolliderset_coSetActiveHooks(this.ptr,I,g)}coSetActiveEvents(I,g){A.rawcolliderset_coSetActiveEvents(this.ptr,I,g)}coSetActiveCollisionTypes(I,g){A.rawcolliderset_coSetActiveCollisionTypes(this.ptr,I,g)}coSetShape(I,g){a(g,AA),A.rawcolliderset_coSetShape(this.ptr,I,g.ptr)}coSetContactForceEventThreshold(I,g){A.rawcolliderset_coSetContactForceEventThreshold(this.ptr,I,g)}coSetDensity(I,g){A.rawcolliderset_coSetDensity(this.ptr,I,g)}coSetMass(I,g){A.rawcolliderset_coSetMass(this.ptr,I,g)}coSetMassProperties(I,g,C,B,Q){a(C,BA),a(B,BA),a(Q,_),A.rawcolliderset_coSetMassProperties(this.ptr,I,g,C.ptr,B.ptr,Q.ptr)}constructor(){const I=A.rawcolliderset_new();return l.__wrap(I)}len(){return A.rawcolliderset_len(this.ptr)>>>0}contains(I){return 0!==A.rawcolliderset_contains(this.ptr,I)}createCollider(I,g,C,B,Q,E,i,o,w,S,k,K,y,h,M,J,U,N,F,q,R,s,Y,c){try{const l=A.__wbindgen_add_to_stack_pointer(-16);a(g,AA),a(C,BA),a(B,_),a(i,BA),a(o,BA),a(w,_),a(c,v),A.rawcolliderset_createCollider(l,this.ptr,I,g.ptr,C.ptr,B.ptr,Q,E,i.ptr,o.ptr,w.ptr,S,k,K,y,h,M,J,U,N,F,q,R,s,Y,c.ptr);var L=G()[l/4+0],H=D()[l/8+1];return 0===L?void 0:H}finally{A.__wbindgen_add_to_stack_pointer(16)}}remove(I,g,C,B){a(g,b),a(C,v),A.rawcolliderset_remove(this.ptr,I,g.ptr,C.ptr,B)}isHandleValid(I){return 0!==A.rawcolliderset_contains(this.ptr,I)}forEachColliderHandle(g){try{A.rawcolliderset_forEachColliderHandle(this.ptr,M(g))}finally{I[h++]=void 0}}}class t{static __wrap(A){const I=Object.create(t.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_rawcontactforceevent_free(I)}collider1(){return A.rawcharactercollision_handle(this.ptr)}collider2(){return A.rawcontactforceevent_collider2(this.ptr)}total_force(){const I=A.rawcontactforceevent_total_force(this.ptr);return BA.__wrap(I)}total_force_magnitude(){return A.rawcontactforceevent_total_force_magnitude(this.ptr)}max_force_direction(){const I=A.rawcontactforceevent_max_force_direction(this.ptr);return BA.__wrap(I)}max_force_magnitude(){return A.rawcontactforceevent_max_force_magnitude(this.ptr)}}class p{static __wrap(A){const I=Object.create(p.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_rawcontactmanifold_free(I)}normal(){const I=A.rawcontactmanifold_normal(this.ptr);return BA.__wrap(I)}local_n1(){const I=A.rawcontactmanifold_local_n1(this.ptr);return BA.__wrap(I)}local_n2(){const I=A.rawcontactmanifold_local_n2(this.ptr);return BA.__wrap(I)}subshape1(){return A.rawcontactmanifold_subshape1(this.ptr)>>>0}subshape2(){return A.rawcontactmanifold_subshape2(this.ptr)>>>0}num_contacts(){return A.rawcontactmanifold_num_contacts(this.ptr)>>>0}contact_local_p1(I){const g=A.rawcontactmanifold_contact_local_p1(this.ptr,I);return 0===g?void 0:BA.__wrap(g)}contact_local_p2(I){const g=A.rawcontactmanifold_contact_local_p2(this.ptr,I);return 0===g?void 0:BA.__wrap(g)}contact_dist(I){return A.rawcontactmanifold_contact_dist(this.ptr,I)}contact_fid1(I){return A.rawcontactmanifold_contact_fid1(this.ptr,I)>>>0}contact_fid2(I){return A.rawcontactmanifold_contact_fid2(this.ptr,I)>>>0}contact_impulse(I){return A.rawcontactmanifold_contact_impulse(this.ptr,I)}contact_tangent_impulse_x(I){return A.rawcontactmanifold_contact_tangent_impulse_x(this.ptr,I)}contact_tangent_impulse_y(I){return A.rawcontactmanifold_contact_tangent_impulse_y(this.ptr,I)}num_solver_contacts(){return A.rawcontactmanifold_num_solver_contacts(this.ptr)>>>0}solver_contact_point(I){const g=A.rawcontactmanifold_solver_contact_point(this.ptr,I);return 0===g?void 0:BA.__wrap(g)}solver_contact_dist(I){return A.rawcontactmanifold_solver_contact_dist(this.ptr,I)}solver_contact_friction(I){return A.rawcontactmanifold_solver_contact_friction(this.ptr,I)}solver_contact_restitution(I){return A.rawcontactmanifold_solver_contact_restitution(this.ptr,I)}solver_contact_tangent_velocity(I){const g=A.rawcontactmanifold_solver_contact_tangent_velocity(this.ptr,I);return BA.__wrap(g)}}class e{static __wrap(A){const I=Object.create(e.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_rawcontactpair_free(I)}collider1(){return A.rawcontactpair_collider1(this.ptr)}collider2(){return A.rawcontactpair_collider2(this.ptr)}numContactManifolds(){return A.rawcontactpair_numContactManifolds(this.ptr)>>>0}contactManifold(I){const g=A.rawcontactpair_contactManifold(this.ptr,I);return 0===g?void 0:p.__wrap(g)}}class r{static __wrap(A){const I=Object.create(r.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_rawdebugrenderpipeline_free(I)}constructor(){const I=A.rawdebugrenderpipeline_new();return r.__wrap(I)}vertices(){return B(A.rawdebugrenderpipeline_vertices(this.ptr))}colors(){return B(A.rawdebugrenderpipeline_colors(this.ptr))}render(I,g,C,B,Q){a(I,v),a(g,l),a(C,n),a(B,x),a(Q,j),A.rawdebugrenderpipeline_render(this.ptr,I.ptr,g.ptr,C.ptr,B.ptr,Q.ptr)}}class d{static __wrap(A){const I=Object.create(d.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_rawdeserializedworld_free(I)}takeGravity(){const I=A.rawdeserializedworld_takeGravity(this.ptr);return 0===I?void 0:BA.__wrap(I)}takeIntegrationParameters(){const I=A.rawdeserializedworld_takeIntegrationParameters(this.ptr);return 0===I?void 0:Z.__wrap(I)}takeIslandManager(){const I=A.rawdeserializedworld_takeIslandManager(this.ptr);return 0===I?void 0:b.__wrap(I)}takeBroadPhase(){const I=A.rawdeserializedworld_takeBroadPhase(this.ptr);return 0===I?void 0:c.__wrap(I)}takeNarrowPhase(){const I=A.rawdeserializedworld_takeNarrowPhase(this.ptr);return 0===I?void 0:j.__wrap(I)}takeBodies(){const I=A.rawdeserializedworld_takeBodies(this.ptr);return 0===I?void 0:v.__wrap(I)}takeColliders(){const I=A.rawdeserializedworld_takeColliders(this.ptr);return 0===I?void 0:l.__wrap(I)}takeImpulseJoints(){const I=A.rawdeserializedworld_takeImpulseJoints(this.ptr);return 0===I?void 0:n.__wrap(I)}takeMultibodyJoints(){const I=A.rawdeserializedworld_takeMultibodyJoints(this.ptr);return 0===I?void 0:x.__wrap(I)}}class T{static __wrap(A){const I=Object.create(T.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_raweventqueue_free(I)}constructor(I){const g=A.raweventqueue_new(I);return T.__wrap(g)}drainCollisionEvents(g){try{A.raweventqueue_drainCollisionEvents(this.ptr,M(g))}finally{I[h++]=void 0}}drainContactForceEvents(g){try{A.raweventqueue_drainContactForceEvents(this.ptr,M(g))}finally{I[h++]=void 0}}clear(){A.raweventqueue_clear(this.ptr)}}class O{static __wrap(A){const I=Object.create(O.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_rawgenericjoint_free(I)}static spherical(I,g){a(I,BA),a(g,BA);const C=A.rawgenericjoint_spherical(I.ptr,g.ptr);return O.__wrap(C)}static prismatic(I,g,C,B,Q,E){a(I,BA),a(g,BA),a(C,BA);const i=A.rawgenericjoint_prismatic(I.ptr,g.ptr,C.ptr,B,Q,E);return 0===i?void 0:O.__wrap(i)}static fixed(I,g,C,B){a(I,BA),a(g,_),a(C,BA),a(B,_);const Q=A.rawgenericjoint_fixed(I.ptr,g.ptr,C.ptr,B.ptr);return O.__wrap(Q)}static revolute(I,g,C){a(I,BA),a(g,BA),a(C,BA);const B=A.rawgenericjoint_revolute(I.ptr,g.ptr,C.ptr);return 0===B?void 0:O.__wrap(B)}}class n{static __wrap(A){const I=Object.create(n.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_rawimpulsejointset_free(I)}jointType(I){return A.rawimpulsejointset_jointType(this.ptr,I)>>>0}jointBodyHandle1(I){return A.rawimpulsejointset_jointBodyHandle1(this.ptr,I)}jointBodyHandle2(I){return A.rawimpulsejointset_jointBodyHandle2(this.ptr,I)}jointFrameX1(I){const g=A.rawimpulsejointset_jointFrameX1(this.ptr,I);return _.__wrap(g)}jointFrameX2(I){const g=A.rawimpulsejointset_jointFrameX2(this.ptr,I);return _.__wrap(g)}jointAnchor1(I){const g=A.rawimpulsejointset_jointAnchor1(this.ptr,I);return BA.__wrap(g)}jointAnchor2(I){const g=A.rawimpulsejointset_jointAnchor2(this.ptr,I);return BA.__wrap(g)}jointSetAnchor1(I,g){a(g,BA),A.rawimpulsejointset_jointSetAnchor1(this.ptr,I,g.ptr)}jointSetAnchor2(I,g){a(g,BA),A.rawimpulsejointset_jointSetAnchor2(this.ptr,I,g.ptr)}jointContactsEnabled(I){return 0!==A.rawimpulsejointset_jointContactsEnabled(this.ptr,I)}jointSetContactsEnabled(I,g){A.rawimpulsejointset_jointSetContactsEnabled(this.ptr,I,g)}jointLimitsEnabled(I,g){return 0!==A.rawimpulsejointset_jointLimitsEnabled(this.ptr,I,g)}jointLimitsMin(I,g){return A.rawimpulsejointset_jointLimitsMin(this.ptr,I,g)}jointLimitsMax(I,g){return A.rawimpulsejointset_jointLimitsMax(this.ptr,I,g)}jointSetLimits(I,g,C,B){A.rawimpulsejointset_jointSetLimits(this.ptr,I,g,C,B)}jointConfigureMotorModel(I,g,C){A.rawimpulsejointset_jointConfigureMotorModel(this.ptr,I,g,C)}jointConfigureMotorVelocity(I,g,C,B){A.rawimpulsejointset_jointConfigureMotorVelocity(this.ptr,I,g,C,B)}jointConfigureMotorPosition(I,g,C,B,Q){A.rawimpulsejointset_jointConfigureMotorPosition(this.ptr,I,g,C,B,Q)}jointConfigureMotor(I,g,C,B,Q,E){A.rawimpulsejointset_jointConfigureMotor(this.ptr,I,g,C,B,Q,E)}constructor(){const I=A.rawimpulsejointset_new();return n.__wrap(I)}createJoint(I,g,C,B){a(I,O);return A.rawimpulsejointset_createJoint(this.ptr,I.ptr,g,C,B)}remove(I,g){A.rawimpulsejointset_remove(this.ptr,I,g)}len(){return A.rawimpulsejointset_len(this.ptr)>>>0}contains(I){return 0!==A.rawimpulsejointset_contains(this.ptr,I)}forEachJointHandle(g){try{A.rawimpulsejointset_forEachJointHandle(this.ptr,M(g))}finally{I[h++]=void 0}}forEachJointAttachedToRigidBody(g,C){try{A.rawimpulsejointset_forEachJointAttachedToRigidBody(this.ptr,g,M(C))}finally{I[h++]=void 0}}}class Z{static __wrap(A){const I=Object.create(Z.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_rawintegrationparameters_free(I)}constructor(){const I=A.rawintegrationparameters_new();return Z.__wrap(I)}get dt(){return A.rawintegrationparameters_dt(this.ptr)}get erp(){return A.rawcharactercollision_toi(this.ptr)}get allowedLinearError(){return A.rawintegrationparameters_allowedLinearError(this.ptr)}get predictionDistance(){return A.rawintegrationparameters_predictionDistance(this.ptr)}get maxVelocityIterations(){return A.rawintegrationparameters_maxVelocityIterations(this.ptr)>>>0}get maxVelocityFrictionIterations(){return A.rawintegrationparameters_maxVelocityFrictionIterations(this.ptr)>>>0}get maxStabilizationIterations(){return A.rawintegrationparameters_maxStabilizationIterations(this.ptr)>>>0}get minIslandSize(){return A.rawintegrationparameters_minIslandSize(this.ptr)>>>0}get maxCcdSubsteps(){return A.rawintegrationparameters_maxCcdSubsteps(this.ptr)>>>0}set dt(I){A.rawintegrationparameters_set_dt(this.ptr,I)}set erp(I){A.rawintegrationparameters_set_erp(this.ptr,I)}set allowedLinearError(I){A.rawintegrationparameters_set_allowedLinearError(this.ptr,I)}set predictionDistance(I){A.rawintegrationparameters_set_predictionDistance(this.ptr,I)}set maxVelocityIterations(I){A.rawintegrationparameters_set_maxVelocityIterations(this.ptr,I)}set maxVelocityFrictionIterations(I){A.rawintegrationparameters_set_maxVelocityFrictionIterations(this.ptr,I)}set maxStabilizationIterations(I){A.rawintegrationparameters_set_maxStabilizationIterations(this.ptr,I)}set minIslandSize(I){A.rawintegrationparameters_set_minIslandSize(this.ptr,I)}set maxCcdSubsteps(I){A.rawintegrationparameters_set_maxCcdSubsteps(this.ptr,I)}}class b{static __wrap(A){const I=Object.create(b.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_rawislandmanager_free(I)}constructor(){const I=A.rawislandmanager_new();return b.__wrap(I)}forEachActiveRigidBodyHandle(g){try{A.rawislandmanager_forEachActiveRigidBodyHandle(this.ptr,M(g))}finally{I[h++]=void 0}}}class W{static __wrap(A){const I=Object.create(W.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_rawkinematiccharactercontroller_free(I)}constructor(I){const g=A.rawkinematiccharactercontroller_new(I);return W.__wrap(g)}up(){const I=A.rawkinematiccharactercontroller_up(this.ptr);return BA.__wrap(I)}setUp(I){a(I,BA),A.rawkinematiccharactercontroller_setUp(this.ptr,I.ptr)}offset(){return A.rawkinematiccharactercontroller_offset(this.ptr)}setOffset(I){A.rawkinematiccharactercontroller_setOffset(this.ptr,I)}slideEnabled(){return 0!==A.rawkinematiccharactercontroller_slideEnabled(this.ptr)}setSlideEnabled(I){A.rawkinematiccharactercontroller_setSlideEnabled(this.ptr,I)}autostepMaxHeight(){try{const C=A.__wbindgen_add_to_stack_pointer(-16);A.rawkinematiccharactercontroller_autostepMaxHeight(C,this.ptr);var I=G()[C/4+0],g=y()[C/4+1];return 0===I?void 0:g}finally{A.__wbindgen_add_to_stack_pointer(16)}}autostepMinWidth(){try{const C=A.__wbindgen_add_to_stack_pointer(-16);A.rawkinematiccharactercontroller_autostepMinWidth(C,this.ptr);var I=G()[C/4+0],g=y()[C/4+1];return 0===I?void 0:g}finally{A.__wbindgen_add_to_stack_pointer(16)}}autostepIncludesDynamicBodies(){const I=A.rawkinematiccharactercontroller_autostepIncludesDynamicBodies(this.ptr);return 16777215===I?void 0:0!==I}autostepEnabled(){return 0!==A.rawkinematiccharactercontroller_autostepEnabled(this.ptr)}enableAutostep(I,g,C){A.rawkinematiccharactercontroller_enableAutostep(this.ptr,I,g,C)}disableAutostep(){A.rawkinematiccharactercontroller_disableAutostep(this.ptr)}maxSlopeClimbAngle(){return A.rawkinematiccharactercontroller_maxSlopeClimbAngle(this.ptr)}setMaxSlopeClimbAngle(I){A.rawkinematiccharactercontroller_setMaxSlopeClimbAngle(this.ptr,I)}minSlopeSlideAngle(){return A.rawkinematiccharactercontroller_minSlopeSlideAngle(this.ptr)}setMinSlopeSlideAngle(I){A.rawkinematiccharactercontroller_setMinSlopeSlideAngle(this.ptr,I)}snapToGroundDistance(){try{const C=A.__wbindgen_add_to_stack_pointer(-16);A.rawkinematiccharactercontroller_snapToGroundDistance(C,this.ptr);var I=G()[C/4+0],g=y()[C/4+1];return 0===I?void 0:g}finally{A.__wbindgen_add_to_stack_pointer(16)}}enableSnapToGround(I){A.rawkinematiccharactercontroller_enableSnapToGround(this.ptr,I)}disableSnapToGround(){A.rawkinematiccharactercontroller_disableSnapToGround(this.ptr)}snapToGroundEnabled(){return 0!==A.rawkinematiccharactercontroller_snapToGroundEnabled(this.ptr)}computeColliderMovement(g,C,B,Q,i,D,o,G,w,S,k){try{a(C,v),a(B,l),a(Q,P),a(D,BA),A.rawkinematiccharactercontroller_computeColliderMovement(this.ptr,g,C.ptr,B.ptr,Q.ptr,i,D.ptr,o,!E(G),E(G)?0:G,w,!E(S),E(S)?0:S,M(k))}finally{I[h++]=void 0}}computedMovement(){const I=A.rawkinematiccharactercontroller_computedMovement(this.ptr);return BA.__wrap(I)}computedGrounded(){return 0!==A.rawkinematiccharactercontroller_computedGrounded(this.ptr)}numComputedCollisions(){return A.rawkinematiccharactercontroller_numComputedCollisions(this.ptr)>>>0}computedCollision(I,g){a(g,H);return 0!==A.rawkinematiccharactercontroller_computedCollision(this.ptr,I,g.ptr)}}class x{static __wrap(A){const I=Object.create(x.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_rawmultibodyjointset_free(I)}jointType(I){return A.rawmultibodyjointset_jointType(this.ptr,I)>>>0}jointFrameX1(I){const g=A.rawmultibodyjointset_jointFrameX1(this.ptr,I);return _.__wrap(g)}jointFrameX2(I){const g=A.rawmultibodyjointset_jointFrameX2(this.ptr,I);return _.__wrap(g)}jointAnchor1(I){const g=A.rawmultibodyjointset_jointAnchor1(this.ptr,I);return BA.__wrap(g)}jointAnchor2(I){const g=A.rawmultibodyjointset_jointAnchor2(this.ptr,I);return BA.__wrap(g)}jointContactsEnabled(I){return 0!==A.rawmultibodyjointset_jointContactsEnabled(this.ptr,I)}jointSetContactsEnabled(I,g){A.rawmultibodyjointset_jointSetContactsEnabled(this.ptr,I,g)}jointLimitsEnabled(I,g){return 0!==A.rawmultibodyjointset_jointLimitsEnabled(this.ptr,I,g)}jointLimitsMin(I,g){return A.rawmultibodyjointset_jointLimitsMin(this.ptr,I,g)}jointLimitsMax(I,g){return A.rawmultibodyjointset_jointLimitsMax(this.ptr,I,g)}constructor(){const I=A.rawmultibodyjointset_new();return x.__wrap(I)}createJoint(I,g,C,B){a(I,O);return A.rawmultibodyjointset_createJoint(this.ptr,I.ptr,g,C,B)}remove(I,g){A.rawmultibodyjointset_remove(this.ptr,I,g)}contains(I){return 0!==A.rawmultibodyjointset_contains(this.ptr,I)}forEachJointHandle(g){try{A.rawmultibodyjointset_forEachJointHandle(this.ptr,M(g))}finally{I[h++]=void 0}}forEachJointAttachedToRigidBody(g,C){try{A.rawmultibodyjointset_forEachJointAttachedToRigidBody(this.ptr,g,M(C))}finally{I[h++]=void 0}}}class j{static __wrap(A){const I=Object.create(j.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_rawnarrowphase_free(I)}constructor(){const I=A.rawnarrowphase_new();return j.__wrap(I)}contacts_with(I,g){A.rawnarrowphase_contacts_with(this.ptr,I,Q(g))}contact_pair(I,g){const C=A.rawnarrowphase_contact_pair(this.ptr,I,g);return 0===C?void 0:e.__wrap(C)}intersections_with(I,g){A.rawnarrowphase_intersections_with(this.ptr,I,Q(g))}intersection_pair(I,g){return 0!==A.rawnarrowphase_intersection_pair(this.ptr,I,g)}}class f{static __wrap(A){const I=Object.create(f.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_rawphysicspipeline_free(I)}constructor(){const I=A.rawphysicspipeline_new();return f.__wrap(I)}step(I,g,C,B,Q,E,i,D,o,G){a(I,BA),a(g,Z),a(C,b),a(B,c),a(Q,j),a(E,v),a(i,l),a(D,n),a(o,x),a(G,L),A.rawphysicspipeline_step(this.ptr,I.ptr,g.ptr,C.ptr,B.ptr,Q.ptr,E.ptr,i.ptr,D.ptr,o.ptr,G.ptr)}stepWithEvents(I,g,C,B,E,i,D,o,G,w,S,k,K,y){a(I,BA),a(g,Z),a(C,b),a(B,c),a(E,j),a(i,v),a(D,l),a(o,n),a(G,x),a(w,L),a(S,T),A.rawphysicspipeline_stepWithEvents(this.ptr,I.ptr,g.ptr,C.ptr,B.ptr,E.ptr,i.ptr,D.ptr,o.ptr,G.ptr,w.ptr,S.ptr,Q(k),Q(K),Q(y))}}class V{static __wrap(A){const I=Object.create(V.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_rawpointcolliderprojection_free(I)}colliderHandle(){return A.rawpointcolliderprojection_colliderHandle(this.ptr)}point(){const I=A.rawkinematiccharactercontroller_computedMovement(this.ptr);return BA.__wrap(I)}isInside(){return 0!==A.rawkinematiccharactercontroller_computedGrounded(this.ptr)}featureType(){return A.rawpointcolliderprojection_featureType(this.ptr)>>>0}featureId(){try{const C=A.__wbindgen_add_to_stack_pointer(-16);A.rawpointcolliderprojection_featureId(C,this.ptr);var I=G()[C/4+0],g=G()[C/4+1];return 0===I?void 0:g>>>0}finally{A.__wbindgen_add_to_stack_pointer(16)}}}class X{static __wrap(A){const I=Object.create(X.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_rawpointprojection_free(I)}point(){const I=A.rawkinematiccharactercontroller_computedMovement(this.ptr);return BA.__wrap(I)}isInside(){return 0!==A.rawkinematiccharactercontroller_computedGrounded(this.ptr)}}class P{static __wrap(A){const I=Object.create(P.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_rawquerypipeline_free(I)}constructor(){const I=A.rawquerypipeline_new();return P.__wrap(I)}update(I,g){a(I,v),a(g,l),A.rawquerypipeline_update(this.ptr,I.ptr,g.ptr)}castRay(g,C,B,Q,i,D,o,G,w,S,k){try{a(g,v),a(C,l),a(B,BA),a(Q,BA);const K=A.rawquerypipeline_castRay(this.ptr,g.ptr,C.ptr,B.ptr,Q.ptr,i,D,o,!E(G),E(G)?0:G,!E(w),E(w)?0:w,!E(S),E(S)?0:S,M(k));return 0===K?void 0:u.__wrap(K)}finally{I[h++]=void 0}}castRayAndGetNormal(g,C,B,Q,i,D,o,G,w,S,k){try{a(g,v),a(C,l),a(B,BA),a(Q,BA);const K=A.rawquerypipeline_castRayAndGetNormal(this.ptr,g.ptr,C.ptr,B.ptr,Q.ptr,i,D,o,!E(G),E(G)?0:G,!E(w),E(w)?0:w,!E(S),E(S)?0:S,M(k));return 0===K?void 0:m.__wrap(K)}finally{I[h++]=void 0}}intersectionsWithRay(g,C,B,Q,i,D,o,G,w,S,k,K){try{a(g,v),a(C,l),a(B,BA),a(Q,BA),A.rawquerypipeline_intersectionsWithRay(this.ptr,g.ptr,C.ptr,B.ptr,Q.ptr,i,D,M(o),G,!E(w),E(w)?0:w,!E(S),E(S)?0:S,!E(k),E(k)?0:k,M(K))}finally{I[h++]=void 0,I[h++]=void 0}}intersectionWithShape(g,C,B,Q,i,o,w,S,k,K){try{const U=A.__wbindgen_add_to_stack_pointer(-16);a(g,v),a(C,l),a(B,BA),a(Q,_),a(i,AA),A.rawquerypipeline_intersectionWithShape(U,this.ptr,g.ptr,C.ptr,B.ptr,Q.ptr,i.ptr,o,!E(w),E(w)?0:w,!E(S),E(S)?0:S,!E(k),E(k)?0:k,M(K));var y=G()[U/4+0],J=D()[U/8+1];return 0===y?void 0:J}finally{A.__wbindgen_add_to_stack_pointer(16),I[h++]=void 0}}projectPoint(g,C,B,Q,i,D,o,G,w){try{a(g,v),a(C,l),a(B,BA);const S=A.rawquerypipeline_projectPoint(this.ptr,g.ptr,C.ptr,B.ptr,Q,i,!E(D),E(D)?0:D,!E(o),E(o)?0:o,!E(G),E(G)?0:G,M(w));return 0===S?void 0:V.__wrap(S)}finally{I[h++]=void 0}}projectPointAndGetFeature(g,C,B,Q,i,D,o,G){try{a(g,v),a(C,l),a(B,BA);const w=A.rawquerypipeline_projectPointAndGetFeature(this.ptr,g.ptr,C.ptr,B.ptr,Q,!E(i),E(i)?0:i,!E(D),E(D)?0:D,!E(o),E(o)?0:o,M(G));return 0===w?void 0:V.__wrap(w)}finally{I[h++]=void 0}}intersectionsWithPoint(g,C,B,Q,i,D,o,G,w){try{a(g,v),a(C,l),a(B,BA),A.rawquerypipeline_intersectionsWithPoint(this.ptr,g.ptr,C.ptr,B.ptr,M(Q),i,!E(D),E(D)?0:D,!E(o),E(o)?0:o,!E(G),E(G)?0:G,M(w))}finally{I[h++]=void 0,I[h++]=void 0}}castShape(g,C,B,Q,i,D,o,G,w,S,k,K,y){try{a(g,v),a(C,l),a(B,BA),a(Q,_),a(i,BA),a(D,AA);const J=A.rawquerypipeline_castShape(this.ptr,g.ptr,C.ptr,B.ptr,Q.ptr,i.ptr,D.ptr,o,G,w,!E(S),E(S)?0:S,!E(k),E(k)?0:k,!E(K),E(K)?0:K,M(y));return 0===J?void 0:IA.__wrap(J)}finally{I[h++]=void 0}}intersectionsWithShape(g,C,B,Q,i,D,o,G,w,S,k){try{a(g,v),a(C,l),a(B,BA),a(Q,_),a(i,AA),A.rawquerypipeline_intersectionsWithShape(this.ptr,g.ptr,C.ptr,B.ptr,Q.ptr,i.ptr,M(D),o,!E(G),E(G)?0:G,!E(w),E(w)?0:w,!E(S),E(S)?0:S,M(k))}finally{I[h++]=void 0,I[h++]=void 0}}collidersWithAabbIntersectingAabb(g,C,B){try{a(g,BA),a(C,BA),A.rawquerypipeline_collidersWithAabbIntersectingAabb(this.ptr,g.ptr,C.ptr,M(B))}finally{I[h++]=void 0}}}class m{static __wrap(A){const I=Object.create(m.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_rawraycolliderintersection_free(I)}colliderHandle(){return A.rawcharactercollision_handle(this.ptr)}normal(){const I=A.rawraycolliderintersection_normal(this.ptr);return BA.__wrap(I)}toi(){return A.rawraycolliderintersection_toi(this.ptr)}featureType(){return A.rawraycolliderintersection_featureType(this.ptr)>>>0}featureId(){try{const C=A.__wbindgen_add_to_stack_pointer(-16);A.rawraycolliderintersection_featureId(C,this.ptr);var I=G()[C/4+0],g=G()[C/4+1];return 0===I?void 0:g>>>0}finally{A.__wbindgen_add_to_stack_pointer(16)}}}class u{static __wrap(A){const I=Object.create(u.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_rawraycollidertoi_free(I)}colliderHandle(){return A.rawcharactercollision_handle(this.ptr)}toi(){return A.rawcharactercollision_toi(this.ptr)}}class z{static __wrap(A){const I=Object.create(z.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_rawrayintersection_free(I)}normal(){const I=A.rawcharactercollision_worldWitness1(this.ptr);return BA.__wrap(I)}toi(){return A.rawcharactercollision_toi(this.ptr)}featureType(){return A.rawrayintersection_featureType(this.ptr)>>>0}featureId(){try{const C=A.__wbindgen_add_to_stack_pointer(-16);A.rawrayintersection_featureId(C,this.ptr);var I=G()[C/4+0],g=G()[C/4+1];return 0===I?void 0:g>>>0}finally{A.__wbindgen_add_to_stack_pointer(16)}}}class v{static __wrap(A){const I=Object.create(v.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_rawrigidbodyset_free(I)}rbTranslation(I){const g=A.rawrigidbodyset_rbTranslation(this.ptr,I);return BA.__wrap(g)}rbRotation(I){const g=A.rawrigidbodyset_rbRotation(this.ptr,I);return _.__wrap(g)}rbSleep(I){A.rawrigidbodyset_rbSleep(this.ptr,I)}rbIsSleeping(I){return 0!==A.rawrigidbodyset_rbIsSleeping(this.ptr,I)}rbIsMoving(I){return 0!==A.rawrigidbodyset_rbIsMoving(this.ptr,I)}rbNextTranslation(I){const g=A.rawrigidbodyset_rbNextTranslation(this.ptr,I);return BA.__wrap(g)}rbNextRotation(I){const g=A.rawrigidbodyset_rbNextRotation(this.ptr,I);return _.__wrap(g)}rbSetTranslation(I,g,C,B,Q){A.rawrigidbodyset_rbSetTranslation(this.ptr,I,g,C,B,Q)}rbSetRotation(I,g,C,B,Q,E){A.rawrigidbodyset_rbSetRotation(this.ptr,I,g,C,B,Q,E)}rbSetLinvel(I,g,C){a(g,BA),A.rawrigidbodyset_rbSetLinvel(this.ptr,I,g.ptr,C)}rbSetAngvel(I,g,C){a(g,BA),A.rawrigidbodyset_rbSetAngvel(this.ptr,I,g.ptr,C)}rbSetNextKinematicTranslation(I,g,C,B){A.rawrigidbodyset_rbSetNextKinematicTranslation(this.ptr,I,g,C,B)}rbSetNextKinematicRotation(I,g,C,B,Q){A.rawrigidbodyset_rbSetNextKinematicRotation(this.ptr,I,g,C,B,Q)}rbRecomputeMassPropertiesFromColliders(I,g){a(g,l),A.rawrigidbodyset_rbRecomputeMassPropertiesFromColliders(this.ptr,I,g.ptr)}rbSetAdditionalMass(I,g,C){A.rawrigidbodyset_rbSetAdditionalMass(this.ptr,I,g,C)}rbSetAdditionalMassProperties(I,g,C,B,Q,E){a(C,BA),a(B,BA),a(Q,_),A.rawrigidbodyset_rbSetAdditionalMassProperties(this.ptr,I,g,C.ptr,B.ptr,Q.ptr,E)}rbLinvel(I){const g=A.rawrigidbodyset_rbLinvel(this.ptr,I);return BA.__wrap(g)}rbAngvel(I){const g=A.rawrigidbodyset_rbAngvel(this.ptr,I);return BA.__wrap(g)}rbLockTranslations(I,g,C){A.rawrigidbodyset_rbLockTranslations(this.ptr,I,g,C)}rbSetEnabledTranslations(I,g,C,B,Q){A.rawrigidbodyset_rbSetEnabledTranslations(this.ptr,I,g,C,B,Q)}rbLockRotations(I,g,C){A.rawrigidbodyset_rbLockRotations(this.ptr,I,g,C)}rbSetEnabledRotations(I,g,C,B,Q){A.rawrigidbodyset_rbSetEnabledRotations(this.ptr,I,g,C,B,Q)}rbDominanceGroup(I){return A.rawrigidbodyset_rbDominanceGroup(this.ptr,I)}rbSetDominanceGroup(I,g){A.rawrigidbodyset_rbSetDominanceGroup(this.ptr,I,g)}rbEnableCcd(I,g){A.rawrigidbodyset_rbEnableCcd(this.ptr,I,g)}rbMass(I){return A.rawrigidbodyset_rbMass(this.ptr,I)}rbWakeUp(I){A.rawrigidbodyset_rbWakeUp(this.ptr,I)}rbIsCcdEnabled(I){return 0!==A.rawrigidbodyset_rbIsCcdEnabled(this.ptr,I)}rbNumColliders(I){return A.rawrigidbodyset_rbNumColliders(this.ptr,I)>>>0}rbCollider(I,g){return A.rawrigidbodyset_rbCollider(this.ptr,I,g)}rbBodyType(I){return A.rawrigidbodyset_rbBodyType(this.ptr,I)>>>0}rbSetBodyType(I,g,C){A.rawrigidbodyset_rbSetBodyType(this.ptr,I,g,C)}rbIsFixed(I){return 0!==A.rawrigidbodyset_rbIsFixed(this.ptr,I)}rbIsKinematic(I){return 0!==A.rawrigidbodyset_rbIsKinematic(this.ptr,I)}rbIsDynamic(I){return 0!==A.rawrigidbodyset_rbIsDynamic(this.ptr,I)}rbLinearDamping(I){return A.rawrigidbodyset_rbLinearDamping(this.ptr,I)}rbAngularDamping(I){return A.rawrigidbodyset_rbAngularDamping(this.ptr,I)}rbSetLinearDamping(I,g){A.rawrigidbodyset_rbSetLinearDamping(this.ptr,I,g)}rbSetAngularDamping(I,g){A.rawrigidbodyset_rbSetAngularDamping(this.ptr,I,g)}rbSetEnabled(I,g){A.rawrigidbodyset_rbSetEnabled(this.ptr,I,g)}rbIsEnabled(I){return 0!==A.rawrigidbodyset_rbIsEnabled(this.ptr,I)}rbGravityScale(I){return A.rawrigidbodyset_rbGravityScale(this.ptr,I)}rbSetGravityScale(I,g,C){A.rawrigidbodyset_rbSetGravityScale(this.ptr,I,g,C)}rbResetForces(I,g){A.rawrigidbodyset_rbResetForces(this.ptr,I,g)}rbResetTorques(I,g){A.rawrigidbodyset_rbResetTorques(this.ptr,I,g)}rbAddForce(I,g,C){a(g,BA),A.rawrigidbodyset_rbAddForce(this.ptr,I,g.ptr,C)}rbApplyImpulse(I,g,C){a(g,BA),A.rawrigidbodyset_rbApplyImpulse(this.ptr,I,g.ptr,C)}rbAddTorque(I,g,C){a(g,BA),A.rawrigidbodyset_rbAddTorque(this.ptr,I,g.ptr,C)}rbApplyTorqueImpulse(I,g,C){a(g,BA),A.rawrigidbodyset_rbApplyTorqueImpulse(this.ptr,I,g.ptr,C)}rbAddForceAtPoint(I,g,C,B){a(g,BA),a(C,BA),A.rawrigidbodyset_rbAddForceAtPoint(this.ptr,I,g.ptr,C.ptr,B)}rbApplyImpulseAtPoint(I,g,C,B){a(g,BA),a(C,BA),A.rawrigidbodyset_rbApplyImpulseAtPoint(this.ptr,I,g.ptr,C.ptr,B)}rbUserData(I){return A.rawrigidbodyset_rbUserData(this.ptr,I)>>>0}rbSetUserData(I,g){A.rawrigidbodyset_rbSetUserData(this.ptr,I,g)}constructor(){const I=A.rawrigidbodyset_new();return v.__wrap(I)}createRigidBody(I,g,C,B,Q,E,i,D,o,G,w,S,k,K,y,h,M,J,U,N,F,q,R,s){a(g,BA),a(C,_),a(i,BA),a(D,BA),a(o,BA),a(G,BA),a(w,_);return A.rawrigidbodyset_createRigidBody(this.ptr,I,g.ptr,C.ptr,B,Q,E,i.ptr,D.ptr,o.ptr,G.ptr,w.ptr,S,k,K,y,h,M,J,U,N,F,q,R,s)}remove(I,g,C,B,Q){a(g,b),a(C,l),a(B,n),a(Q,x),A.rawrigidbodyset_remove(this.ptr,I,g.ptr,C.ptr,B.ptr,Q.ptr)}len(){return A.rawrigidbodyset_len(this.ptr)>>>0}contains(I){return 0!==A.rawrigidbodyset_contains(this.ptr,I)}forEachRigidBodyHandle(g){try{A.rawrigidbodyset_forEachRigidBodyHandle(this.ptr,M(g))}finally{I[h++]=void 0}}propagateModifiedBodyPositionsToColliders(I){a(I,l),A.rawrigidbodyset_propagateModifiedBodyPositionsToColliders(this.ptr,I.ptr)}}class _{static __wrap(A){const I=Object.create(_.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_rawrotation_free(I)}constructor(I,g,C,B){const Q=A.rawrotation_new(I,g,C,B);return _.__wrap(Q)}static identity(){const I=A.rawrotation_identity();return _.__wrap(I)}get x(){return A.rawintegrationparameters_dt(this.ptr)}get y(){return A.rawrotation_y(this.ptr)}get z(){return A.rawcharactercollision_toi(this.ptr)}get w(){return A.rawrotation_w(this.ptr)}}class ${static __wrap(A){const I=Object.create($.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_rawserializationpipeline_free(I)}constructor(){const I=A.rawserializationpipeline_new();return $.__wrap(I)}serializeAll(I,g,C,Q,E,i,D,o,G){a(I,BA),a(g,Z),a(C,b),a(Q,c),a(E,j),a(i,v),a(D,l),a(o,n),a(G,x);return B(A.rawserializationpipeline_serializeAll(this.ptr,I.ptr,g.ptr,C.ptr,Q.ptr,E.ptr,i.ptr,D.ptr,o.ptr,G.ptr))}deserializeAll(I){const g=A.rawserializationpipeline_deserializeAll(this.ptr,Q(I));return 0===g?void 0:d.__wrap(g)}}class AA{static __wrap(A){const I=Object.create(AA.prototype);return I.ptr=A,I}__destroy_into_raw(){const A=this.ptr;return this.ptr=0,A}free(){const I=this.__destroy_into_raw();A.__wbg_rawshape_free(I)}static cuboid(I,g,C){const B=A.rawshape_cuboid(I,g,C);return AA.__wrap(B)}static roundCuboid(I,g,C,B){const Q=A.rawshape_roundCuboid(I,g,C,B);return AA.__wrap(Q)}static ball(I){const g=A.rawshape_ball(I);return AA.__wrap(g)}static halfspace(I){a(I,BA);const g=A.rawshape_halfspace(I.ptr);return AA.__wrap(g)}static capsule(I,g){const C=A.rawshape_capsule(I,g);return AA.__wrap(C)}static cylinder(I,g){const C=A.rawshape_cylinder(I,g);return AA.__wrap(C)}static roundCylinder(I,g,C){const B=A.rawshape_roundCylinder(I,g,C);return AA.__wrap(B)}static cone(I,g){const C=A.rawshape_cone(I,g);return AA.__wrap(C)}static roundCone(I,g,C){const B=A.rawshape_roundCone(I,g,C);return AA.__wrap(B)}static polyline(I,g){const C=q(I,A.__wbindgen_malloc),B=F,Q=R(g,A.__wbindgen_malloc),E=F,i=A.rawshape_polyline(C,B,Q,E);return AA.__wrap(i)}static trimesh(I,g){const C=q(I,A.__wbindgen_malloc),B=F,Q=R(g,A.__wbindgen_malloc),E=F,i=A.rawshape_trimesh(C,B,Q,E);return AA.__wrap(i)}static heightfield(I,g,C,B){const Q=q(C,A.__wbindgen_malloc),E=F;a(B,BA);const i=A.rawshape_heightfield(I,g,Q,E,B.ptr);return AA.__wrap(i)}static segment(I,g){a(I,BA),a(g,BA);const C=A.rawshape_segment(I.ptr,g.ptr);return AA.__wrap(C)}static triangle(I,g,C){a(I,BA),a(g,BA),a(C,BA);const B=A.rawshape_triangle(I.ptr,g.ptr,C.ptr);return AA.__wrap(B)}static roundTriangle(I,g,C,B){a(I,BA),a(g,BA),a(C,BA);const Q=A.rawshape_roundTriangle(I.ptr,g.ptr,C.ptr,B);return AA.__wrap(Q)}static convexHull(I){const g=q(I,A.__wbindgen_malloc),C=F,B=A.rawshape_convexHull(g,C);return 0===B?void 0:AA.__wrap(B)}static roundConvexHull(I,g){const C=q(I,A.__wbindgen_malloc),B=F,Q=A.rawshape_roundConvexHull(C,B,g);return 0===Q?void 0:AA.__wrap(Q)}static convexMesh(I,g){const C=q(I,A.__wbindgen_malloc),B=F,Q=R(g,A.__wbindgen_malloc),E=F,i=A.rawshape_convexMesh(C,B,Q,E);return 0===i?void 0:AA.__wrap(i)}static roundConvexMesh(I,g,C){const B=q(I,A.__wbindgen_malloc),Q=F,E=R(g,A.__wbindgen_malloc),i=F,D=A.rawshape_roundConvexMesh(B,Q,E,i,C);return 0===D?void 0:AA.__wrap(D)}castShape(I,g,C,B,Q,E,i,D,o){a(I,BA),a(g,_),a(C,BA),a(B,AA),a(Q,BA),a(E,_),a(i,BA);const G=A.rawshape_castShape(this.ptr,I.ptr,g.ptr,C.ptr,B.ptr,Q.ptr,E.ptr,i.ptr,D,o);return 0===G?void 0:CA.__wrap(G)}intersectsShape(I,g,C,B,Q){a(I,BA),a(g,_),a(C,AA),a(B,BA),a(Q,_);return 0!==A.rawshape_intersectsShape(this.ptr,I.ptr,g.ptr,C.ptr,B.ptr,Q.ptr)}contactShape(I,g,C,B,Q,E){a(I,BA),a(g,_),a(C,AA),a(B,BA),a(Q,_);const i=A.rawshape_contactShape(this.ptr,I.ptr,g.ptr,C.ptr,B.ptr,Q.ptr,E);return 0===i?void 0:gA.__wrap(i)}containsPoint(I,g,C){a(I,BA),a(g,_),a(C,BA);return 0!==A.rawshape_containsPoint(this.ptr,I.ptr,g.ptr,C.ptr)}projectPoint(I,g,C,B){a(I,BA),a(g,_),a(C,BA);const Q=A.rawshape_projectPoint(this.ptr,I.ptr,g.ptr,C.ptr,B);return X.__wrap(Q)}intersectsRay(I,g,C,B,Q){a(I,BA),a(g,_),a(C,BA),a(B,BA);return 0!==A.rawshape_intersectsRay(this.ptr,I.ptr,g.ptr,C.ptr,B.ptr,Q)}castRay(I,g,C,B,Q,E){a(I,BA),a(g,_),a(C,BA),a(B,BA);return A.rawshape_castRay(this.ptr,I.ptr,g.ptr,C.ptr,B.ptr,Q,E)}castRayAndGetNormal(I,g,C,B,Q,E){a(I,BA),a(g,_),a(C,BA),a(B,BA);const i=A.rawshape_castRayAndGetNormal(this.ptr,I.ptr,g.ptr,C.ptr,B.ptr,Q,E);return 0===i?void 0:z.__wrap(i)}}class IA{static