UNPKG

@barclah/jolt-physics

Version:

A WebAssembly port of JoltPhysics, a rigid body physics and collision detection library, suitable for games and VR applications. Forked by Hunter Barclay for use in Synthesis.

111 lines (108 loc) 1.25 MB
// SPDX-FileCopyrightText: 2022-2024 Jorrit Rouwe // SPDX-License-Identifier: MIT // This is Web Assembly version of Jolt Physics, see: https://github.com/jrouwe/JoltPhysics.js var Jolt = (() => { var _scriptName = import.meta.url; return ( async function(moduleArg = {}) { var moduleRtn; function aa(){ba.buffer!=ca.buffer&&da();return ca}function ea(){ba.buffer!=ca.buffer&&da();return fa}function ha(){ba.buffer!=ca.buffer&&da();return ia}function ja(){ba.buffer!=ca.buffer&&da();return ka}function la(){ba.buffer!=ca.buffer&&da();return ma} var b=moduleArg,na,oa,aaa=new Promise((a,c)=>{na=a;oa=c}),pa="object"==typeof window,qa="undefined"!=typeof WorkerGlobalScope,ra="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node&&"renderer"!=process.type,sa=qa&&self.name?.startsWith("em-pthread"); if(ra){const {createRequire:a}=await import("module");let c=import.meta.url;c.startsWith("data:")&&(c="/");var require=a(c),ta=require("worker_threads");global.Worker=ta.Worker;sa=(qa=!ta.wPa)&&"em-pthread"==ta.workerData}var ua=Object.assign({},b),va="./this.program",wa=(a,c)=>{throw c;},xa="",ya,za; if(ra){var fs=require("fs"),baa=require("path");import.meta.url.startsWith("data:")||(xa=baa.dirname(require("url").fileURLToPath(import.meta.url))+"/");za=a=>{a=Aa(a)?new URL(a):a;return fs.readFileSync(a)};ya=async a=>{a=Aa(a)?new URL(a):a;return fs.readFileSync(a,void 0)};!b.thisProgram&&1<process.argv.length&&(va=process.argv[1].replace(/\\/g,"/"));process.argv.slice(2);wa=(a,c)=>{process.exitCode=a;throw c;}}else if(pa||qa)qa?xa=self.location.href:"undefined"!=typeof document&& document.currentScript&&(xa=document.currentScript.src),_scriptName&&(xa=_scriptName),xa.startsWith("blob:")?xa="":xa=xa.substr(0,xa.replace(/[?#].*/,"").lastIndexOf("/")+1),ra||(qa&&(za=a=>{var c=new XMLHttpRequest;c.open("GET",a,!1);c.responseType="arraybuffer";c.send(null);return new Uint8Array(c.response)}),ya=async a=>{a=await fetch(a,{credentials:"same-origin"});if(a.ok)return a.arrayBuffer();throw Error(a.status+" : "+a.url);});var Ba=console.log.bind(console),Ca=console.error.bind(console); ra&&(Ba=(...a)=>fs.writeSync(1,a.join(" ")+"\n"),Ca=(...a)=>fs.writeSync(2,a.join(" ")+"\n"));var Da=b.print||Ba,Ea=b.printErr||Ca;Object.assign(b,ua);ua=null;b.thisProgram&&(va=b.thisProgram);var Fa=b.wasmBinary,ba,Ga,Ha=!1,Ia,ca,fa,ia,ka,ma; function da(){var a=ba.buffer;b.HEAP8=ca=new Int8Array(a);b.HEAP16=new Int16Array(a);b.HEAPU8=fa=new Uint8Array(a);b.HEAPU16=new Uint16Array(a);b.HEAP32=ia=new Int32Array(a);b.HEAPU32=ka=new Uint32Array(a);b.HEAPF32=new Float32Array(a);b.HEAPF64=ma=new Float64Array(a)} if(sa){var Ja;if(ra){var Ka=ta.parentPort;Ka.on("message",e=>onmessage({data:e}));Object.assign(globalThis,{self:global,postMessage:e=>Ka.postMessage(e)})}var La=!1;function a(...e){e=e.join(" ");ra?fs.writeSync(2,e+"\n"):console.error(e)}b.printErr||(Ea=a);self.alert=function(...e){postMessage({rCa:"alert",text:e.join(" "),sPa:Ma()})};self.onunhandledrejection=e=>{throw e.reason||e;};function c(e){try{var f=e.data,h=f.rCa;if("load"===h){let k=[];self.onmessage=p=>k.push(p);self.startWorker=()=>{postMessage({rCa:"loaded"}); for(let p of k)c(p);self.onmessage=c};for(const p of f.uLa)if(!b[p]||b[p].proxy)b[p]=(...y)=>{postMessage({rCa:"callHandler",tLa:p,args:y})},"print"==p&&(Da=b[p]),"printErr"==p&&(Ea=b[p]);ba=f.uPa;da();Ja(f.vPa)}else if("run"===h){caa(f.kCa);Na(f.kCa,0,0,1,0,0);Oa();Pa(f.kCa);La||=!0;try{Qa(f.qPa,f.TCa)}catch(k){if("unwind"!=k)throw k;}}else"setimmediate"!==f.target&&("checkMailbox"===h?La&&Ra():h&&(Ea(`worker: received unknown command ${h}`),Ea(f)))}catch(k){throw Sa(),k;}}self.onmessage=c} sa||(b.wasmMemory?ba=b.wasmMemory:ba=new WebAssembly.Memory({initial:(b.INITIAL_MEMORY||67108864)/65536,maximum:32768,shared:!0}),da());var Ua=[],Va=[],Wa=[],Xa=!1,Ya=0,Za=null;function $a(){Ya++;b.monitorRunDependencies?.(Ya)}function ab(){Ya--;b.monitorRunDependencies?.(Ya);if(0==Ya&&Za){var a=Za;Za=null;a()}}function bb(a){b.onAbort?.(a);a="Aborted("+a+")";Ea(a);Ha=!0;a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info.");oa(a);throw a;} var cb=a=>a.startsWith("data:application/octet-stream;base64,"),Aa=a=>a.startsWith("file://"),db;async function daa(a){if(!Fa)try{var c=await ya(a);return new Uint8Array(c)}catch{}if(a==db&&Fa)a=new Uint8Array(Fa);else if(za)a=za(a);else throw"both async and sync fetching of the wasm failed";return a}async function eaa(a,c){try{var e=await daa(a);return await WebAssembly.instantiate(e,c)}catch(f){Ea(`failed to asynchronously prepare wasm: ${f}`),bb(f)}} async function faa(a){var c=db;if(!Fa&&"function"==typeof WebAssembly.instantiateStreaming&&!cb(c)&&!ra&&"function"==typeof fetch)try{var e=fetch(c,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(e,a)}catch(f){Ea(`wasm streaming compile failed: ${f}`),Ea("falling back to ArrayBuffer instantiation")}return eaa(c,a)} function eb(){fb={x:gb,l:gaa,j:haa,v:iaa,k:jaa,g:kaa,i:Pa,h:laa,p:maa,d:naa,b:oaa,z:paa,e:qaa,y:raa,n:saa,c:taa,o:uaa,u:vaa,q:hb,r:ib,w:jb,s:kb,t:lb,m:mb,f:nb,a:ba};return{a:fb}} var ob={58215:a=>{a=b.getCache(b.PathConstraintPathJS)[a];if(!a.hasOwnProperty("GetPathMaxFraction"))throw"a JSImplementation must implement all functions, you forgot PathConstraintPathJS::GetPathMaxFraction.";return a.GetPathMaxFraction()},58482:(a,c,e)=>{a=b.getCache(b.PathConstraintPathJS)[a];if(!a.hasOwnProperty("GetClosestPoint"))throw"a JSImplementation must implement all functions, you forgot PathConstraintPathJS::GetClosestPoint.";return a.GetClosestPoint(c,e)},58745:(a,c,e,f,h,k)=>{a=b.getCache(b.PathConstraintPathJS)[a]; if(!a.hasOwnProperty("GetPointOnPath"))throw"a JSImplementation must implement all functions, you forgot PathConstraintPathJS::GetPointOnPath.";a.GetPointOnPath(c,e,f,h,k)},59007:(a,c,e)=>{a=b.getCache(b.GroupFilterJS)[a];if(!a.hasOwnProperty("CanCollide"))throw"a JSImplementation must implement all functions, you forgot GroupFilterJS::CanCollide.";return a.CanCollide(c,e)},59241:(a,c)=>{a=b.getCache(b.StateRecorderFilterJS)[a];if(!a.hasOwnProperty("ShouldSaveBody"))throw"a JSImplementation must implement all functions, you forgot StateRecorderFilterJS::ShouldSaveBody."; return a.ShouldSaveBody(c)},59500:(a,c)=>{a=b.getCache(b.StateRecorderFilterJS)[a];if(!a.hasOwnProperty("ShouldSaveConstraint"))throw"a JSImplementation must implement all functions, you forgot StateRecorderFilterJS::ShouldSaveConstraint.";return a.ShouldSaveConstraint(c)},59777:(a,c,e)=>{a=b.getCache(b.StateRecorderFilterJS)[a];if(!a.hasOwnProperty("ShouldSaveContact"))throw"a JSImplementation must implement all functions, you forgot StateRecorderFilterJS::ShouldSaveContact.";return a.ShouldSaveContact(c, e)},60048:(a,c,e)=>{a=b.getCache(b.StateRecorderFilterJS)[a];if(!a.hasOwnProperty("ShouldRestoreContact"))throw"a JSImplementation must implement all functions, you forgot StateRecorderFilterJS::ShouldRestoreContact.";return a.ShouldRestoreContact(c,e)},60328:a=>{a=b.getCache(b.StateRecorderJS)[a];if(!a.hasOwnProperty("IsEOF"))throw"a JSImplementation must implement all functions, you forgot StateRecorderJS::IsEOF.";return a.IsEOF()},60546:a=>{a=b.getCache(b.StateRecorderJS)[a];if(!a.hasOwnProperty("IsFailed"))throw"a JSImplementation must implement all functions, you forgot StateRecorderJS::IsFailed."; return a.IsFailed()},60773:(a,c,e)=>{a=b.getCache(b.StateRecorderJS)[a];if(!a.hasOwnProperty("WriteBytes"))throw"a JSImplementation must implement all functions, you forgot StateRecorderJS::WriteBytes.";a.WriteBytes(c,e)},61004:(a,c,e)=>{a=b.getCache(b.StateRecorderJS)[a];if(!a.hasOwnProperty("ReadBytes"))throw"a JSImplementation must implement all functions, you forgot StateRecorderJS::ReadBytes.";a.ReadBytes(c,e)},61232:(a,c,e,f,h)=>{a=b.getCache(b.ContactListenerJS)[a];if(!a.hasOwnProperty("OnContactAdded"))throw"a JSImplementation must implement all functions, you forgot ContactListenerJS::OnContactAdded."; a.OnContactAdded(c,e,f,h)},61485:(a,c,e,f,h)=>{a=b.getCache(b.ContactListenerJS)[a];if(!a.hasOwnProperty("OnContactPersisted"))throw"a JSImplementation must implement all functions, you forgot ContactListenerJS::OnContactPersisted.";a.OnContactPersisted(c,e,f,h)},61750:(a,c)=>{a=b.getCache(b.ContactListenerJS)[a];if(!a.hasOwnProperty("OnContactRemoved"))throw"a JSImplementation must implement all functions, you forgot ContactListenerJS::OnContactRemoved.";a.OnContactRemoved(c)},62E3:(a,c,e,f,h)=> {a=b.getCache(b.ContactListenerJS)[a];if(!a.hasOwnProperty("OnContactValidate"))throw"a JSImplementation must implement all functions, you forgot ContactListenerJS::OnContactValidate.";return a.OnContactValidate(c,e,f,h)},62269:(a,c,e)=>{a=b.getCache(b.SoftBodyContactListenerJS)[a];if(!a.hasOwnProperty("OnSoftBodyContactAdded"))throw"a JSImplementation must implement all functions, you forgot SoftBodyContactListenerJS::OnSoftBodyContactAdded.";a.OnSoftBodyContactAdded(c,e)},62556:(a,c,e,f)=>{a=b.getCache(b.SoftBodyContactListenerJS)[a]; if(!a.hasOwnProperty("OnSoftBodyContactValidate"))throw"a JSImplementation must implement all functions, you forgot SoftBodyContactListenerJS::OnSoftBodyContactValidate.";return a.OnSoftBodyContactValidate(c,e,f)},62862:a=>{a=b.getCache(b.RayCastBodyCollectorJS)[a];if(!a.hasOwnProperty("Reset"))throw"a JSImplementation must implement all functions, you forgot RayCastBodyCollectorJS::Reset.";a.Reset()},63087:(a,c)=>{a=b.getCache(b.RayCastBodyCollectorJS)[a];if(!a.hasOwnProperty("AddHit"))throw"a JSImplementation must implement all functions, you forgot RayCastBodyCollectorJS::AddHit."; a.AddHit(c)},63317:a=>{a=b.getCache(b.CollideShapeBodyCollectorJS)[a];if(!a.hasOwnProperty("Reset"))throw"a JSImplementation must implement all functions, you forgot CollideShapeBodyCollectorJS::Reset.";a.Reset()},63552:(a,c)=>{a=b.getCache(b.CollideShapeBodyCollectorJS)[a];if(!a.hasOwnProperty("AddHit"))throw"a JSImplementation must implement all functions, you forgot CollideShapeBodyCollectorJS::AddHit.";a.AddHit(c)},63792:a=>{a=b.getCache(b.CastShapeBodyCollectorJS)[a];if(!a.hasOwnProperty("Reset"))throw"a JSImplementation must implement all functions, you forgot CastShapeBodyCollectorJS::Reset."; a.Reset()},64021:(a,c)=>{a=b.getCache(b.CastShapeBodyCollectorJS)[a];if(!a.hasOwnProperty("AddHit"))throw"a JSImplementation must implement all functions, you forgot CastShapeBodyCollectorJS::AddHit.";a.AddHit(c)},64255:a=>{a=b.getCache(b.CastRayCollectorJS)[a];if(!a.hasOwnProperty("Reset"))throw"a JSImplementation must implement all functions, you forgot CastRayCollectorJS::Reset.";a.Reset()},64472:(a,c)=>{a=b.getCache(b.CastRayCollectorJS)[a];if(!a.hasOwnProperty("OnBody"))throw"a JSImplementation must implement all functions, you forgot CastRayCollectorJS::OnBody."; a.OnBody(c)},64694:(a,c)=>{a=b.getCache(b.CastRayCollectorJS)[a];if(!a.hasOwnProperty("AddHit"))throw"a JSImplementation must implement all functions, you forgot CastRayCollectorJS::AddHit.";a.AddHit(c)},64916:a=>{a=b.getCache(b.CollidePointCollectorJS)[a];if(!a.hasOwnProperty("Reset"))throw"a JSImplementation must implement all functions, you forgot CollidePointCollectorJS::Reset.";a.Reset()},65143:(a,c)=>{a=b.getCache(b.CollidePointCollectorJS)[a];if(!a.hasOwnProperty("OnBody"))throw"a JSImplementation must implement all functions, you forgot CollidePointCollectorJS::OnBody."; a.OnBody(c)},65375:(a,c)=>{a=b.getCache(b.CollidePointCollectorJS)[a];if(!a.hasOwnProperty("AddHit"))throw"a JSImplementation must implement all functions, you forgot CollidePointCollectorJS::AddHit.";a.AddHit(c)},65607:a=>{a=b.getCache(b.CollideShapeCollectorJS)[a];if(!a.hasOwnProperty("Reset"))throw"a JSImplementation must implement all functions, you forgot CollideShapeCollectorJS::Reset.";a.Reset()},65834:(a,c)=>{a=b.getCache(b.CollideShapeCollectorJS)[a];if(!a.hasOwnProperty("OnBody"))throw"a JSImplementation must implement all functions, you forgot CollideShapeCollectorJS::OnBody."; a.OnBody(c)},66066:(a,c)=>{a=b.getCache(b.CollideShapeCollectorJS)[a];if(!a.hasOwnProperty("AddHit"))throw"a JSImplementation must implement all functions, you forgot CollideShapeCollectorJS::AddHit.";a.AddHit(c)},66298:a=>{a=b.getCache(b.CastShapeCollectorJS)[a];if(!a.hasOwnProperty("Reset"))throw"a JSImplementation must implement all functions, you forgot CastShapeCollectorJS::Reset.";a.Reset()},66519:(a,c)=>{a=b.getCache(b.CastShapeCollectorJS)[a];if(!a.hasOwnProperty("OnBody"))throw"a JSImplementation must implement all functions, you forgot CastShapeCollectorJS::OnBody."; a.OnBody(c)},66745:(a,c)=>{a=b.getCache(b.CastShapeCollectorJS)[a];if(!a.hasOwnProperty("AddHit"))throw"a JSImplementation must implement all functions, you forgot CastShapeCollectorJS::AddHit.";a.AddHit(c)},66971:a=>{a=b.getCache(b.TransformedShapeCollectorJS)[a];if(!a.hasOwnProperty("Reset"))throw"a JSImplementation must implement all functions, you forgot TransformedShapeCollectorJS::Reset.";a.Reset()},67206:(a,c)=>{a=b.getCache(b.TransformedShapeCollectorJS)[a];if(!a.hasOwnProperty("OnBody"))throw"a JSImplementation must implement all functions, you forgot TransformedShapeCollectorJS::OnBody."; a.OnBody(c)},67446:(a,c)=>{a=b.getCache(b.TransformedShapeCollectorJS)[a];if(!a.hasOwnProperty("AddHit"))throw"a JSImplementation must implement all functions, you forgot TransformedShapeCollectorJS::AddHit.";a.AddHit(c)},67686:(a,c)=>{a=b.getCache(b.PhysicsStepListenerJS)[a];if(!a.hasOwnProperty("OnStep"))throw"a JSImplementation must implement all functions, you forgot PhysicsStepListenerJS::OnStep.";a.OnStep(c)},67914:(a,c,e)=>{a=b.getCache(b.BodyActivationListenerJS)[a];if(!a.hasOwnProperty("OnBodyActivated"))throw"a JSImplementation must implement all functions, you forgot BodyActivationListenerJS::OnBodyActivated."; a.OnBodyActivated(c,e)},68178:(a,c,e)=>{a=b.getCache(b.BodyActivationListenerJS)[a];if(!a.hasOwnProperty("OnBodyDeactivated"))throw"a JSImplementation must implement all functions, you forgot BodyActivationListenerJS::OnBodyDeactivated.";a.OnBodyDeactivated(c,e)},68448:(a,c,e,f,h)=>{a=b.getCache(b.CharacterContactListenerJS)[a];if(!a.hasOwnProperty("OnAdjustBodyVelocity"))throw"a JSImplementation must implement all functions, you forgot CharacterContactListenerJS::OnAdjustBodyVelocity.";a.OnAdjustBodyVelocity(c, e,f,h)},68737:(a,c,e,f)=>{a=b.getCache(b.CharacterContactListenerJS)[a];if(!a.hasOwnProperty("OnContactValidate"))throw"a JSImplementation must implement all functions, you forgot CharacterContactListenerJS::OnContactValidate.";return a.OnContactValidate(c,e,f)},69021:(a,c,e,f)=>{a=b.getCache(b.CharacterContactListenerJS)[a];if(!a.hasOwnProperty("OnCharacterContactValidate"))throw"a JSImplementation must implement all functions, you forgot CharacterContactListenerJS::OnCharacterContactValidate."; return a.OnCharacterContactValidate(c,e,f)},69332:(a,c,e,f,h,k,p)=>{a=b.getCache(b.CharacterContactListenerJS)[a];if(!a.hasOwnProperty("OnContactAdded"))throw"a JSImplementation must implement all functions, you forgot CharacterContactListenerJS::OnContactAdded.";a.OnContactAdded(c,e,f,h,k,p)},69609:(a,c,e,f,h,k,p)=>{a=b.getCache(b.CharacterContactListenerJS)[a];if(!a.hasOwnProperty("OnCharacterContactAdded"))throw"a JSImplementation must implement all functions, you forgot CharacterContactListenerJS::OnCharacterContactAdded."; a.OnCharacterContactAdded(c,e,f,h,k,p)},69913:(a,c,e,f,h,k,p,y,Q,Ta)=>{a=b.getCache(b.CharacterContactListenerJS)[a];if(!a.hasOwnProperty("OnContactSolve"))throw"a JSImplementation must implement all functions, you forgot CharacterContactListenerJS::OnContactSolve.";a.OnContactSolve(c,e,f,h,k,p,y,Q,Ta)},70199:(a,c,e,f,h,k,p,y,Q,Ta)=>{a=b.getCache(b.CharacterContactListenerJS)[a];if(!a.hasOwnProperty("OnCharacterContactSolve"))throw"a JSImplementation must implement all functions, you forgot CharacterContactListenerJS::OnCharacterContactSolve."; a.OnCharacterContactSolve(c,e,f,h,k,p,y,Q,Ta)},70512:(a,c,e)=>{a=b.getCache(b.ObjectVsBroadPhaseLayerFilterJS)[a];if(!a.hasOwnProperty("ShouldCollide"))throw"a JSImplementation must implement all functions, you forgot ObjectVsBroadPhaseLayerFilterJS::ShouldCollide.";return a.ShouldCollide(c,e)},70791:(a,c)=>{a=b.getCache(b.ObjectLayerFilterJS)[a];if(!a.hasOwnProperty("ShouldCollide"))throw"a JSImplementation must implement all functions, you forgot ObjectLayerFilterJS::ShouldCollide.";return a.ShouldCollide(c)}, 71043:(a,c,e)=>{a=b.getCache(b.ObjectLayerPairFilterJS)[a];if(!a.hasOwnProperty("ShouldCollide"))throw"a JSImplementation must implement all functions, you forgot ObjectLayerPairFilterJS::ShouldCollide.";return a.ShouldCollide(c,e)},71306:(a,c)=>{a=b.getCache(b.BodyFilterJS)[a];if(!a.hasOwnProperty("ShouldCollide"))throw"a JSImplementation must implement all functions, you forgot BodyFilterJS::ShouldCollide.";return a.ShouldCollide(c)},71544:(a,c)=>{a=b.getCache(b.BodyFilterJS)[a];if(!a.hasOwnProperty("ShouldCollideLocked"))throw"a JSImplementation must implement all functions, you forgot BodyFilterJS::ShouldCollideLocked."; return a.ShouldCollideLocked(c)},71800:(a,c,e)=>{a=b.getCache(b.ShapeFilterJS)[a];if(!a.hasOwnProperty("ShouldCollide"))throw"a JSImplementation must implement all functions, you forgot ShapeFilterJS::ShouldCollide.";return a.ShouldCollide(c,e)},72043:(a,c,e,f,h)=>{a=b.getCache(b.ShapeFilterJS2)[a];if(!a.hasOwnProperty("ShouldCollide"))throw"a JSImplementation must implement all functions, you forgot ShapeFilterJS2::ShouldCollide.";return a.ShouldCollide(c,e,f,h)},72294:(a,c,e,f,h,k,p)=>{a=b.getCache(b.SimShapeFilterJS)[a]; if(!a.hasOwnProperty("ShouldCollide"))throw"a JSImplementation must implement all functions, you forgot SimShapeFilterJS::ShouldCollide.";return a.ShouldCollide(c,e,f,h,k,p)},72555:(a,c,e,f,h,k)=>{a=b.getCache(b.VehicleConstraintCallbacksJS)[a];if(!a.hasOwnProperty("GetCombinedFriction"))throw"a JSImplementation must implement all functions, you forgot VehicleConstraintCallbacksJS::GetCombinedFriction.";return a.GetCombinedFriction(c,e,f,h,k)},72855:(a,c,e)=>{a=b.getCache(b.VehicleConstraintCallbacksJS)[a]; if(!a.hasOwnProperty("OnPreStepCallback"))throw"a JSImplementation must implement all functions, you forgot VehicleConstraintCallbacksJS::OnPreStepCallback.";a.OnPreStepCallback(c,e)},73133:(a,c,e)=>{a=b.getCache(b.VehicleConstraintCallbacksJS)[a];if(!a.hasOwnProperty("OnPostCollideCallback"))throw"a JSImplementation must implement all functions, you forgot VehicleConstraintCallbacksJS::OnPostCollideCallback.";a.OnPostCollideCallback(c,e)},73423:(a,c,e)=>{a=b.getCache(b.VehicleConstraintCallbacksJS)[a]; if(!a.hasOwnProperty("OnPostStepCallback"))throw"a JSImplementation must implement all functions, you forgot VehicleConstraintCallbacksJS::OnPostStepCallback.";a.OnPostStepCallback(c,e)},73704:(a,c,e,f,h,k,p,y,Q)=>{a=b.getCache(b.WheeledVehicleControllerCallbacksJS)[a];if(!a.hasOwnProperty("OnTireMaxImpulseCallback"))throw"a JSImplementation must implement all functions, you forgot WheeledVehicleControllerCallbacksJS::OnTireMaxImpulseCallback.";a.OnTireMaxImpulseCallback(c,e,f,h,k,p,y,Q)},74035:a=> {a=b.getCache(b.BroadPhaseLayerInterfaceJS)[a];if(!a.hasOwnProperty("GetNumBroadPhaseLayers"))throw"a JSImplementation must implement all functions, you forgot BroadPhaseLayerInterfaceJS::GetNumBroadPhaseLayers.";return a.GetNumBroadPhaseLayers()},74326:(a,c)=>{a=b.getCache(b.BroadPhaseLayerInterfaceJS)[a];if(!a.hasOwnProperty("GetBPLayer"))throw"a JSImplementation must implement all functions, you forgot BroadPhaseLayerInterfaceJS::GetBPLayer.";return a.GetBPLayer(c)},74583:()=>aa().length}; class pb{name="ExitStatus";constructor(a){this.message=`Program terminated with exit(${a})`;this.status=a}}var qb=a=>{a.terminate();a.onmessage=()=>{}},wb=a=>{0==rb.length&&(sb(),tb(rb[0]));var c=rb.pop();if(!c)return 6;ub.push(c);vb[a.kCa]=c;c.kCa=a.kCa;var e={rCa:"run",qPa:a.pPa,TCa:a.TCa,kCa:a.kCa};ra&&c.unref();c.postMessage(e,a.vHa);return 0},xb=0,Cb=(a,c,...e)=>{for(var f=e.length,h=yb(),k=zb(8*f),p=k>>3,y=0;y<e.length;y++){var Q=e[y];la()[p+y]=Q}a=Ab(a,0,f,k,c);Bb(h);return a}; function Db(a){if(sa)return Cb(0,1,a);Ia=a;if(!(Eb||0<xb)){for(var c of ub)qb(c);for(c of rb)qb(c);rb=[];ub=[];vb={};b.onExit?.(a);Ha=!0}wa(a,new pb(a))}function Fb(a){if(sa)return Cb(1,0,a);jb(a)}var jb=a=>{Ia=a;if(sa)throw Fb(a),"unwind";Db(a)},rb=[],ub=[],Gb=[],vb={};function waa(){for(var a=16;a--;)sb();Ua.unshift(()=>{$a();xaa(()=>ab())})}var Ib=a=>{var c=a.kCa;delete vb[c];rb.push(a);ub.splice(ub.indexOf(a),1);a.kCa=0;Hb(c)};function Oa(){Gb.forEach(a=>a())} var tb=a=>new Promise(c=>{a.onmessage=k=>{k=k.data;var p=k.rCa;if(k.vEa&&k.vEa!=Ma()){var y=vb[k.vEa];y?y.postMessage(k,k.vHa):Ea(`Internal error! Worker sent a message "${p}" to target pthread ${k.vEa}, but that thread no longer exists!`)}else if("checkMailbox"===p)Ra();else if("spawnThread"===p)wb(k);else if("cleanupThread"===p)Ib(vb[k.rPa]);else if("loaded"===p)a.loaded=!0,ra&&!a.kCa&&a.unref(),c(a);else if("alert"===p)alert(`Thread ${k.sPa}: ${k.text}`);else if("setimmediate"===k.target)a.postMessage(k); else if("callHandler"===p)b[k.tLa](...k.args);else p&&Ea(`worker sent an unknown command ${p}`)};a.onerror=k=>{Ea(`${"worker sent an error!"} ${k.filename}:${k.lineno}: ${k.message}`);throw k;};ra&&(a.on("message",k=>a.onmessage({data:k})),a.on("error",k=>a.onerror(k)));var e=[],f=["onExit","onAbort","print","printErr"],h;for(h of f)b.propertyIsEnumerable(h)&&e.push(h);a.postMessage({rCa:"load",uLa:e,uPa:ba,vPa:Ga})});function xaa(a){sa?a():Promise.all(rb.map(tb)).then(a)} function sb(){var a=new Worker(new URL("jolt-physics.multithread.wasm.js",import.meta.url),{type:"module",workerData:"em-pthread",name:"em-pthread"});rb.push(a)}var Jb=a=>{for(;0<a.length;)a.shift()(b)},caa=a=>{da();var c=ja()[a+52>>2];a=ja()[a+56>>2];Kb(c,c-a);Bb(c)},Lb=[],Mb,Qa=(a,c)=>{Eb=xb=0;var e=Lb[a];e||(a>=Lb.length&&(Lb.length=a+1),Lb[a]=e=Mb.get(a));a=e(c);Eb||0<xb?Ia=a:Nb(a)},Eb=b.noExitRuntime||!0;function Ob(a,c,e,f){return sa?Cb(2,1,a,c,e,f):gb(a,c,e,f)} var gb=(a,c,e,f)=>{if("undefined"==typeof SharedArrayBuffer)return 6;var h=[];if(sa&&0===h.length)return Ob(a,c,e,f);a={pPa:e,kCa:a,TCa:f,vHa:h};return sa?(a.rCa="spawnThread",postMessage(a,h),0):wb(a)},gaa=()=>bb(""),haa=a=>{Na(a,!qa,1,!pa,1048576,!1);Oa()},Pa=a=>{"function"===typeof Atomics.tPa&&(Atomics.tPa(ha(),a>>2,a).value.then(Ra),a+=128,Atomics.store(ha(),a>>2,1))},Ra=()=>{var a=Ma();if(a&&(Pa(a),a=Pb,!Ha))try{if(a(),!(Eb||0<xb))try{sa?Nb(Ia):jb(Ia)}catch(c){c instanceof pb||"unwind"==c|| wa(1,c)}}catch(c){c instanceof pb||"unwind"==c||wa(1,c)}},iaa=(a,c)=>{a==c?setTimeout(Ra):sa?postMessage({vEa:a,rCa:"checkMailbox"}):(a=vb[a])&&a.postMessage({rCa:"checkMailbox"})},Qb=[],jaa=(a,c,e,f,h)=>{Qb.length=f;e=h>>3;for(h=0;h<f;h++)Qb[h]=la()[e+h];return(c?ob[c]:yaa[a])(...Qb)},kaa=a=>{sa?postMessage({rCa:"cleanupThread",rPa:a}):Ib(vb[a])},laa=a=>{ra&&vb[a].ref()},Rb=(a,c,e,f)=>{if(0<f){f=e+f-1;for(var h=0;h<a.length;++h){var k=a.charCodeAt(h);if(55296<=k&&57343>=k){var p=a.charCodeAt(++h); k=65536+((k&1023)<<10)|p&1023}if(127>=k){if(e>=f)break;c[e++]=k}else{if(2047>=k){if(e+1>=f)break;c[e++]=192|k>>6}else{if(65535>=k){if(e+2>=f)break;c[e++]=224|k>>12}else{if(e+3>=f)break;c[e++]=240|k>>18;c[e++]=128|k>>12&63}c[e++]=128|k>>6&63}c[e++]=128|k&63}}c[e]=0}},Sb=(a,c)=>{Rb(a,ea(),c,17)},maa=(a,c,e,f)=>{var h=(new Date).getFullYear(),k=(new Date(h,0,1)).getTimezoneOffset();h=(new Date(h,6,1)).getTimezoneOffset();var p=Math.max(k,h);ja()[a>>2]=60*p;ha()[c>>2]=Number(k!=h);c=y=>{var Q=Math.abs(y); return`UTC${0<=y?"-":"+"}${String(Math.floor(Q/60)).padStart(2,"0")}${String(Q%60).padStart(2,"0")}`};a=c(k);c=c(h);h<k?(Sb(a,e),Sb(c,f)):(Sb(a,f),Sb(c,e))},taa=()=>performance.timeOrigin+performance.now(),Tb=[],Ub=(a,c,e)=>{Tb.length=0;for(var f;f=ea()[c++];){var h=105!=f;h&=112!=f;e+=h&&e%8?4:0;Tb.push(112==f?ja()[e>>2]:105==f?ha()[e>>2]:la()[e>>3]);e+=h?8:4}return ob[a](...Tb)},naa=(a,c,e)=>Ub(a,c,e),oaa=(a,c,e)=>Ub(a,c,e),paa=(a,c,e)=>Ub(a,c,e),qaa=()=>{},raa=()=>{xb+=1;throw"unwind";},saa=()=> 2147483648,uaa=()=>ra?require("os").cpus().length:navigator.hardwareConcurrency,vaa=a=>{var c=ea().length;a>>>=0;if(a<=c||2147483648<a)return!1;for(var e=1;4>=e;e*=2){var f=c*(1+.2/e);f=Math.min(f,a+100663296);a:{f=(Math.min(2147483648,65536*Math.ceil(Math.max(a,f)/65536))-ba.buffer.byteLength+65535)/65536|0;try{ba.grow(f);da();var h=1;break a}catch(k){}h=void 0}if(h)return!0}return!1},Vb={},Xb=()=>{if(!Wb){var a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"== typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:va||"./this.program"},c;for(c in Vb)void 0===Vb[c]?delete a[c]:a[c]=Vb[c];var e=[];for(c in a)e.push(`${c}=${a[c]}`);Wb=e}return Wb},Wb;function hb(a,c){if(sa)return Cb(3,1,a,c);var e=0;Xb().forEach((f,h)=>{var k=c+e;h=ja()[a+4*h>>2]=k;for(k=0;k<f.length;++k)aa()[h++]=f.charCodeAt(k);aa()[h]=0;e+=f.length+1});return 0} function ib(a,c){if(sa)return Cb(4,1,a,c);var e=Xb();ja()[a>>2]=e.length;var f=0;e.forEach(h=>f+=h.length+1);ja()[c>>2]=f;return 0}function kb(a){return sa?Cb(5,1,a):52}function lb(a,c,e,f){return sa?Cb(6,1,a,c,e,f):52}function mb(a,c,e,f,h){return sa?Cb(7,1,a,c,e,f,h):70} var zaa=[null,[],[]],Yb="undefined"!=typeof TextDecoder?new TextDecoder:void 0,Zb=(a,c=0)=>{for(var e=c+NaN,f=c;a[f]&&!(f>=e);)++f;if(16<f-c&&a.buffer&&Yb)return Yb.decode(a.buffer instanceof ArrayBuffer?a.subarray(c,f):a.slice(c,f));for(e="";c<f;){var h=a[c++];if(h&128){var k=a[c++]&63;if(192==(h&224))e+=String.fromCharCode((h&31)<<6|k);else{var p=a[c++]&63;h=224==(h&240)?(h&15)<<12|k<<6|p:(h&7)<<18|k<<12|p<<6|a[c++]&63;65536>h?e+=String.fromCharCode(h):(h-=65536,e+=String.fromCharCode(55296|h>> 10,56320|h&1023))}}else e+=String.fromCharCode(h)}return e};function nb(a,c,e,f){if(sa)return Cb(8,1,a,c,e,f);for(var h=0,k=0;k<e;k++){var p=ja()[c>>2],y=ja()[c+4>>2];c+=8;for(var Q=0;Q<y;Q++){var Ta=ea()[p+Q],Qd=zaa[a];0===Ta||10===Ta?((1===a?Da:Ea)(Zb(Qd)),Qd.length=0):Qd.push(Ta)}h+=y}ja()[f>>2]=h;return 0}sa||waa();var yaa=[Db,Fb,Ob,hb,ib,kb,lb,mb,nb],fb,d; (async function(){function a(f,h){d=f.exports;Gb.push(d.vBa);Mb=d.G;Va.unshift(d.A);Ga=h;ab();return d}$a();var c=eb();if(b.instantiateWasm)try{return b.instantiateWasm(c,a)}catch(f){Ea(`Module.instantiateWasm callback failed with error: ${f}`),oa(f)}if(sa)return new Promise(f=>{Ja=h=>{var k=new WebAssembly.Instance(h,eb());a(k,h);f()}});db??=b.locateFile?cb("jolt-physics.multithread.wasm.wasm")?"jolt-physics.multithread.wasm.wasm":b.locateFile?b.locateFile("jolt-physics.multithread.wasm.wasm",xa): xa+"jolt-physics.multithread.wasm.wasm":(new URL("jolt-physics.multithread.wasm.wasm",import.meta.url)).href;try{var e=await faa(c);a(e.instance,e.module);return e}catch(f){oa(f)}})();b._webidl_free=a=>(b._webidl_free=d.B)(a);b._webidl_malloc=a=>(b._webidl_malloc=d.C)(a); var $b=b._emscripten_bind_ShapeSettings_GetRefCount_0=a=>($b=b._emscripten_bind_ShapeSettings_GetRefCount_0=d.D)(a),ac=b._emscripten_bind_ShapeSettings_AddRef_0=a=>(ac=b._emscripten_bind_ShapeSettings_AddRef_0=d.E)(a),bc=b._emscripten_bind_ShapeSettings_Release_0=a=>(bc=b._emscripten_bind_ShapeSettings_Release_0=d.F)(a),cc=b._emscripten_bind_ShapeSettings_Create_0=a=>(cc=b._emscripten_bind_ShapeSettings_Create_0=d.H)(a),dc=b._emscripten_bind_ShapeSettings_ClearCachedResult_0=a=>(dc=b._emscripten_bind_ShapeSettings_ClearCachedResult_0= d.I)(a),ec=b._emscripten_bind_ShapeSettings_get_mUserData_0=a=>(ec=b._emscripten_bind_ShapeSettings_get_mUserData_0=d.J)(a),fc=b._emscripten_bind_ShapeSettings_set_mUserData_1=(a,c,e)=>(fc=b._emscripten_bind_ShapeSettings_set_mUserData_1=d.K)(a,c,e),gc=b._emscripten_bind_ShapeSettings___destroy___0=a=>(gc=b._emscripten_bind_ShapeSettings___destroy___0=d.L)(a),hc=b._emscripten_bind_Shape_GetRefCount_0=a=>(hc=b._emscripten_bind_Shape_GetRefCount_0=d.M)(a),ic=b._emscripten_bind_Shape_AddRef_0=a=>(ic= b._emscripten_bind_Shape_AddRef_0=d.N)(a),jc=b._emscripten_bind_Shape_Release_0=a=>(jc=b._emscripten_bind_Shape_Release_0=d.O)(a),kc=b._emscripten_bind_Shape_GetType_0=a=>(kc=b._emscripten_bind_Shape_GetType_0=d.P)(a),lc=b._emscripten_bind_Shape_GetSubType_0=a=>(lc=b._emscripten_bind_Shape_GetSubType_0=d.Q)(a),mc=b._emscripten_bind_Shape_MustBeStatic_0=a=>(mc=b._emscripten_bind_Shape_MustBeStatic_0=d.R)(a),nc=b._emscripten_bind_Shape_GetLocalBounds_0=a=>(nc=b._emscripten_bind_Shape_GetLocalBounds_0= d.S)(a),oc=b._emscripten_bind_Shape_GetWorldSpaceBounds_2=(a,c,e)=>(oc=b._emscripten_bind_Shape_GetWorldSpaceBounds_2=d.T)(a,c,e),pc=b._emscripten_bind_Shape_GetCenterOfMass_0=a=>(pc=b._emscripten_bind_Shape_GetCenterOfMass_0=d.U)(a),qc=b._emscripten_bind_Shape_GetUserData_0=a=>(qc=b._emscripten_bind_Shape_GetUserData_0=d.V)(a),rc=b._emscripten_bind_Shape_SetUserData_1=(a,c,e)=>(rc=b._emscripten_bind_Shape_SetUserData_1=d.W)(a,c,e),sc=b._emscripten_bind_Shape_GetSubShapeIDBitsRecursive_0=a=>(sc=b._emscripten_bind_Shape_GetSubShapeIDBitsRecursive_0= d.X)(a),tc=b._emscripten_bind_Shape_GetInnerRadius_0=a=>(tc=b._emscripten_bind_Shape_GetInnerRadius_0=d.Y)(a),uc=b._emscripten_bind_Shape_GetMassProperties_0=a=>(uc=b._emscripten_bind_Shape_GetMassProperties_0=d.Z)(a),vc=b._emscripten_bind_Shape_GetLeafShape_2=(a,c,e)=>(vc=b._emscripten_bind_Shape_GetLeafShape_2=d._)(a,c,e),wc=b._emscripten_bind_Shape_GetMaterial_1=(a,c)=>(wc=b._emscripten_bind_Shape_GetMaterial_1=d.$)(a,c),xc=b._emscripten_bind_Shape_GetSurfaceNormal_2=(a,c,e)=>(xc=b._emscripten_bind_Shape_GetSurfaceNormal_2= d.aa)(a,c,e),yc=b._emscripten_bind_Shape_GetSubShapeUserData_1=(a,c)=>(yc=b._emscripten_bind_Shape_GetSubShapeUserData_1=d.ba)(a,c),zc=b._emscripten_bind_Shape_GetSubShapeTransformedShape_5=(a,c,e,f,h,k)=>(zc=b._emscripten_bind_Shape_GetSubShapeTransformedShape_5=d.ca)(a,c,e,f,h,k),Ac=b._emscripten_bind_Shape_GetVolume_0=a=>(Ac=b._emscripten_bind_Shape_GetVolume_0=d.da)(a),Bc=b._emscripten_bind_Shape_IsValidScale_1=(a,c)=>(Bc=b._emscripten_bind_Shape_IsValidScale_1=d.ea)(a,c),Cc=b._emscripten_bind_Shape_MakeScaleValid_1= (a,c)=>(Cc=b._emscripten_bind_Shape_MakeScaleValid_1=d.fa)(a,c),Dc=b._emscripten_bind_Shape_ScaleShape_1=(a,c)=>(Dc=b._emscripten_bind_Shape_ScaleShape_1=d.ga)(a,c),Ec=b._emscripten_bind_Shape___destroy___0=a=>(Ec=b._emscripten_bind_Shape___destroy___0=d.ha)(a),Fc=b._emscripten_bind_ConstraintSettings_GetRefCount_0=a=>(Fc=b._emscripten_bind_ConstraintSettings_GetRefCount_0=d.ia)(a),Gc=b._emscripten_bind_ConstraintSettings_AddRef_0=a=>(Gc=b._emscripten_bind_ConstraintSettings_AddRef_0=d.ja)(a),Hc= b._emscripten_bind_ConstraintSettings_Release_0=a=>(Hc=b._emscripten_bind_ConstraintSettings_Release_0=d.ka)(a),Ic=b._emscripten_bind_ConstraintSettings_get_mEnabled_0=a=>(Ic=b._emscripten_bind_ConstraintSettings_get_mEnabled_0=d.la)(a),Jc=b._emscripten_bind_ConstraintSettings_set_mEnabled_1=(a,c)=>(Jc=b._emscripten_bind_ConstraintSettings_set_mEnabled_1=d.ma)(a,c),Kc=b._emscripten_bind_ConstraintSettings_get_mNumVelocityStepsOverride_0=a=>(Kc=b._emscripten_bind_ConstraintSettings_get_mNumVelocityStepsOverride_0= d.na)(a),Lc=b._emscripten_bind_ConstraintSettings_set_mNumVelocityStepsOverride_1=(a,c)=>(Lc=b._emscripten_bind_ConstraintSettings_set_mNumVelocityStepsOverride_1=d.oa)(a,c),Mc=b._emscripten_bind_ConstraintSettings_get_mNumPositionStepsOverride_0=a=>(Mc=b._emscripten_bind_ConstraintSettings_get_mNumPositionStepsOverride_0=d.pa)(a),Nc=b._emscripten_bind_ConstraintSettings_set_mNumPositionStepsOverride_1=(a,c)=>(Nc=b._emscripten_bind_ConstraintSettings_set_mNumPositionStepsOverride_1=d.qa)(a,c),Oc= b._emscripten_bind_ConstraintSettings___destroy___0=a=>(Oc=b._emscripten_bind_ConstraintSettings___destroy___0=d.ra)(a),Pc=b._emscripten_bind_Constraint_GetRefCount_0=a=>(Pc=b._emscripten_bind_Constraint_GetRefCount_0=d.sa)(a),Qc=b._emscripten_bind_Constraint_AddRef_0=a=>(Qc=b._emscripten_bind_Constraint_AddRef_0=d.ta)(a),Rc=b._emscripten_bind_Constraint_Release_0=a=>(Rc=b._emscripten_bind_Constraint_Release_0=d.ua)(a),Sc=b._emscripten_bind_Constraint_GetType_0=a=>(Sc=b._emscripten_bind_Constraint_GetType_0= d.va)(a),Tc=b._emscripten_bind_Constraint_GetSubType_0=a=>(Tc=b._emscripten_bind_Constraint_GetSubType_0=d.wa)(a),Uc=b._emscripten_bind_Constraint_GetConstraintPriority_0=a=>(Uc=b._emscripten_bind_Constraint_GetConstraintPriority_0=d.xa)(a),Vc=b._emscripten_bind_Constraint_SetConstraintPriority_1=(a,c)=>(Vc=b._emscripten_bind_Constraint_SetConstraintPriority_1=d.ya)(a,c),Wc=b._emscripten_bind_Constraint_SetNumVelocityStepsOverride_1=(a,c)=>(Wc=b._emscripten_bind_Constraint_SetNumVelocityStepsOverride_1= d.za)(a,c),Xc=b._emscripten_bind_Constraint_GetNumVelocityStepsOverride_0=a=>(Xc=b._emscripten_bind_Constraint_GetNumVelocityStepsOverride_0=d.Aa)(a),Yc=b._emscripten_bind_Constraint_SetNumPositionStepsOverride_1=(a,c)=>(Yc=b._emscripten_bind_Constraint_SetNumPositionStepsOverride_1=d.Ba)(a,c),Zc=b._emscripten_bind_Constraint_GetNumPositionStepsOverride_0=a=>(Zc=b._emscripten_bind_Constraint_GetNumPositionStepsOverride_0=d.Ca)(a),$c=b._emscripten_bind_Constraint_SetEnabled_1=(a,c)=>($c=b._emscripten_bind_Constraint_SetEnabled_1= d.Da)(a,c),ad=b._emscripten_bind_Constraint_GetEnabled_0=a=>(ad=b._emscripten_bind_Constraint_GetEnabled_0=d.Ea)(a),bd=b._emscripten_bind_Constraint_IsActive_0=a=>(bd=b._emscripten_bind_Constraint_IsActive_0=d.Fa)(a),cd=b._emscripten_bind_Constraint_GetUserData_0=a=>(cd=b._emscripten_bind_Constraint_GetUserData_0=d.Ga)(a),dd=b._emscripten_bind_Constraint_SetUserData_1=(a,c,e)=>(dd=b._emscripten_bind_Constraint_SetUserData_1=d.Ha)(a,c,e),ed=b._emscripten_bind_Constraint_ResetWarmStart_0=a=>(ed=b._emscripten_bind_Constraint_ResetWarmStart_0= d.Ia)(a),fd=b._emscripten_bind_Constraint_SaveState_1=(a,c)=>(fd=b._emscripten_bind_Constraint_SaveState_1=d.Ja)(a,c),gd=b._emscripten_bind_Constraint_RestoreState_1=(a,c)=>(gd=b._emscripten_bind_Constraint_RestoreState_1=d.Ka)(a,c),hd=b._emscripten_bind_Constraint___destroy___0=a=>(hd=b._emscripten_bind_Constraint___destroy___0=d.La)(a),jd=b._emscripten_bind_PathConstraintPath_IsLooping_0=a=>(jd=b._emscripten_bind_PathConstraintPath_IsLooping_0=d.Ma)(a),kd=b._emscripten_bind_PathConstraintPath_SetIsLooping_1= (a,c)=>(kd=b._emscripten_bind_PathConstraintPath_SetIsLooping_1=d.Na)(a,c),ld=b._emscripten_bind_PathConstraintPath_GetRefCount_0=a=>(ld=b._emscripten_bind_PathConstraintPath_GetRefCount_0=d.Oa)(a),md=b._emscripten_bind_PathConstraintPath_AddRef_0=a=>(md=b._emscripten_bind_PathConstraintPath_AddRef_0=d.Pa)(a),nd=b._emscripten_bind_PathConstraintPath_Release_0=a=>(nd=b._emscripten_bind_PathConstraintPath_Release_0=d.Qa)(a),od=b._emscripten_bind_PathConstraintPath___destroy___0=a=>(od=b._emscripten_bind_PathConstraintPath___destroy___0= d.Ra)(a),pd=b._emscripten_bind_StateRecorder_SetValidating_1=(a,c)=>(pd=b._emscripten_bind_StateRecorder_SetValidating_1=d.Sa)(a,c),qd=b._emscripten_bind_StateRecorder_IsValidating_0=a=>(qd=b._emscripten_bind_StateRecorder_IsValidating_0=d.Ta)(a),rd=b._emscripten_bind_StateRecorder_SetIsLastPart_1=(a,c)=>(rd=b._emscripten_bind_StateRecorder_SetIsLastPart_1=d.Ua)(a,c),sd=b._emscripten_bind_StateRecorder_IsLastPart_0=a=>(sd=b._emscripten_bind_StateRecorder_IsLastPart_0=d.Va)(a),td=b._emscripten_bind_StateRecorder___destroy___0= a=>(td=b._emscripten_bind_StateRecorder___destroy___0=d.Wa)(a),ud=b._emscripten_bind_ContactListener___destroy___0=a=>(ud=b._emscripten_bind_ContactListener___destroy___0=d.Xa)(a),vd=b._emscripten_bind_SoftBodyContactListener___destroy___0=a=>(vd=b._emscripten_bind_SoftBodyContactListener___destroy___0=d.Ya)(a),wd=b._emscripten_bind_CharacterContactListener___destroy___0=a=>(wd=b._emscripten_bind_CharacterContactListener___destroy___0=d.Za)(a),xd=b._emscripten_bind_ObjectVsBroadPhaseLayerFilter_ObjectVsBroadPhaseLayerFilter_0= ()=>(xd=b._emscripten_bind_ObjectVsBroadPhaseLayerFilter_ObjectVsBroadPhaseLayerFilter_0=d._a)(),yd=b._emscripten_bind_ObjectVsBroadPhaseLayerFilter___destroy___0=a=>(yd=b._emscripten_bind_ObjectVsBroadPhaseLayerFilter___destroy___0=d.$a)(a),zd=b._emscripten_bind_VehicleControllerSettings___destroy___0=a=>(zd=b._emscripten_bind_VehicleControllerSettings___destroy___0=d.ab)(a),Ad=b._emscripten_bind_VehicleController_GetRefCount_0=a=>(Ad=b._emscripten_bind_VehicleController_GetRefCount_0=d.bb)(a),Bd= b._emscripten_bind_VehicleController_AddRef_0=a=>(Bd=b._emscripten_bind_VehicleController_AddRef_0=d.cb)(a),Cd=b._emscripten_bind_VehicleController_Release_0=a=>(Cd=b._emscripten_bind_VehicleController_Release_0=d.db)(a),Dd=b._emscripten_bind_VehicleController_GetConstraint_0=a=>(Dd=b._emscripten_bind_VehicleController_GetConstraint_0=d.eb)(a),Ed=b._emscripten_bind_VehicleController___destroy___0=a=>(Ed=b._emscripten_bind_VehicleController___destroy___0=d.fb)(a),Fd=b._emscripten_bind_BroadPhaseLayerInterface_GetNumBroadPhaseLayers_0= a=>(Fd=b._emscripten_bind_BroadPhaseLayerInterface_GetNumBroadPhaseLayers_0=d.gb)(a),Gd=b._emscripten_bind_BroadPhaseLayerInterface___destroy___0=a=>(Gd=b._emscripten_bind_BroadPhaseLayerInterface___destroy___0=d.hb)(a),Hd=b._emscripten_bind_BroadPhaseCastResult_BroadPhaseCastResult_0=()=>(Hd=b._emscripten_bind_BroadPhaseCastResult_BroadPhaseCastResult_0=d.ib)(),Id=b._emscripten_bind_BroadPhaseCastResult_Reset_0=a=>(Id=b._emscripten_bind_BroadPhaseCastResult_Reset_0=d.jb)(a),Jd=b._emscripten_bind_BroadPhaseCastResult_get_mBodyID_0= a=>(Jd=b._emscripten_bind_BroadPhaseCastResult_get_mBodyID_0=d.kb)(a),Kd=b._emscripten_bind_BroadPhaseCastResult_set_mBodyID_1=(a,c)=>(Kd=b._emscripten_bind_BroadPhaseCastResult_set_mBodyID_1=d.lb)(a,c),Ld=b._emscripten_bind_BroadPhaseCastResult_get_mFraction_0=a=>(Ld=b._emscripten_bind_BroadPhaseCastResult_get_mFraction_0=d.mb)(a),Md=b._emscripten_bind_BroadPhaseCastResult_set_mFraction_1=(a,c)=>(Md=b._emscripten_bind_BroadPhaseCastResult_set_mFraction_1=d.nb)(a,c),Nd=b._emscripten_bind_BroadPhaseCastResult___destroy___0= a=>(Nd=b._emscripten_bind_BroadPhaseCastResult___destroy___0=d.ob)(a),Od=b._emscripten_bind_ConvexShapeSettings_GetRefCount_0=a=>(Od=b._emscripten_bind_ConvexShapeSettings_GetRefCount_0=d.pb)(a),Pd=b._emscripten_bind_ConvexShapeSettings_AddRef_0=a=>(Pd=b._emscripten_bind_ConvexShapeSettings_AddRef_0=d.qb)(a),Rd=b._emscripten_bind_ConvexShapeSettings_Release_0=a=>(Rd=b._emscripten_bind_ConvexShapeSettings_Release_0=d.rb)(a),Sd=b._emscripten_bind_ConvexShapeSettings_Create_0=a=>(Sd=b._emscripten_bind_ConvexShapeSettings_Create_0= d.sb)(a),Td=b._emscripten_bind_ConvexShapeSettings_ClearCachedResult_0=a=>(Td=b._emscripten_bind_ConvexShapeSettings_ClearCachedResult_0=d.tb)(a),Ud=b._emscripten_bind_ConvexShapeSettings_get_mMaterial_0=a=>(Ud=b._emscripten_bind_ConvexShapeSettings_get_mMaterial_0=d.ub)(a),Vd=b._emscripten_bind_ConvexShapeSettings_set_mMaterial_1=(a,c)=>(Vd=b._emscripten_bind_ConvexShapeSettings_set_mMaterial_1=d.vb)(a,c),Wd=b._emscripten_bind_ConvexShapeSettings_get_mDensity_0=a=>(Wd=b._emscripten_bind_ConvexShapeSettings_get_mDensity_0= d.wb)(a),Xd=b._emscripten_bind_ConvexShapeSettings_set_mDensity_1=(a,c)=>(Xd=b._emscripten_bind_ConvexShapeSettings_set_mDensity_1=d.xb)(a,c),Yd=b._emscripten_bind_ConvexShapeSettings_get_mUserData_0=a=>(Yd=b._emscripten_bind_ConvexShapeSettings_get_mUserData_0=d.yb)(a),Zd=b._emscripten_bind_ConvexShapeSettings_set_mUserData_1=(a,c,e)=>(Zd=b._emscripten_bind_ConvexShapeSettings_set_mUserData_1=d.zb)(a,c,e),$d=b._emscripten_bind_ConvexShapeSettings___destroy___0=a=>($d=b._emscripten_bind_ConvexShapeSettings___destroy___0= d.Ab)(a),ae=b._emscripten_bind_ConvexShape_SetMaterial_1=(a,c)=>(ae=b._emscripten_bind_ConvexShape_SetMaterial_1=d.Bb)(a,c),be=b._emscripten_bind_ConvexShape_GetDensity_0=a=>(be=b._emscripten_bind_ConvexShape_GetDensity_0=d.Cb)(a),ce=b._emscripten_bind_ConvexShape_SetDensity_1=(a,c)=>(ce=b._emscripten_bind_ConvexShape_SetDensity_1=d.Db)(a,c),de=b._emscripten_bind_ConvexShape_GetRefCount_0=a=>(de=b._emscripten_bind_ConvexShape_GetRefCount_0=d.Eb)(a),ee=b._emscripten_bind_ConvexShape_AddRef_0=a=>(ee= b._emscripten_bind_ConvexShape_AddRef_0=d.Fb)(a),fe=b._emscripten_bind_ConvexShape_Release_0=a=>(fe=b._emscripten_bind_ConvexShape_Release_0=d.Gb)(a),ge=b._emscripten_bind_ConvexShape_GetType_0=a=>(ge=b._emscripten_bind_ConvexShape_GetType_0=d.Hb)(a),he=b._emscripten_bind_ConvexShape_GetSubType_0=a=>(he=b._emscripten_bind_ConvexShape_GetSubType_0=d.Ib)(a),ie=b._emscripten_bind_ConvexShape_MustBeStatic_0=a=>(ie=b._emscripten_bind_ConvexShape_MustBeStatic_0=d.Jb)(a),je=b._emscripten_bind_ConvexShape_GetLocalBounds_0= a=>(je=b._emscripten_bind_ConvexShape_GetLocalBounds_0=d.Kb)(a),ke=b._emscripten_bind_ConvexShape_GetWorldSpaceBounds_2=(a,c,e)=>(ke=b._emscripten_bind_ConvexShape_GetWorldSpaceBounds_2=d.Lb)(a,c,e),le=b._emscripten_bind_ConvexShape_GetCenterOfMass_0=a=>(le=b._emscripten_bind_ConvexShape_GetCenterOfMass_0=d.Mb)(a),me=b._emscripten_bind_ConvexShape_GetUserData_0=a=>(me=b._emscripten_bind_ConvexShape_GetUserData_0=d.Nb)(a),ne=b._emscripten_bind_ConvexShape_SetUserData_1=(a,c,e)=>(ne=b._emscripten_bind_ConvexShape_SetUserData_1= d.Ob)(a,c,e),oe=b._emscripten_bind_ConvexShape_GetSubShapeIDBitsRecursive_0=a=>(oe=b._emscripten_bind_ConvexShape_GetSubShapeIDBitsRecursive_0=d.Pb)(a),pe=b._emscripten_bind_ConvexShape_GetInnerRadius_0=a=>(pe=b._emscripten_bind_ConvexShape_GetInnerRadius_0=d.Qb)(a),qe=b._emscripten_bind_ConvexShape_GetMassProperties_0=a=>(qe=b._emscripten_bind_ConvexShape_GetMassProperties_0=d.Rb)(a),re=b._emscripten_bind_ConvexShape_GetLeafShape_2=(a,c,e)=>(re=b._emscripten_bind_ConvexShape_GetLeafShape_2=d.Sb)(a, c,e),se=b._emscripten_bind_ConvexShape_GetMaterial_1=(a,c)=>(se=b._emscripten_bind_ConvexShape_GetMaterial_1=d.Tb)(a,c),te=b._emscripten_bind_ConvexShape_GetSurfaceNormal_2=(a,c,e)=>(te=b._emscripten_bind_ConvexShape_GetSurfaceNormal_2=d.Ub)(a,c,e),ue=b._emscripten_bind_ConvexShape_GetSubShapeUserData_1=(a,c)=>(ue=b._emscripten_bind_ConvexShape_GetSubShapeUserData_1=d.Vb)(a,c),ve=b._emscripten_bind_ConvexShape_GetSubShapeTransformedShape_5=(a,c,e,f,h,k)=>(ve=b._emscripten_bind_ConvexShape_GetSubShapeTransformedShape_5= d.Wb)(a,c,e,f,h,k),we=b._emscripten_bind_ConvexShape_GetVolume_0=a=>(we=b._emscripten_bind_ConvexShape_GetVolume_0=d.Xb)(a),xe=b._emscripten_bind_ConvexShape_IsValidScale_1=(a,c)=>(xe=b._emscripten_bind_ConvexShape_IsValidScale_1=d.Yb)(a,c),ye=b._emscripten_bind_ConvexShape_MakeScaleValid_1=(a,c)=>(ye=b._emscripten_bind_ConvexShape_MakeScaleValid_1=d.Zb)(a,c),ze=b._emscripten_bind_ConvexShape_ScaleShape_1=(a,c)=>(ze=b._emscripten_bind_ConvexShape_ScaleShape_1=d._b)(a,c),Ae=b._emscripten_bind_ConvexShape___destroy___0= a=>(Ae=b._emscripten_bind_ConvexShape___destroy___0=d.$b)(a),Be=b._emscripten_bind_CompoundShapeSettings_AddShape_4=(a,c,e,f,h)=>(Be=b._emscripten_bind_CompoundShapeSettings_AddShape_4=d.ac)(a,c,e,f,h),Ce=b._emscripten_bind_CompoundShapeSettings_GetRefCount_0=a=>(Ce=b._emscripten_bind_CompoundShapeSettings_GetRefCount_0=d.bc)(a),De=b._emscripten_bind_CompoundShapeSettings_AddRef_0=a=>(De=b._emscripten_bind_CompoundShapeSettings_AddRef_0=d.cc)(a),Ee=b._emscripten_bind_CompoundShapeSettings_Release_0= a=>(Ee=b._emscripten_bind_CompoundShapeSettings_Release_0=d.dc)(a),Fe=b._emscripten_bind_CompoundShapeSettings_Create_0=a=>(Fe=b._emscripten_bind_CompoundShapeSettings_Create_0=d.ec)(a),Ge=b._emscripten_bind_CompoundShapeSettings_ClearCachedResult_0=a=>(Ge=b._emscripten_bind_CompoundShapeSettings_ClearCachedResult_0=d.fc)(a),He=b._emscripten_bind_CompoundShapeSettings_get_mUserData_0=a=>(He=b._emscripten_bind_CompoundShapeSettings_get_mUserData_0=d.gc)(a),Ie=b._emscripten_bind_CompoundShapeSettings_set_mUserData_1= (a,c,e)=>(Ie=b._emscripten_bind_CompoundShapeSettings_set_mUserData_1=d.hc)(a,c,e),Je=b._emscripten_bind_CompoundShapeSettings___destroy___0=a=>(Je=b._emscripten_bind_CompoundShapeSettings___destroy___0=d.ic)(a),Ke=b._emscripten_bind_CompoundShape_GetNumSubShapes_0=a=>(Ke=b._emscripten_bind_CompoundShape_GetNumSubShapes_0=d.jc)(a),Le=b._emscripten_bind_CompoundShape_GetSubShape_1=(a,c)=>(Le=b._emscripten_bind_CompoundShape_GetSubShape_1=d.kc)(a,c),Me=b._emscripten_bind_CompoundShape_GetRefCount_0= a=>(Me=b._emscripten_bind_CompoundShape_GetRefCount_0=d.lc)(a),Ne=b._emscripten_bind_CompoundShape_AddRef_0=a=>(Ne=b._emscripten_bind_CompoundShape_AddRef_0=d.mc)(a),Oe=b._emscripten_bind_CompoundShape_Release_0=a=>(Oe=b._emscripten_bind_CompoundShape_Release_0=d.nc)(a),Pe=b._emscripten_bind_CompoundShape_GetType_0=a=>(Pe=b._emscripten_bind_CompoundShape_GetType_0=d.oc)(a),Qe=b._emscripten_bind_CompoundShape_GetSubType_0=a=>(Qe=b._emscripten_bind_CompoundShape_GetSubType_0=d.pc)(a),Re=b._emscripten_bind_CompoundShape_MustBeStatic_0= a=>(Re=b._emscripten_bind_CompoundShape_MustBeStatic_0=d.qc)(a),Se=b._emscripten_bind_CompoundShape_GetLocalBounds_0=a=>(Se=b._emscripten_bind_CompoundShape_GetLocalBounds_0=d.rc)(a),Te=b._emscripten_bind_CompoundShape_GetWorldSpaceBounds_2=(a,c,e)=>(Te=b._emscripten_bind_CompoundShape_GetWorldSpaceBounds_2=d.sc)(a,c,e),Ue=b._emscripten_bind_CompoundShape_GetCenterOfMass_0=a=>(Ue=b._emscripten_bind_CompoundShape_GetCenterOfMass_0=d.tc)(a),Ve=b._emscripten_bind_CompoundShape_GetUserData_0=a=>(Ve=b._emscripten_bind_CompoundShape_GetUserData_0= d.uc)(a),We=b._emscripten_bind_CompoundShape_SetUserData_1=(a,c,e)=>(We=b._emscripten_bind_CompoundShape_SetUserData_1=d.vc)(a,c,e),Xe=b._emscripten_bind_CompoundShape_GetSubShapeIDBitsRecursive_0=a=>(Xe=b._emscripten_bind_CompoundShape_GetSubShapeIDBitsRecursive_0=d.wc)(a),Ye=b._emscripten_bind_CompoundShape_GetInnerRadius_0=a=>(Ye=b._emscripten_bind_CompoundShape_GetInnerRadius_0=d.xc)(a),Ze=b._emscripten_bind_CompoundShape_GetMassProperties_0=a=>(Ze=b._emscripten_bind_CompoundShape_GetMassProperties_0= d.yc)(a),$e=b._emscripten_bind_CompoundShape_GetLeafShape_2=(a,c,e)=>($e=b._emscripten_bind_CompoundShape_GetLeafShape_2=d.zc)(a,c,e),af=b._emscripten_bind_CompoundShape_GetMaterial_1=(a,c)=>(af=b._emscripten_bind_CompoundShape_GetMaterial_1=d.Ac)(a,c),bf=b._emscripten_bind_CompoundShape_GetSurfaceNormal_2=(a,c,e)=>(bf=b._emscripten_bind_CompoundShape_GetSurfaceNormal_2=d.Bc)(a,c,e),cf=b._emscripten_bind_CompoundShape_GetSubShapeUserData_1=(a,c)=>(cf=b._emscripten_bind_CompoundShape_GetSubShapeUserData_1= d.Cc)(a,c),df=b._emscripten_bind_CompoundShape_GetSubShapeTransformedShape_5=(a,c,e,f,h,k)=>(df=b._emscripten_bind_CompoundShape_GetSubShapeTransformedShape_5=d.Dc)(a,c,e,f,h,k),ef=b._emscripten_bind_CompoundShape_GetVolume_0=a=>(ef=b._emscripten_bind_CompoundShape_GetVolume_0=d.Ec)(a),ff=b._emscripten_bind_CompoundShape_IsValidScale_1=(a,c)=>(ff=b._emscripten_bind_CompoundShape_IsValidScale_1=d.Fc)(a,c),gf=b._emscripten_bind_CompoundShape_MakeScaleValid_1=(a,c)=>(gf=b._emscripten_bind_CompoundShape_MakeScaleValid_1= d.Gc)(a,c),hf=b._emscripten_bind_CompoundShape_ScaleShape_1=(a,c)=>(hf=b._emscripten_bind_CompoundShape_ScaleShape_1=d.Hc)(a,c),jf=b._emscripten_bind_CompoundShape___destroy___0=a=>(jf=b._emscripten_bind_CompoundShape___destroy___0=d.Ic)(a),kf=b._emscripten_bind_DecoratedShapeSettings_GetRefCount_0=a=>(kf=b._emscripten_bind_DecoratedShapeSettings_GetRefCount_0=d.Jc)(a),lf=b._emscripten_bind_DecoratedShapeSettings_AddRef_0=a=>(lf=b._emscripten_bind_DecoratedShapeSettings_AddRef_0=d.Kc)(a),mf=b._emscripten_bind_DecoratedShapeSettings_Release_0= a=>(mf=b._emscripten_bind_DecoratedShapeSettings_Release_0=d.Lc)(a),nf=b._emscripten_bind_DecoratedShapeSettings_Create_0=a=>(nf=b._emscripten_bind_DecoratedShapeSettings_Create_0=d.Mc)(a),of=b._emscripten_bind_DecoratedShapeSettings_ClearCachedResult_0=a=>(of=b._emscripten_bind_DecoratedShapeSettings_ClearCachedResult_0=d.Nc)(a),pf=b._emscripten_bind_DecoratedShapeSettings_get_mUserData_0=a=>(pf=b._emscripten_bind_DecoratedShapeSettings_get_mUserData_0=d.Oc)(a),qf=b._emscripten_bind_DecoratedShapeSettings_set_mUserData_1= (a,c,e)=>(qf=b._emscripten_bind_DecoratedShapeSettings_set_mUserData_1=d.Pc)(a,c,e),rf=b._emscripten_bind_DecoratedShapeSettings___destroy___0=a=>(rf=b._emscripten_bind_DecoratedShapeSettings___destroy___0=d.Qc)(a),sf=b._emscripten_bind_DecoratedShape_GetInnerShape_0=a=>(sf=b._emscripten_bind_DecoratedShape_GetInnerShape_0=d.Rc)(a),tf=b._emscripten_bind_DecoratedShape_GetRefCount_0=a=>(tf=b._emscripten_bind_DecoratedShape_GetRefCount_0=d.Sc)(a),uf=b._emscripten_bind_DecoratedShape_AddRef_0=a=>(uf= b._emscripten_bind_DecoratedShape_AddRef_0=d.Tc)(a),vf=b._emscripten_bind_DecoratedShape_Release_0=a=>(vf=b._emscripten_bind_DecoratedShape_Release_0=d.Uc)(a),wf=b._emscripten_bind_DecoratedShape_GetType_0=a=>(wf=b._emscripten_bind_DecoratedShape_GetType_0=d.Vc)(a),xf=b._emscripten_bind_DecoratedShape_GetSubType_0=a=>(xf=b._emscripten_bind_DecoratedShape_GetSubType_0=d.Wc)(a),yf=b._emscripten_bind_DecoratedShape_MustBeStatic_0=a=>(yf=b._emscripten_bind_DecoratedShape_MustBeStatic_0=d.Xc)(a),zf=b._emscripten_bind_DecoratedShape_GetLocalBounds_0= a=>(zf=b._emscripten_bind_DecoratedShape_GetLocalBounds_0=d.Yc)(a),Af=b._emscripten_bind_DecoratedShape_GetWorldSpaceBounds_2=(a,c,e)=>(Af=b._emscripten_bind_DecoratedShape_GetWorldSpaceBounds_2=d.Zc)(a,c,e),Bf=b._emscripten_bind_DecoratedShape_GetCenterOfMass_0=a=>(Bf=b._emscripten_bind_DecoratedShape_GetCenterOfMass_0=d._c)(a),Cf=b._emscripten_bind_DecoratedShape_GetUserData_0=a=>(Cf=b._emscripten_bind_DecoratedShape_GetUserData_0=d.$c)(a),Df=b._emscripten_bind_DecoratedShape_SetUserData_1=(a,c, e)=>(Df=b._emscripten_bind_DecoratedShape_SetUserData_1=d.ad)(a,c,e),Ef=b._emscripten_bind_DecoratedShape_GetSubShapeIDBitsRecursive_0=a=>(Ef=b._emscripten_bind_DecoratedShape_GetSubShapeIDBitsRecursive_0=d.bd)(a),Ff=b._emscripten_bind_DecoratedShape_GetInnerRadius_0=a=>(Ff=b._emscripten_bind_DecoratedShape_GetInnerRadius_0=d.cd)(a),Gf=b._emscripten_bind_DecoratedShape_GetMassProperties_0=a=>(Gf=b._emscripten_bind_DecoratedShape_GetMassProperties_0=d.dd)(a),Hf=b._emscripten_bind_DecoratedShape_GetLeafShape_2= (a,c,e)=>(Hf=b._emscripten_bind_DecoratedShape_GetL