@splinetool/viewer
Version:
Spline is a collaborative design platform for creating production-ready interactive experiences in multiple dimensions. © 2024 Spline, Inc.
1 lines • 1.99 MB
JavaScript
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 k=new Uint8Array;function S(I,g){return w.decode((0===k.byteLength&&(k=new Uint8Array(A.memory.buffer)),k).subarray(I,I+g))}function a(A,I){if(!(A instanceof I))throw new Error(`expected instance of ${I.name}`);return A.ptr}let M=new Float32Array;function K(){return 0===M.byteLength&&(M=new Float32Array(A.memory.buffer)),M}let y=32;function J(A){if(1==y)throw new Error("out of js stack");return I[--y]=A,y}function U(A,I){return K().subarray(A/4,A/4+I)}let h=new Uint32Array;function N(){return 0===h.byteLength&&(h=new Uint32Array(A.memory.buffer)),h}let F=0;function q(A,I){const g=I(4*A.length);return K().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 c=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 Y{static __wrap(A){const I=Object.create(Y.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 Y.__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 QA.__wrap(I)}translationRemaining(){const I=A.rawcharactercollision_translationRemaining(this.ptr);return QA.__wrap(I)}toi(){return A.rawcharactercollision_toi(this.ptr)}worldWitness1(){const I=A.rawcharactercollision_worldWitness1(this.ptr);return QA.__wrap(I)}worldWitness2(){const I=A.rawcharactercollision_worldWitness2(this.ptr);return QA.__wrap(I)}worldNormal1(){const I=A.rawcharactercollision_worldNormal1(this.ptr);return QA.__wrap(I)}worldNormal2(){const I=A.rawcharactercollision_worldNormal2(this.ptr);return QA.__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 QA.__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:QA.__wrap(g)}coHalfExtents(I){const g=A.rawcolliderset_coHalfExtents(this.ptr,I);return 0===g?void 0:QA.__wrap(g)}coSetHalfExtents(I,g){a(g,QA),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=K()[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=K()[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=K()[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=U(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=U(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:QA.__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,QA);return 0!==A.rawcolliderset_coContainsPoint(this.ptr,I,g.ptr)}coCastShape(I,g,C,B,Q,E,i,D){a(g,QA),a(C,IA),a(B,QA),a(Q,_),a(E,QA);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:BA.__wrap(o)}coCastCollider(I,g,C,B,Q,E){a(g,QA),a(B,QA);const i=A.rawcolliderset_coCastCollider(this.ptr,I,g.ptr,C,B.ptr,Q,E);return 0===i?void 0:gA.__wrap(i)}coIntersectsShape(I,g,C,B){a(g,IA),a(C,QA),a(B,_);return 0!==A.rawcolliderset_coIntersectsShape(this.ptr,I,g.ptr,C.ptr,B.ptr)}coContactShape(I,g,C,B,Q){a(g,IA),a(C,QA),a(B,_);const E=A.rawcolliderset_coContactShape(this.ptr,I,g.ptr,C.ptr,B.ptr,Q);return 0===E?void 0:CA.__wrap(E)}coContactCollider(I,g,C){const B=A.rawcolliderset_coContactCollider(this.ptr,I,g,C);return 0===B?void 0:CA.__wrap(B)}coProjectPoint(I,g,C){a(g,QA);const B=A.rawcolliderset_coProjectPoint(this.ptr,I,g.ptr,C);return X.__wrap(B)}coIntersectsRay(I,g,C,B){a(g,QA),a(C,QA);return 0!==A.rawcolliderset_coIntersectsRay(this.ptr,I,g.ptr,C.ptr,B)}coCastRay(I,g,C,B,Q){a(g,QA),a(C,QA);return A.rawcolliderset_coCastRay(this.ptr,I,g.ptr,C.ptr,B,Q)}coCastRayAndGetNormal(I,g,C,B,Q){a(g,QA),a(C,QA);const E=A.rawcolliderset_coCastRayAndGetNormal(this.ptr,I,g.ptr,C.ptr,B,Q);return 0===E?void 0:u.__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,IA),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,QA),a(B,QA),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,k,S,M,K,y,J,U,h,N,F,q,R,s,c,Y){try{const l=A.__wbindgen_add_to_stack_pointer(-16);a(g,IA),a(C,QA),a(B,_),a(i,QA),a(o,QA),a(w,_),a(Y,v),A.rawcolliderset_createCollider(l,this.ptr,I,g.ptr,C.ptr,B.ptr,Q,E,i.ptr,o.ptr,w.ptr,k,S,M,K,y,J,U,h,N,F,q,R,s,c,Y.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,J(g))}finally{I[y++]=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 QA.__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 QA.__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 QA.__wrap(I)}local_n1(){const I=A.rawcontactmanifold_local_n1(this.ptr);return QA.__wrap(I)}local_n2(){const I=A.rawcontactmanifold_local_n2(this.ptr);return QA.__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:QA.__wrap(g)}contact_local_p2(I){const g=A.rawcontactmanifold_contact_local_p2(this.ptr,I);return 0===g?void 0:QA.__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:QA.__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 QA.__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,j),a(Q,x),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:QA.__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:Y.__wrap(I)}takeNarrowPhase(){const I=A.rawdeserializedworld_takeNarrowPhase(this.ptr);return 0===I?void 0:x.__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:j.__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,J(g))}finally{I[y++]=void 0}}drainContactForceEvents(g){try{A.raweventqueue_drainContactForceEvents(this.ptr,J(g))}finally{I[y++]=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,QA),a(g,QA);const C=A.rawgenericjoint_spherical(I.ptr,g.ptr);return O.__wrap(C)}static prismatic(I,g,C,B,Q,E){a(I,QA),a(g,QA),a(C,QA);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,QA),a(g,_),a(C,QA),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,QA),a(g,QA),a(C,QA);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 QA.__wrap(g)}jointAnchor2(I){const g=A.rawimpulsejointset_jointAnchor2(this.ptr,I);return QA.__wrap(g)}jointSetAnchor1(I,g){a(g,QA),A.rawimpulsejointset_jointSetAnchor1(this.ptr,I,g.ptr)}jointSetAnchor2(I,g){a(g,QA),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,J(g))}finally{I[y++]=void 0}}forEachJointAttachedToRigidBody(g,C){try{A.rawimpulsejointset_forEachJointAttachedToRigidBody(this.ptr,g,J(C))}finally{I[y++]=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,J(g))}finally{I[y++]=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 QA.__wrap(I)}setUp(I){a(I,QA),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=K()[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=K()[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=K()[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,k,S){try{a(C,v),a(B,l),a(Q,V),a(D,QA),A.rawkinematiccharactercontroller_computeColliderMovement(this.ptr,g,C.ptr,B.ptr,Q.ptr,i,D.ptr,o,!E(G),E(G)?0:G,w,!E(k),E(k)?0:k,J(S))}finally{I[y++]=void 0}}computedMovement(){const I=A.rawkinematiccharactercontroller_computedMovement(this.ptr);return QA.__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 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_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 QA.__wrap(g)}jointAnchor2(I){const g=A.rawmultibodyjointset_jointAnchor2(this.ptr,I);return QA.__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 j.__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,J(g))}finally{I[y++]=void 0}}forEachJointAttachedToRigidBody(g,C){try{A.rawmultibodyjointset_forEachJointAttachedToRigidBody(this.ptr,g,J(C))}finally{I[y++]=void 0}}}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_rawnarrowphase_free(I)}constructor(){const I=A.rawnarrowphase_new();return x.__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,QA),a(g,Z),a(C,b),a(B,Y),a(Q,x),a(E,v),a(i,l),a(D,n),a(o,j),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,k,S,M,K){a(I,QA),a(g,Z),a(C,b),a(B,Y),a(E,x),a(i,v),a(D,l),a(o,n),a(G,j),a(w,L),a(k,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,k.ptr,Q(S),Q(M),Q(K))}}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_rawpointcolliderprojection_free(I)}colliderHandle(){return A.rawpointcolliderprojection_colliderHandle(this.ptr)}point(){const I=A.rawkinematiccharactercontroller_computedMovement(this.ptr);return QA.__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 QA.__wrap(I)}isInside(){return 0!==A.rawkinematiccharactercontroller_computedGrounded(this.ptr)}}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_rawquerypipeline_free(I)}constructor(){const I=A.rawquerypipeline_new();return V.__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,k,S){try{a(g,v),a(C,l),a(B,QA),a(Q,QA);const M=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(k),E(k)?0:k,J(S));return 0===M?void 0:z.__wrap(M)}finally{I[y++]=void 0}}castRayAndGetNormal(g,C,B,Q,i,D,o,G,w,k,S){try{a(g,v),a(C,l),a(B,QA),a(Q,QA);const M=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(k),E(k)?0:k,J(S));return 0===M?void 0:P.__wrap(M)}finally{I[y++]=void 0}}intersectionsWithRay(g,C,B,Q,i,D,o,G,w,k,S,M){try{a(g,v),a(C,l),a(B,QA),a(Q,QA),A.rawquerypipeline_intersectionsWithRay(this.ptr,g.ptr,C.ptr,B.ptr,Q.ptr,i,D,J(o),G,!E(w),E(w)?0:w,!E(k),E(k)?0:k,!E(S),E(S)?0:S,J(M))}finally{I[y++]=void 0,I[y++]=void 0}}intersectionWithShape(g,C,B,Q,i,o,w,k,S,M){try{const h=A.__wbindgen_add_to_stack_pointer(-16);a(g,v),a(C,l),a(B,QA),a(Q,_),a(i,IA),A.rawquerypipeline_intersectionWithShape(h,this.ptr,g.ptr,C.ptr,B.ptr,Q.ptr,i.ptr,o,!E(w),E(w)?0:w,!E(k),E(k)?0:k,!E(S),E(S)?0:S,J(M));var K=G()[h/4+0],U=D()[h/8+1];return 0===K?void 0:U}finally{A.__wbindgen_add_to_stack_pointer(16),I[y++]=void 0}}projectPoint(g,C,B,Q,i,D,o,G,w){try{a(g,v),a(C,l),a(B,QA);const k=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,J(w));return 0===k?void 0:m.__wrap(k)}finally{I[y++]=void 0}}projectPointAndGetFeature(g,C,B,Q,i,D,o,G){try{a(g,v),a(C,l),a(B,QA);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,J(G));return 0===w?void 0:m.__wrap(w)}finally{I[y++]=void 0}}intersectionsWithPoint(g,C,B,Q,i,D,o,G,w){try{a(g,v),a(C,l),a(B,QA),A.rawquerypipeline_intersectionsWithPoint(this.ptr,g.ptr,C.ptr,B.ptr,J(Q),i,!E(D),E(D)?0:D,!E(o),E(o)?0:o,!E(G),E(G)?0:G,J(w))}finally{I[y++]=void 0,I[y++]=void 0}}castShape(g,C,B,Q,i,D,o,G,w,k,S,M,K){try{a(g,v),a(C,l),a(B,QA),a(Q,_),a(i,QA),a(D,IA);const U=A.rawquerypipeline_castShape(this.ptr,g.ptr,C.ptr,B.ptr,Q.ptr,i.ptr,D.ptr,o,G,w,!E(k),E(k)?0:k,!E(S),E(S)?0:S,!E(M),E(M)?0:M,J(K));return 0===U?void 0:gA.__wrap(U)}finally{I[y++]=void 0}}intersectionsWithShape(g,C,B,Q,i,D,o,G,w,k,S){try{a(g,v),a(C,l),a(B,QA),a(Q,_),a(i,IA),A.rawquerypipeline_intersectionsWithShape(this.ptr,g.ptr,C.ptr,B.ptr,Q.ptr,i.ptr,J(D),o,!E(G),E(G)?0:G,!E(w),E(w)?0:w,!E(k),E(k)?0:k,J(S))}finally{I[y++]=void 0,I[y++]=void 0}}collidersWithAabbIntersectingAabb(g,C,B){try{a(g,QA),a(C,QA),A.rawquerypipeline_collidersWithAabbIntersectingAabb(this.ptr,g.ptr,C.ptr,J(B))}finally{I[y++]=void 0}}}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_rawraycolliderintersection_free(I)}colliderHandle(){return A.rawcharactercollision_handle(this.ptr)}normal(){const I=A.rawraycolliderintersection_normal(this.ptr);return QA.__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 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_rawraycollidertoi_free(I)}colliderHandle(){return A.rawcharactercollision_handle(this.ptr)}toi(){return A.rawcharactercollision_toi(this.ptr)}}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_rawrayintersection_free(I)}normal(){const I=A.rawcharactercollision_worldWitness1(this.ptr);return QA.__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 QA.__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 QA.__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,QA),A.rawrigidbodyset_rbSetLinvel(this.ptr,I,g.ptr,C)}rbSetAngvel(I,g,C){a(g,QA),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,QA),a(B,QA),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 QA.__wrap(g)}rbAngvel(I){const g=A.rawrigidbodyset_rbAngvel(this.ptr,I);return QA.__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)}rbInvMass(I){return A.rawrigidbodyset_rbInvMass(this.ptr,I)}rbEffectiveInvMass(I){const g=A.rawrigidbodyset_rbEffectiveInvMass(this.ptr,I);return QA.__wrap(g)}rbLocalCom(I){const g=A.rawrigidbodyset_rbLocalCom(this.ptr,I);return QA.__wrap(g)}rbWorldCom(I){const g=A.rawrigidbodyset_rbWorldCom(this.ptr,I);return QA.__wrap(g)}rbInvPrincipalInertiaSqrt(I){const g=A.rawrigidbodyset_rbInvPrincipalInertiaSqrt(this.ptr,I);return QA.__wrap(g)}rbPrincipalInertiaLocalFrame(I){const g=A.rawrigidbodyset_rbPrincipalInertiaLocalFrame(this.ptr,I);return _.__wrap(g)}rbPrincipalInertia(I){const g=A.rawrigidbodyset_rbPrincipalInertia(this.ptr,I);return QA.__wrap(g)}rbEffectiveWorldInvInertiaSqrt(I){const g=A.rawrigidbodyset_rbEffectiveWorldInvInertiaSqrt(this.ptr,I);return $.__wrap(g)}rbEffectiveAngularInertia(I){const g=A.rawrigidbodyset_rbEffectiveAngularInertia(this.ptr,I);return $.__wrap(g)}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,QA),A.rawrigidbodyset_rbAddForce(this.ptr,I,g.ptr,C)}rbApplyImpulse(I,g,C){a(g,QA),A.rawrigidbodyset_rbApplyImpulse(this.ptr,I,g.ptr,C)}rbAddTorque(I,g,C){a(g,QA),A.rawrigidbodyset_rbAddTorque(this.ptr,I,g.ptr,C)}rbApplyTorqueImpulse(I,g,C){a(g,QA),A.rawrigidbodyset_rbApplyTorqueImpulse(this.ptr,I,g.ptr,C)}rbAddForceAtPoint(I,g,C,B){a(g,QA),a(C,QA),A.rawrigidbodyset_rbAddForceAtPoint(this.ptr,I,g.ptr,C.ptr,B)}rbApplyImpulseAtPoint(I,g,C,B){a(g,QA),a(C,QA),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,k,S,M,K,y,J,U,h,N,F,q,R,s){a(g,QA),a(C,_),a(i,QA),a(D,QA),a(o,QA),a(G,QA),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,k,S,M,K,y,J,U,h,N,F,q,R,s)}remove(I,g,C,B,Q){a(g,b),a(C,l),a(B,n),a(Q,j),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,J(g))}finally{I[y++]=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_rawsdpmatrix3_free(I)}elements(){return B(A.rawsdpmatrix3_elements(this.ptr))}}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_rawserializationpipeline_free(I)}constructor(){const I=A.rawserializationpipeline_new();return AA.__wrap(I)}serializeAll(I,g,C,Q,E,i,D,o,G){a(I,QA),a(g,Z),a(C,b),a(Q,Y),a(E,x),a(i,v),a(D,l),a(o,n),a(G,j);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 IA{static __wrap(A){const I=Object.create(IA.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 IA.__wrap(B)}static roundCuboid(I,g,C,B){const Q=A.rawshape_roundCuboid(I,g,C,B);return IA.__wrap(Q)}static ball(I){const g=A.rawshape_ball(I);return IA.__wrap(g)}static halfspace(I){a(I,QA);const g=A.rawshape_halfspace(I.ptr);return IA.__wrap(g)}static capsule(I,g){const C=A.rawshape_capsule(I,g);return IA.__wrap(C)}static cylinder(I,g){const C=A.rawshape_cylinder(I,g);return IA.__wrap(C)}static roundCylinder(I,g,C){const B=A.rawshape_roundCylinder(I,g,C);return IA.__wrap(B)}static cone(I,g){const C=A.rawshape_cone(I,g);return IA.__wrap(C)}static roundCone(I,g,C){const B=A.rawshape_roundCone(I,g,C);return IA.__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 IA.__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 IA.__wrap(i)}static heightfield(I,g,C,B){const Q=q(C,A.__wbindgen_malloc),E=F;a(B,QA);const i=A.rawshape_heightfield(I,g,Q,E,B.ptr);return IA.__wrap(i)}static segment(I,g){a(I,QA),a(g,QA);const C=A.rawshape_segment(I.ptr,g.ptr);return IA.__wrap(C)}static triangle(I,g,C){a(I,QA),a(g,QA),a(C,QA);const B=A.rawshape_triangle(I.ptr,g.ptr,C.ptr);return IA.__wrap(B)}static roundTriangle(I,g,C,B){a(I,QA),a(g,QA),a(C,QA);const Q=A.rawshape_roundTriangle(I.ptr,g.ptr,C.ptr,B);return IA.__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:IA.__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:IA.__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:IA.__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:IA.__wrap(D)}castShape(I,g,C,B,Q,E,i,D,o){a(I,QA),a(g,_),a(C,QA),a(B,IA),a(Q,QA),a(E,_),a(i,QA);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:BA.__wrap(G)}intersectsShape(I,g,C,B,Q){a(I,QA),a(g,_),a(C,IA),a(B,QA),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,QA),a(g,_),a(C,IA),a(B,QA),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:CA.__wrap(i)}containsPoint(I,g,C){a(I,QA),a(g,_),a(C,QA);return 0!==A.rawshape_containsPoint(this.ptr,I.ptr,g.ptr,C.ptr)}projectPoint(I,g,C,B){a(I,QA),a(g,_),a(C,QA);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,QA),a(g,_),a(C,QA),a(B,QA);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,QA),a(g,_),a(C,QA),a(B,QA);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,QA),a(g,_),a(C,QA),a(B,QA);const i=A.rawshape_castRayAndGetNormal(this.ptr,I.ptr,g.ptr,C.ptr,B.ptr,Q,E);return 0===i?void 0:u.__wrap(i)}}class gA{static __wrap(A){const I=Object.create(gA.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_rawshapecollidertoi_free(I)}colliderHandle(){return A.rawcharactercollision_handle(this.ptr)}toi(){return A.rawcharactercollision_toi(this.ptr)}witness1(){const I=A.rawcharactercollision_worldWitness1(this.ptr);return QA.__wrap(I)}witness2(){const I=A.rawshapecollidertoi_witness2(this.ptr);return QA.__wrap(I)}normal1(){const I=A.rawcharactercollision_worldNormal1(this.ptr);return QA.__wrap(I)}normal2(){const I=A.rawshapecollidertoi_normal2(this.ptr);return QA.__wrap(I)}}class CA{static __wrap(A){const I=Object.create(CA.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_rawshapecontact_free(I)}distance(){return A.rawshapecontact_distance(this.ptr)}point1(){const I=A.rawkinematiccharactercontroller_computedMovement(this.ptr);return QA.__wrap(I)}point2(){const I=A.rawcharactercollision_worldWitness1(this.ptr);return QA.__wrap(I)}normal1(){const I=A.rawshapecollidertoi_witness2(this.ptr);return QA.__wrap(I)}normal2(){const I=A.rawcharactercollision_worldNormal1(this.ptr);return QA.__wrap(I)}}class BA{static __wrap(A){const I=Object.create(BA.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_rawshapetoi_free(I)}toi(){return A.rawintegrationparameters_dt(this.ptr)}witness1(){const I=A.rawshapetoi_witness1(this.ptr);return QA.__wrap(I)}witness2(){const I=A.rawcontactforceevent_total_force(this.ptr);return QA.__wrap(I)}normal1(){const I=A.rawshapetoi_normal1(this.ptr);return QA.__wrap(I)}normal2(){const I=A.rawshapetoi_normal2(this.ptr);return QA.__wrap(I)}}class QA{static __wrap(A){const I=Object.create(QA.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_rawvector_free(I)}static zero(){const I=A.rawvector_zero();return QA.__wrap(I)}constructor(I,g,C){const B=A.rawvector_new(I,g,C);return QA.__wrap(B)}get x(){return A.rawintegrationparameters_dt(this.ptr)}set x(I){A.rawintegrationparameters_set_dt(this.ptr,I)}get y(){return A.rawrotation_y(this.ptr)}set y(I){A.rawvector_set_y(this.ptr,I)}get z(){return A.rawcharactercollision_toi(this.ptr)}set z(I){A.rawintegrationparameters_set_erp(this.ptr,I)}xyz(){const I=A.rawvector_xyz(this.ptr);return QA.__wrap(I)}yxz(){const I=A.rawvector_yxz(this.ptr);return QA.__wrap(I)}zxy(){const I=A.rawvector_zxy(this.ptr);return QA.__wrap(I)}xzy(){const I=A.rawvector_xzy(this.ptr);return QA.__wrap(I)}yzx(){const I=A.rawvector_yzx(this.ptr);return QA.__wrap(I)}zyx(){const I=A.rawvector_zyx(this.ptr);return QA.__wrap(I)}}async function EA(I){void 0===I&&(I=new URL("rapier_wasm3d_bg.wasm","<deleted>"));const C=function(){const I={wbg:{}};return I.wbg.__wbindgen_object_drop_ref=function(A){B(A)},I.wbg.__wbindgen_number_new=function(A){return Q(A)},I.wbg.__wbindgen_number_get=function(A,I){const C=g(I),B="number"==typeof C?C:void 0;D()[A/8+1]=E(B)?0:B,G()[A/4+0]=!E(B)},I.wbg.__wbindgen_boolean_get=function(A){const I=g(A);return"boolean"==typeof I?I?1:0:2},I.wbg.__wbindgen_is_function=function(A){return"function"==typeof g(A)},I.wbg.__wbg_rawraycolliderintersection_new=function(A){return Q(P.__wrap(A))},I.wbg.__wbg_rawcontactforceevent_new=function(A){return Q(t.__wrap(A))},I.wbg.__wbg_call_168da88779e35f61=function(){return s((function(A,I,C){return Q(g(A).call(g(I),g(C)))}),arguments)},I.wbg.__wbg_call_3999bee59e9f7719=function(){return s((function(A,I,C,B){return Q(g(A).call(g(I),g(C),g(B)))}),arguments)},I.wbg.__wbg_call_e1f72c051cdab859=function(){return s((function(A,I,C,B,E){return Q(g(A).call(g(I),g(C),g(B),g(E)))}),arguments)},I.wbg.__wbg_bind_10dfe70e95d2a480=function(A,I,C,B){return Q(g(A).bind(g(I),g(C),g(B)))},I.wbg.__wbg_buffer_3f3d764d4747d564=function(A){return Q(g(A).buffer)},I.wbg.__wbg_newwithbyteoffsetandlength_d9aa266703cb98be=function(A,I,C){return Q(new Uint8Array(g(A),I>>>0,C>>>0))},I.wbg.__wbg_new_8c3f0052272a457a=function(A){return Q(new Uint8Array(g(A)))},I.wbg.__wbg_set_83db9690f9353e79=function(A,I,C){g(A).set(g(I),C>>>0)},I.wbg.__wbg_length_9e1ae1900cb0fbd5=function(A){return g(A).length},I.wbg.__wbg_newwithbyteoffsetandlength_be22e5fcf4f69ab4=function(A,I,C){return Q(new Float32Array(g(A),I>>>0,C>>>0))},I.wbg.__wbg_set_0e0314cf6675c1b9=function(A,I,C){g(A).set(g(I),C>>>0)},I.wbg.__wbg_length_9a2deed95d22668d=function(A){return g(A).length},I.wbg.__wbg_newwithlength_a7168e4a1e8f5e12=function(A){return Q(new Float32Arr