laya.physics3D.runtime.js 169 KB

1
  1. var Physics3D=function(){var t="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;return function(e){var o;e={},o||(o=void 0!==e?e:{});var i,c={};for(i in o)o.hasOwnProperty(i)&&(c[i]=o[i]);o.arguments=[],o.thisProgram="./this.program",o.quit=function(t,e){throw e},o.preRun=[],o.postRun=[];var s,_,b,g=!1;s="object"==typeof window,_="function"==typeof importScripts,g="object"==typeof process&&"function"==typeof require&&!s&&!_,b=!s&&!g&&!_;var d,j,q="";g?(q=__dirname+"/",o.read=function(t,e){var o=ka(t);return o||(d||(d=require("fs")),j||(j=require("path")),t=j.normalize(t),o=d.readFileSync(t)),e?o:o.toString()},o.readBinary=function(t){return(t=o.read(t,!0)).buffer||(t=new Uint8Array(t)),assert(t.buffer),t},1<process.argv.length&&(o.thisProgram=process.argv[1].replace(/\\/g,"/")),o.arguments=process.argv.slice(2),process.on("uncaughtException",function(t){throw t}),process.on("unhandledRejection",function(){process.exit(1)}),o.quit=function(t){process.exit(t)},o.inspect=function(){return"[Emscripten Module object]"}):b?("undefined"!=typeof read&&(o.read=function(t){var e=ka(t);return e?la(e):read(t)}),o.readBinary=function(t){var e;return(e=ka(t))?e:"function"==typeof readbuffer?new Uint8Array(readbuffer(t)):(assert("object"==typeof(e=read(t,"binary"))),e)},"undefined"!=typeof scriptArgs?o.arguments=scriptArgs:void 0!==arguments&&(o.arguments=arguments),"function"==typeof quit&&(o.quit=function(t){quit(t)})):(s||_)&&(s?document.currentScript&&(q=document.currentScript.src):q=self.location.href,t&&(q=t),q=0!==q.indexOf("blob:")?q.substr(0,q.lastIndexOf("/")+1):"",o.read=function(t){try{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText}catch(e){if(t=ka(t))return la(t);throw e}},_&&(o.readBinary=function(t){try{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}catch(e){if(t=ka(t))return t;throw e}}),o.readAsync=function(t,e,o){var r=new XMLHttpRequest;r.open("GET",t,!0),r.responseType="arraybuffer",r.onload=function(){if(200==r.status||0==r.status&&r.response)e(r.response);else{var n=ka(t);n?e(n.buffer):o()}},r.onerror=o,r.send(null)},o.setWindowTitle=function(t){document.title=t});var $=o.print||("undefined"!=typeof console?console.log.bind(console):"undefined"!=typeof print?print:null),tt=o.printErr||("undefined"!=typeof printErr?printErr:"undefined"!=typeof console&&console.warn.bind(console)||$);for(i in c)c.hasOwnProperty(i)&&(o[i]=c[i]);function oa(t){var e;return e||(e=16),Math.ceil(t/e)*e}c=void 0;var et,ot,rt,nt,at,it,pt,ct,st,_t,bt=!1;function assert(t,e){t||qa("Assertion failed: "+e)}function Ca(){qa("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value "+yt+", (2) compile with -s ALLOW_MEMORY_GROWTH=1 which allows increasing the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 ")}"undefined"!=typeof TextDecoder&&new TextDecoder("utf8"),"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le"),at=0;var lt=o.TOTAL_STACK||5242880,yt=o.TOTAL_MEMORY||16777216;function Fa(t){for(;0<t.length;){var e=t.shift();if("function"==typeof e)e();else{var r=e.i;"number"==typeof r?void 0===e.f?o.dynCall_v(r):o.dynCall_vi(r,e.f):r(void 0===e.f?null:e.f)}}}yt<lt&&tt("TOTAL_MEMORY should be larger than TOTAL_STACK, was "+yt+"! (TOTAL_STACK="+lt+")"),o.buffer?et=o.buffer:(et=new ArrayBuffer(yt),o.buffer=et),o.HEAP8=new Int8Array(et),o.HEAP16=new Int16Array(et),o.HEAP32=rt=new Int32Array(et),o.HEAPU8=ot=new Uint8Array(et),o.HEAPU16=new Uint16Array(et),o.HEAPU32=new Uint32Array(et),o.HEAPF32=nt=new Float32Array(et),o.HEAPF64=new Float64Array(et);var ut=[],ft=[],ht=[],gt=[],dt=!1;function La(){var t=o.preRun.shift();ut.unshift(t)}Math.imul&&-5===Math.imul(4294967295,5)||(Math.imul=function(t,e){var o=65535&t,r=65535&e;return o*r+((t>>>16)*r+o*(e>>>16)<<16)|0}),Math.imul=Math.imul,Math.clz32||(Math.clz32=function(t){var e=32,o=t>>16;return o&&(e-=16,t=o),(o=t>>8)&&(e-=8,t=o),(o=t>>4)&&(e-=4,t=o),(o=t>>2)&&(e-=2,t=o),t>>1?e-2:e-t}),Math.clz32=Math.clz32,Math.trunc||(Math.trunc=function(t){return 0>t?Math.ceil(t):Math.floor(t)}),Math.trunc=Math.trunc;var mt=0,Ct=null,jt=null;o.preloadedImages={},o.preloadedAudios={};var vt=null,St="data:application/octet-stream;base64,";at=520,ft.push();var It=at;_t=at+=16,it=pt=oa(at=at+4+15&-16),st=oa(ct=it+lt),rt[_t>>2]=st;var Rt=!1;function la(t){for(var e=[],o=0;o<t.length;o++){var r=t[o];255<r&&(Rt&&assert(!1,"Character code "+r+" ("+String.fromCharCode(r)+") at offset "+o+" not in 0x00-0xFF."),r&=255),e.push(String.fromCharCode(r))}return e.join("")}var Pt="function"==typeof atob?atob:function(t){var e="",o=0;t=t.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(t.charAt(o++)),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(t.charAt(o++)),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(t.charAt(o++)),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(t.charAt(o++));r=r<<2|n>>4,n=(15&n)<<4|a>>2;var p=(3&a)<<6|i;e+=String.fromCharCode(r),64!==a&&(e+=String.fromCharCode(n)),64!==i&&(e+=String.fromCharCode(p))}while(o<t.length);return e};function ka(t){if(String.prototype.startsWith?t.startsWith(St):0===t.indexOf(St)){if(t=t.slice(St.length),"boolean"==typeof g&&g){try{var e=Buffer.from(t,"base64")}catch(o){e=new Buffer(t,"base64")}var o=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}else try{var r=Pt(t),n=new Uint8Array(r.length);for(e=0;e<r.length;++e)n[e]=r.charCodeAt(e);o=n}catch(t){throw Error("Converting base64 string to bytes failed.")}return o}}o.g={Math:Math,Int8Array:Int8Array,Int16Array:Int16Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Uint16Array:Uint16Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array,NaN:NaN,Infinity:1/0},o.h={abort:qa,assert:assert,enlargeMemory:function(){Ca()},getTotalMemory:function(){return yt},abortOnCannotGrowMemory:Ca,___errno_location:function(){tt("missing function: __errno_location"),qa(-1)},___setErrNo:function(t){return o.___errno_location&&(rt[o.___errno_location()>>2]=t),t},_emscripten_memcpy_big:function(t,e,o){return ot.set(ot.subarray(e,e+o),t),t},DYNAMICTOP_PTR:_t,tempDoublePtr:It,STACKTOP:pt,STACK_MAX:ct};var Ot=function(t,e,o){"use asm";var r=new t.Int8Array(o);var n=new t.Int16Array(o);var a=new t.Int32Array(o);var i=new t.Uint8Array(o);var p=new t.Uint16Array(o);var c=new t.Uint32Array(o);var s=new t.Float32Array(o);var b=new t.Float64Array(o);var l=e.DYNAMICTOP_PTR|0;var y=e.tempDoublePtr|0;var u=e.STACKTOP|0;var f=e.STACK_MAX|0;var h=0;var g=0;var d=0;var m=0;var C=t.NaN,j=t.Infinity;var v=0,S=0,I=0,R=0,P=0.0;var O=0;var w=t.Math.floor;var T=t.Math.abs;var W=t.Math.sqrt;var k=t.Math.pow;var M=t.Math.cos;var A=t.Math.sin;var D=t.Math.tan;var L=t.Math.acos;var x=t.Math.asin;var F=t.Math.atan;var B=t.Math.atan2;var G=t.Math.exp;var V=t.Math.log;var H=t.Math.ceil;var U=t.Math.imul;var N=t.Math.min;var E=t.Math.max;var Q=t.Math.clz32;var z=e.abort;var K=e.assert;var X=e.enlargeMemory;var Y=e.getTotalMemory;var q=e.abortOnCannotGrowMemory;var J=e.___errno_location;var tt=e.___setErrNo;var et=e._emscripten_memcpy_big;var ot=0.0;function Z(t){t=t|0;var e=0,o=0,r=0,n=0,i=0,p=0,c=0,s=0,_=0,b=0,l=0,y=0,f=0,h=0,g=0,d=0,m=0,C=0,j=0,v=0;v=u;u=u+16|0;do{if(t>>>0<245){y=t>>>0<11?16:t+11&-8;b=a[2]|0;if(b>>>(y>>>3)&3|0){t=48+((b>>>(y>>>3)&1^1)+(y>>>3)<<1<<2)|0;e=a[t+8>>2]|0;o=a[e+8>>2]|0;if((o|0)==(t|0))a[2]=b&~(1<<(b>>>(y>>>3)&1^1)+(y>>>3));else{a[o+12>>2]=t;a[t+8>>2]=o}j=(b>>>(y>>>3)&1^1)+(y>>>3)<<3;a[e+4>>2]=j|3;a[e+j+4>>2]=a[e+j+4>>2]|1;j=e+8|0;u=v;return j|0}l=a[4]|0;if(y>>>0>l>>>0){if(b>>>(y>>>3)|0){t=b>>>(y>>>3)<<(y>>>3)&(2<<(y>>>3)|0-(2<<(y>>>3)));n=((t&0-t)+-1|0)>>>(((t&0-t)+-1|0)>>>12&16);r=n>>>(n>>>5&8)>>>(n>>>(n>>>5&8)>>>2&4);r=(n>>>5&8|((t&0-t)+-1|0)>>>12&16|n>>>(n>>>5&8)>>>2&4|r>>>1&2|r>>>(r>>>1&2)>>>1&1)+(r>>>(r>>>1&2)>>>(r>>>(r>>>1&2)>>>1&1))|0;n=a[48+(r<<1<<2)+8>>2]|0;t=a[n+8>>2]|0;if((t|0)==(48+(r<<1<<2)|0)){a[2]=b&~(1<<r);t=b&~(1<<r)}else{a[t+12>>2]=48+(r<<1<<2);a[48+(r<<1<<2)+8>>2]=t;t=b}a[n+4>>2]=y|3;a[n+y+4>>2]=(r<<3)-y|1;a[n+(r<<3)>>2]=(r<<3)-y;if(l|0){o=a[7]|0;if(!(t&1<<(l>>>3))){a[2]=t|1<<(l>>>3);t=48+(l>>>3<<1<<2)|0;e=48+(l>>>3<<1<<2)+8|0}else{t=a[48+(l>>>3<<1<<2)+8>>2]|0;e=48+(l>>>3<<1<<2)+8|0}a[e>>2]=o;a[t+12>>2]=o;a[o+8>>2]=t;a[o+12>>2]=48+(l>>>3<<1<<2)}a[4]=(r<<3)-y;a[7]=n+y;j=n+8|0;u=v;return j|0}p=a[3]|0;if(p){e=((p&0-p)+-1|0)>>>(((p&0-p)+-1|0)>>>12&16);_=e>>>(e>>>5&8)>>>(e>>>(e>>>5&8)>>>2&4);_=a[312+((e>>>5&8|((p&0-p)+-1|0)>>>12&16|e>>>(e>>>5&8)>>>2&4|_>>>1&2|_>>>(_>>>1&2)>>>1&1)+(_>>>(_>>>1&2)>>>(_>>>(_>>>1&2)>>>1&1))<<2)>>2]|0;e=_;s=_;_=(a[_+4>>2]&-8)-y|0;while(1){t=a[e+16>>2]|0;if(!t){t=a[e+20>>2]|0;if(!t)break}c=(a[t+4>>2]&-8)-y|0;n=c>>>0<_>>>0;e=t;s=n?t:s;_=n?c:_}c=s+y|0;if(c>>>0>s>>>0){n=a[s+24>>2]|0;t=a[s+12>>2]|0;do{if((t|0)==(s|0)){e=s+20|0;t=a[e>>2]|0;if(!t){e=s+16|0;t=a[e>>2]|0;if(!t){e=0;break}}while(1){r=t+20|0;o=a[r>>2]|0;if(!o){r=t+16|0;o=a[r>>2]|0;if(!o)break;else{t=o;e=r}}else{t=o;e=r}}a[e>>2]=0;e=t}else{e=a[s+8>>2]|0;a[e+12>>2]=t;a[t+8>>2]=e;e=t}}while(0);do{if(n|0){t=a[s+28>>2]|0;if((s|0)==(a[312+(t<<2)>>2]|0)){a[312+(t<<2)>>2]=e;if(!e){a[3]=p&~(1<<t);break}}else{a[((a[n+16>>2]|0)==(s|0)?n+16|0:n+20|0)>>2]=e;if(!e)break}a[e+24>>2]=n;t=a[s+16>>2]|0;if(t|0){a[e+16>>2]=t;a[t+24>>2]=e}t=a[s+20>>2]|0;if(t|0){a[e+20>>2]=t;a[t+24>>2]=e}}}while(0);if(_>>>0<16){j=_+y|0;a[s+4>>2]=j|3;j=s+j+4|0;a[j>>2]=a[j>>2]|1}else{a[s+4>>2]=y|3;a[c+4>>2]=_|1;a[c+_>>2]=_;if(l|0){o=a[7]|0;if(!(1<<(l>>>3)&b)){a[2]=1<<(l>>>3)|b;t=48+(l>>>3<<1<<2)|0;e=48+(l>>>3<<1<<2)+8|0}else{t=a[48+(l>>>3<<1<<2)+8>>2]|0;e=48+(l>>>3<<1<<2)+8|0}a[e>>2]=o;a[t+12>>2]=o;a[o+8>>2]=t;a[o+12>>2]=48+(l>>>3<<1<<2)}a[4]=_;a[7]=c}j=s+8|0;u=v;return j|0}}}}else if(t>>>0<=4294967231){y=t+11&-8;r=a[3]|0;if(r){if((t+11|0)>>>8)if(y>>>0>16777215)s=31;else{s=(t+11|0)>>>8<<((((t+11|0)>>>8)+1048320|0)>>>16&8);s=14-((s+520192|0)>>>16&4|(((t+11|0)>>>8)+1048320|0)>>>16&8|((s<<((s+520192|0)>>>16&4))+245760|0)>>>16&2)+(s<<((s+520192|0)>>>16&4)<<(((s<<((s+520192|0)>>>16&4))+245760|0)>>>16&2)>>>15)|0;s=y>>>(s+7|0)&1|s<<1}else s=0;t=a[312+(s<<2)>>2]|0;t:do{if(!t){o=0;t=0;e=0-y|0;d=61}else{p=0;e=0-y|0;c=y<<((s|0)==31?0:25-(s>>>1)|0);o=0;while(1){n=(a[t+4>>2]&-8)-y|0;if(n>>>0<e>>>0)if(!n){n=t;e=0;o=t;d=65;break t}else{p=t;e=n}d=a[t+20>>2]|0;t=a[t+16+(c>>>31<<2)>>2]|0;o=(d|0)==0|(d|0)==(t|0)?o:d;if(!t){t=p;d=61;break}else c=c<<1}}}while(0);if((d|0)==61){if((o|0)==0&(t|0)==0){t=2<<s;if(!((t|0-t)&r))break;b=((t|0-t)&r&0-((t|0-t)&r))+-1|0;l=b>>>(b>>>12&16)>>>(b>>>(b>>>12&16)>>>5&8);o=l>>>(l>>>2&4)>>>(l>>>(l>>>2&4)>>>1&2);t=0;o=a[312+((b>>>(b>>>12&16)>>>5&8|b>>>12&16|l>>>2&4|l>>>(l>>>2&4)>>>1&2|o>>>1&1)+(o>>>(o>>>1&1))<<2)>>2]|0}if(!o){c=t;p=e}else{n=t;d=65}}if((d|0)==65)while(1){l=(a[o+4>>2]&-8)-y|0;t=l>>>0<e>>>0;e=t?l:e;n=t?o:n;t=a[o+16>>2]|0;if(!t)t=a[o+20>>2]|0;if(!t){c=n;p=e;break}else o=t}if(((c|0)!=0?p>>>0<((a[4]|0)-y|0)>>>0:0)?(_=c+y|0,_>>>0>c>>>0):0){i=a[c+24>>2]|0;t=a[c+12>>2]|0;do{if((t|0)==(c|0)){e=c+20|0;t=a[e>>2]|0;if(!t){e=c+16|0;t=a[e>>2]|0;if(!t){t=0;break}}while(1){n=t+20|0;o=a[n>>2]|0;if(!o){n=t+16|0;o=a[n>>2]|0;if(!o)break;else{t=o;e=n}}else{t=o;e=n}}a[e>>2]=0}else{j=a[c+8>>2]|0;a[j+12>>2]=t;a[t+8>>2]=j}}while(0);do{if(i){e=a[c+28>>2]|0;if((c|0)==(a[312+(e<<2)>>2]|0)){a[312+(e<<2)>>2]=t;if(!t){a[3]=r&~(1<<e);r=r&~(1<<e);break}}else{a[((a[i+16>>2]|0)==(c|0)?i+16|0:i+20|0)>>2]=t;if(!t)break}a[t+24>>2]=i;e=a[c+16>>2]|0;if(e|0){a[t+16>>2]=e;a[e+24>>2]=t}e=a[c+20>>2]|0;if(e){a[t+20>>2]=e;a[e+24>>2]=t}}}while(0);t:do{if(p>>>0<16){j=p+y|0;a[c+4>>2]=j|3;j=c+j+4|0;a[j>>2]=a[j>>2]|1}else{a[c+4>>2]=y|3;a[_+4>>2]=p|1;a[_+p>>2]=p;o=p>>>3;if(p>>>0<256){t=a[2]|0;if(!(t&1<<o)){a[2]=t|1<<o;t=48+(o<<1<<2)|0;e=48+(o<<1<<2)+8|0}else{t=a[48+(o<<1<<2)+8>>2]|0;e=48+(o<<1<<2)+8|0}a[e>>2]=_;a[t+12>>2]=_;a[_+8>>2]=t;a[_+12>>2]=48+(o<<1<<2);break}t=p>>>8;if(t)if(p>>>0>16777215)o=31;else{o=t<<((t+1048320|0)>>>16&8)<<(((t<<((t+1048320|0)>>>16&8))+520192|0)>>>16&4);o=14-(((t<<((t+1048320|0)>>>16&8))+520192|0)>>>16&4|(t+1048320|0)>>>16&8|(o+245760|0)>>>16&2)+(o<<((o+245760|0)>>>16&2)>>>15)|0;o=p>>>(o+7|0)&1|o<<1}else o=0;t=312+(o<<2)|0;a[_+28>>2]=o;a[_+16+4>>2]=0;a[_+16>>2]=0;e=1<<o;if(!(r&e)){a[3]=r|e;a[t>>2]=_;a[_+24>>2]=t;a[_+12>>2]=_;a[_+8>>2]=_;break}t=a[t>>2]|0;e:do{if((a[t+4>>2]&-8|0)!=(p|0)){r=p<<((o|0)==31?0:25-(o>>>1)|0);while(1){o=t+16+(r>>>31<<2)|0;e=a[o>>2]|0;if(!e)break;if((a[e+4>>2]&-8|0)==(p|0)){t=e;break e}else{r=r<<1;t=e}}a[o>>2]=_;a[_+24>>2]=t;a[_+12>>2]=_;a[_+8>>2]=_;break t}}while(0);C=t+8|0;j=a[C>>2]|0;a[j+12>>2]=_;a[C>>2]=_;a[_+8>>2]=j;a[_+12>>2]=t;a[_+24>>2]=0}}while(0);j=c+8|0;u=v;return j|0}}}else y=-1}while(0);o=a[4]|0;if(o>>>0>=y>>>0){t=o-y|0;e=a[7]|0;if(t>>>0>15){j=e+y|0;a[7]=j;a[4]=t;a[j+4>>2]=t|1;a[e+o>>2]=t;a[e+4>>2]=y|3}else{a[4]=0;a[7]=0;a[e+4>>2]=o|3;a[e+o+4>>2]=a[e+o+4>>2]|1}j=e+8|0;u=v;return j|0}n=a[5]|0;if(n>>>0>y>>>0){m=n-y|0;a[5]=m;j=a[8]|0;C=j+y|0;a[8]=C;a[C+4>>2]=m|1;a[j+4>>2]=y|3;j=j+8|0;u=v;return j|0}if(!(a[120]|0)){a[122]=4096;a[121]=4096;a[123]=-1;a[124]=-1;a[125]=0;a[113]=0;a[120]=v&-16^1431655768;t=4096}else t=a[122]|0;p=y+48|0;c=y+47|0;_=t+c|0;s=0-t|0;if((_&s)>>>0<=y>>>0){j=0;u=v;return j|0}t=a[112]|0;if(t|0?(l=a[110]|0,(l+(_&s)|0)>>>0<=l>>>0?1:(l+(_&s)|0)>>>0>t>>>0):0){j=0;u=v;return j|0}t:do{if(!(a[113]&4)){o=a[8]|0;e:do{if(o){e=456;while(1){t=a[e>>2]|0;if(t>>>0<=o>>>0?(f=e+4|0,(t+(a[f>>2]|0)|0)>>>0>o>>>0):0)break;t=a[e+8>>2]|0;if(!t){d=128;break e}else e=t}if((_-n&s)>>>0<2147483647){t=ca(_-n&s|0)|0;if((t|0)==((a[e>>2]|0)+(a[f>>2]|0)|0))if((t|0)==(-1|0))t=_-n&s;else{p=_-n&s;i=t;d=145;break t}else{r=t;o=_-n&s;d=136}}else t=0}else d=128}while(0);do{if((d|0)==128){e=ca(0)|0;if((e|0)!=(-1|0)?(g=a[121]|0,g=((g+-1&e|0)==0?0:(g+-1+e&0-g)-e|0)+(_&s)|0,h=a[110]|0,g>>>0>y>>>0&g>>>0<2147483647):0){f=a[112]|0;if(f|0?(g+h|0)>>>0<=h>>>0|(g+h|0)>>>0>f>>>0:0){t=0;break}t=ca(g|0)|0;if((t|0)==(e|0)){p=g;i=e;d=145;break t}else{r=t;o=g;d=136}}else t=0}}while(0);do{if((d|0)==136){e=0-o|0;if(!(p>>>0>o>>>0&(o>>>0<2147483647&(r|0)!=(-1|0))))if((r|0)==(-1|0)){t=0;break}else{p=o;i=r;d=145;break t}t=a[122]|0;t=c-o+t&0-t;if(t>>>0>=2147483647){p=o;i=r;d=145;break t}if((ca(t|0)|0)==(-1|0)){ca(e|0)|0;t=0;break}else{p=t+o|0;i=r;d=145;break t}}}while(0);a[113]=a[113]|4;d=143}else{t=0;d=143}}while(0);if(((d|0)==143?(_&s)>>>0<2147483647:0)?(i=ca(_&s|0)|0,m=ca(0)|0,C=(m-i|0)>>>0>(y+40|0)>>>0,!((i|0)==(-1|0)|C^1|i>>>0<m>>>0&((i|0)!=(-1|0)&(m|0)!=(-1|0))^1)):0){p=C?m-i|0:t;d=145}if((d|0)==145){t=(a[110]|0)+p|0;a[110]=t;if(t>>>0>(a[111]|0)>>>0)a[111]=t;s=a[8]|0;t:do{if(s){t=456;while(1){e=a[t>>2]|0;o=t+4|0;r=a[o>>2]|0;if((i|0)==(e+r|0)){d=154;break}n=a[t+8>>2]|0;if(!n)break;else t=n}if(((d|0)==154?(a[t+12>>2]&8|0)==0:0)?i>>>0>s>>>0&e>>>0<=s>>>0:0){a[o>>2]=r+p;j=(a[5]|0)+p|0;C=(s+8&7|0)==0?0:0-(s+8)&7;a[8]=s+C;a[5]=j-C;a[s+C+4>>2]=j-C|1;a[s+j+4>>2]=40;a[9]=a[124];break}if(i>>>0<(a[6]|0)>>>0)a[6]=i;o=i+p|0;t=456;while(1){if((a[t>>2]|0)==(o|0)){d=162;break}e=a[t+8>>2]|0;if(!e)break;else t=e}if((d|0)==162?(a[t+12>>2]&8|0)==0:0){a[t>>2]=i;b=t+4|0;a[b>>2]=(a[b>>2]|0)+p;b=i+8|0;b=i+((b&7|0)==0?0:0-b&7)|0;t=o+((o+8&7|0)==0?0:0-(o+8)&7)|0;_=b+y|0;c=t-b-y|0;a[b+4>>2]=y|3;e:do{if((s|0)==(t|0)){j=(a[5]|0)+c|0;a[5]=j;a[8]=_;a[_+4>>2]=j|1}else{if((a[7]|0)==(t|0)){j=(a[4]|0)+c|0;a[4]=j;a[7]=_;a[_+4>>2]=j|1;a[_+j>>2]=j;break}p=a[t+4>>2]|0;if((p&3|0)==1){o:do{if(p>>>0<256){e=a[t+8>>2]|0;o=a[t+12>>2]|0;if((o|0)==(e|0)){a[2]=a[2]&~(1<<(p>>>3));break}else{a[e+12>>2]=o;a[o+8>>2]=e;break}}else{i=a[t+24>>2]|0;e=a[t+12>>2]|0;do{if((e|0)==(t|0)){e=a[t+16+4>>2]|0;if(!e){e=a[t+16>>2]|0;if(!e){e=0;break}else o=t+16|0}else o=t+16+4|0;while(1){n=e+20|0;r=a[n>>2]|0;if(!r){n=e+16|0;r=a[n>>2]|0;if(!r)break;else{e=r;o=n}}else{e=r;o=n}}a[o>>2]=0}else{j=a[t+8>>2]|0;a[j+12>>2]=e;a[e+8>>2]=j}}while(0);if(!i)break;o=a[t+28>>2]|0;do{if((a[312+(o<<2)>>2]|0)!=(t|0)){a[((a[i+16>>2]|0)==(t|0)?i+16|0:i+20|0)>>2]=e;if(!e)break o}else{a[312+(o<<2)>>2]=e;if(e|0)break;a[3]=a[3]&~(1<<o);break o}}while(0);a[e+24>>2]=i;o=a[t+16>>2]|0;if(o|0){a[e+16>>2]=o;a[o+24>>2]=e}o=a[t+16+4>>2]|0;if(!o)break;a[e+20>>2]=o;a[o+24>>2]=e}}while(0);t=t+(p&-8)|0;n=(p&-8)+c|0}else n=c;o=t+4|0;a[o>>2]=a[o>>2]&-2;a[_+4>>2]=n|1;a[_+n>>2]=n;o=n>>>3;if(n>>>0<256){t=a[2]|0;if(!(t&1<<o)){a[2]=t|1<<o;t=48+(o<<1<<2)|0;e=48+(o<<1<<2)+8|0}else{t=a[48+(o<<1<<2)+8>>2]|0;e=48+(o<<1<<2)+8|0}a[e>>2]=_;a[t+12>>2]=_;a[_+8>>2]=t;a[_+12>>2]=48+(o<<1<<2);break}t=n>>>8;do{if(!t)r=0;else{if(n>>>0>16777215){r=31;break}r=t<<((t+1048320|0)>>>16&8)<<(((t<<((t+1048320|0)>>>16&8))+520192|0)>>>16&4);r=14-(((t<<((t+1048320|0)>>>16&8))+520192|0)>>>16&4|(t+1048320|0)>>>16&8|(r+245760|0)>>>16&2)+(r<<((r+245760|0)>>>16&2)>>>15)|0;r=n>>>(r+7|0)&1|r<<1}}while(0);t=312+(r<<2)|0;a[_+28>>2]=r;a[_+16+4>>2]=0;a[_+16>>2]=0;e=a[3]|0;o=1<<r;if(!(e&o)){a[3]=e|o;a[t>>2]=_;a[_+24>>2]=t;a[_+12>>2]=_;a[_+8>>2]=_;break}t=a[t>>2]|0;o:do{if((a[t+4>>2]&-8|0)!=(n|0)){r=n<<((r|0)==31?0:25-(r>>>1)|0);while(1){o=t+16+(r>>>31<<2)|0;e=a[o>>2]|0;if(!e)break;if((a[e+4>>2]&-8|0)==(n|0)){t=e;break o}else{r=r<<1;t=e}}a[o>>2]=_;a[_+24>>2]=t;a[_+12>>2]=_;a[_+8>>2]=_;break e}}while(0);C=t+8|0;j=a[C>>2]|0;a[j+12>>2]=_;a[C>>2]=_;a[_+8>>2]=j;a[_+12>>2]=t;a[_+24>>2]=0}}while(0);j=b+8|0;u=v;return j|0}t=456;while(1){e=a[t>>2]|0;if(e>>>0<=s>>>0?(j=e+(a[t+4>>2]|0)|0,j>>>0>s>>>0):0)break;t=a[t+8>>2]|0}n=j+-47+((j+-47+8&7|0)==0?0:0-(j+-47+8)&7)|0;n=n>>>0<(s+16|0)>>>0?s:n;t=p+-40|0;m=i+8|0;m=(m&7|0)==0?0:0-m&7;C=i+m|0;a[8]=C;a[5]=t-m;a[C+4>>2]=t-m|1;a[i+t+4>>2]=40;a[9]=a[124];a[n+4>>2]=27;a[n+8>>2]=a[114];a[n+8+4>>2]=a[115];a[n+8+8>>2]=a[116];a[n+8+12>>2]=a[117];a[114]=i;a[115]=p;a[117]=0;a[116]=n+8;t=n+24|0;do{C=t;t=t+4|0;a[t>>2]=7}while((C+8|0)>>>0<j>>>0);if((n|0)!=(s|0)){a[n+4>>2]=a[n+4>>2]&-2;a[s+4>>2]=n-s|1;a[n>>2]=n-s;if((n-s|0)>>>0<256){o=48+((n-s|0)>>>3<<1<<2)|0;t=a[2]|0;if(!(t&1<<((n-s|0)>>>3))){a[2]=t|1<<((n-s|0)>>>3);t=o;e=o+8|0}else{t=a[o+8>>2]|0;e=o+8|0}a[e>>2]=s;a[t+12>>2]=s;a[s+8>>2]=t;a[s+12>>2]=o;break}if((n-s|0)>>>8)if((n-s|0)>>>0>16777215)r=31;else{r=(n-s|0)>>>8<<((((n-s|0)>>>8)+1048320|0)>>>16&8);r=14-((r+520192|0)>>>16&4|(((n-s|0)>>>8)+1048320|0)>>>16&8|((r<<((r+520192|0)>>>16&4))+245760|0)>>>16&2)+(r<<((r+520192|0)>>>16&4)<<(((r<<((r+520192|0)>>>16&4))+245760|0)>>>16&2)>>>15)|0;r=(n-s|0)>>>(r+7|0)&1|r<<1}else r=0;t=312+(r<<2)|0;a[s+28>>2]=r;a[s+20>>2]=0;a[s+16>>2]=0;e=a[3]|0;o=1<<r;if(!(e&o)){a[3]=e|o;a[t>>2]=s;a[s+24>>2]=t;a[s+12>>2]=s;a[s+8>>2]=s;break}t=a[t>>2]|0;e:do{if((a[t+4>>2]&-8|0)!=(n-s|0)){r=n-s<<((r|0)==31?0:25-(r>>>1)|0);while(1){o=t+16+(r>>>31<<2)|0;e=a[o>>2]|0;if(!e)break;if((a[e+4>>2]&-8|0)==(n-s|0)){t=e;break e}else{r=r<<1;t=e}}a[o>>2]=s;a[s+24>>2]=t;a[s+12>>2]=s;a[s+8>>2]=s;break t}}while(0);C=t+8|0;j=a[C>>2]|0;a[j+12>>2]=s;a[C>>2]=s;a[s+8>>2]=j;a[s+12>>2]=t;a[s+24>>2]=0}}else{j=a[6]|0;if((j|0)==0|i>>>0<j>>>0)a[6]=i;a[114]=i;a[115]=p;a[117]=0;a[11]=a[120];a[10]=-1;a[15]=48;a[14]=48;a[17]=56;a[16]=56;a[19]=64;a[18]=64;a[21]=72;a[20]=72;a[23]=80;a[22]=80;a[25]=88;a[24]=88;a[27]=96;a[26]=96;a[29]=104;a[28]=104;a[31]=112;a[30]=112;a[33]=120;a[32]=120;a[35]=128;a[34]=128;a[37]=136;a[36]=136;a[39]=144;a[38]=144;a[41]=152;a[40]=152;a[43]=160;a[42]=160;a[45]=168;a[44]=168;a[47]=176;a[46]=176;a[49]=184;a[48]=184;a[51]=192;a[50]=192;a[53]=200;a[52]=200;a[55]=208;a[54]=208;a[57]=216;a[56]=216;a[59]=224;a[58]=224;a[61]=232;a[60]=232;a[63]=240;a[62]=240;a[65]=248;a[64]=248;a[67]=256;a[66]=256;a[69]=264;a[68]=264;a[71]=272;a[70]=272;a[73]=280;a[72]=280;a[75]=288;a[74]=288;a[77]=296;a[76]=296;j=p+-40|0;m=i+8|0;m=(m&7|0)==0?0:0-m&7;C=i+m|0;a[8]=C;a[5]=j-m;a[C+4>>2]=j-m|1;a[i+j+4>>2]=40;a[9]=a[124]}}while(0);t=a[5]|0;if(t>>>0>y>>>0){m=t-y|0;a[5]=m;j=a[8]|0;C=j+y|0;a[8]=C;a[C+4>>2]=m|1;a[j+4>>2]=y|3;j=j+8|0;u=v;return j|0}}a[(J()|0)>>2]=12;j=0;u=v;return j|0}function _(t){t=t|0;var e=0,o=0,r=0,n=0,i=0,p=0,c=0,s=0;if(!t)return;e=a[6]|0;o=a[t+-4>>2]|0;s=t+-8+(o&-8)|0;do{if(!(o&1)){r=a[t+-8>>2]|0;if(!(o&3))return;p=t+-8+(0-r)|0;i=r+(o&-8)|0;if(p>>>0<e>>>0)return;if((a[7]|0)==(p|0)){e=a[s+4>>2]|0;if((e&3|0)!=3){c=p;e=i;break}a[4]=i;a[s+4>>2]=e&-2;a[p+4>>2]=i|1;a[p+i>>2]=i;return}if(r>>>0<256){e=a[p+8>>2]|0;t=a[p+12>>2]|0;if((t|0)==(e|0)){a[2]=a[2]&~(1<<(r>>>3));c=p;e=i;break}else{a[e+12>>2]=t;a[t+8>>2]=e;c=p;e=i;break}}n=a[p+24>>2]|0;e=a[p+12>>2]|0;do{if((e|0)==(p|0)){e=a[p+16+4>>2]|0;if(!e){e=a[p+16>>2]|0;if(!e){e=0;break}else t=p+16|0}else t=p+16+4|0;while(1){r=e+20|0;o=a[r>>2]|0;if(!o){r=e+16|0;o=a[r>>2]|0;if(!o)break;else{e=o;t=r}}else{e=o;t=r}}a[t>>2]=0}else{c=a[p+8>>2]|0;a[c+12>>2]=e;a[e+8>>2]=c}}while(0);if(n){t=a[p+28>>2]|0;if((a[312+(t<<2)>>2]|0)==(p|0)){a[312+(t<<2)>>2]=e;if(!e){a[3]=a[3]&~(1<<t);c=p;e=i;break}}else{a[((a[n+16>>2]|0)==(p|0)?n+16|0:n+20|0)>>2]=e;if(!e){c=p;e=i;break}}a[e+24>>2]=n;t=a[p+16>>2]|0;if(t|0){a[e+16>>2]=t;a[t+24>>2]=e}t=a[p+16+4>>2]|0;if(t){a[e+20>>2]=t;a[t+24>>2]=e;c=p;e=i}else{c=p;e=i}}else{c=p;e=i}}else{c=t+-8|0;e=o&-8;p=t+-8|0}}while(0);if(p>>>0>=s>>>0)return;o=a[s+4>>2]|0;if(!(o&1))return;if(!(o&2)){if((a[8]|0)==(s|0)){s=(a[5]|0)+e|0;a[5]=s;a[8]=c;a[c+4>>2]=s|1;if((c|0)!=(a[7]|0))return;a[7]=0;a[4]=0;return}if((a[7]|0)==(s|0)){s=(a[4]|0)+e|0;a[4]=s;a[7]=p;a[c+4>>2]=s|1;a[p+s>>2]=s;return}n=(o&-8)+e|0;do{if(o>>>0<256){t=a[s+8>>2]|0;e=a[s+12>>2]|0;if((e|0)==(t|0)){a[2]=a[2]&~(1<<(o>>>3));break}else{a[t+12>>2]=e;a[e+8>>2]=t;break}}else{i=a[s+24>>2]|0;e=a[s+12>>2]|0;do{if((e|0)==(s|0)){e=a[s+16+4>>2]|0;if(!e){e=a[s+16>>2]|0;if(!e){t=0;break}else t=s+16|0}else t=s+16+4|0;while(1){r=e+20|0;o=a[r>>2]|0;if(!o){r=e+16|0;o=a[r>>2]|0;if(!o)break;else{e=o;t=r}}else{e=o;t=r}}a[t>>2]=0;t=e}else{t=a[s+8>>2]|0;a[t+12>>2]=e;a[e+8>>2]=t;t=e}}while(0);if(i|0){e=a[s+28>>2]|0;if((a[312+(e<<2)>>2]|0)==(s|0)){a[312+(e<<2)>>2]=t;if(!t){a[3]=a[3]&~(1<<e);break}}else{a[((a[i+16>>2]|0)==(s|0)?i+16|0:i+20|0)>>2]=t;if(!t)break}a[t+24>>2]=i;e=a[s+16>>2]|0;if(e|0){a[t+16>>2]=e;a[e+24>>2]=t}e=a[s+16+4>>2]|0;if(e|0){a[t+20>>2]=e;a[e+24>>2]=t}}}}while(0);a[c+4>>2]=n|1;a[p+n>>2]=n;if((c|0)==(a[7]|0)){a[4]=n;return}}else{a[s+4>>2]=o&-2;a[c+4>>2]=e|1;a[p+e>>2]=e;n=e}o=n>>>3;if(n>>>0<256){e=a[2]|0;if(!(e&1<<o)){a[2]=e|1<<o;e=48+(o<<1<<2)|0;t=48+(o<<1<<2)+8|0}else{e=a[48+(o<<1<<2)+8>>2]|0;t=48+(o<<1<<2)+8|0}a[t>>2]=c;a[e+12>>2]=c;a[c+8>>2]=e;a[c+12>>2]=48+(o<<1<<2);return}e=n>>>8;if(e)if(n>>>0>16777215)r=31;else{r=e<<((e+1048320|0)>>>16&8)<<(((e<<((e+1048320|0)>>>16&8))+520192|0)>>>16&4);r=14-(((e<<((e+1048320|0)>>>16&8))+520192|0)>>>16&4|(e+1048320|0)>>>16&8|(r+245760|0)>>>16&2)+(r<<((r+245760|0)>>>16&2)>>>15)|0;r=n>>>(r+7|0)&1|r<<1}else r=0;e=312+(r<<2)|0;a[c+28>>2]=r;a[c+20>>2]=0;a[c+16>>2]=0;t=a[3]|0;o=1<<r;t:do{if(!(t&o)){a[3]=t|o;a[e>>2]=c;a[c+24>>2]=e;a[c+12>>2]=c;a[c+8>>2]=c}else{e=a[e>>2]|0;e:do{if((a[e+4>>2]&-8|0)!=(n|0)){r=n<<((r|0)==31?0:25-(r>>>1)|0);while(1){o=e+16+(r>>>31<<2)|0;t=a[o>>2]|0;if(!t)break;if((a[t+4>>2]&-8|0)==(n|0)){e=t;break e}else{r=r<<1;e=t}}a[o>>2]=c;a[c+24>>2]=e;a[c+12>>2]=c;a[c+8>>2]=c;break t}}while(0);p=e+8|0;s=a[p>>2]|0;a[s+12>>2]=c;a[p>>2]=c;a[c+8>>2]=s;a[c+12>>2]=e;a[c+24>>2]=0}}while(0);s=(a[10]|0)+-1|0;a[10]=s;if(s|0)return;e=464;while(1){e=a[e>>2]|0;if(!e)break;else e=e+8|0}a[10]=-1;return}function $(){}function aa(t,e,o){t=t|0;e=e|0;o=o|0;var n=0,i=0,p=0;if((o|0)>=8192)return et(t|0,e|0,o|0)|0;p=t|0;i=t+o|0;if((t&3)==(e&3)){while(t&3){if(!o)return p|0;r[t>>0]=r[e>>0]|0;t=t+1|0;e=e+1|0;o=o-1|0}o=i&-4|0;n=o-64|0;while((t|0)<=(n|0)){a[t>>2]=a[e>>2];a[t+4>>2]=a[e+4>>2];a[t+8>>2]=a[e+8>>2];a[t+12>>2]=a[e+12>>2];a[t+16>>2]=a[e+16>>2];a[t+20>>2]=a[e+20>>2];a[t+24>>2]=a[e+24>>2];a[t+28>>2]=a[e+28>>2];a[t+32>>2]=a[e+32>>2];a[t+36>>2]=a[e+36>>2];a[t+40>>2]=a[e+40>>2];a[t+44>>2]=a[e+44>>2];a[t+48>>2]=a[e+48>>2];a[t+52>>2]=a[e+52>>2];a[t+56>>2]=a[e+56>>2];a[t+60>>2]=a[e+60>>2];t=t+64|0;e=e+64|0}while((t|0)<(o|0)){a[t>>2]=a[e>>2];t=t+4|0;e=e+4|0}}else{o=i-4|0;while((t|0)<(o|0)){r[t>>0]=r[e>>0]|0;r[t+1>>0]=r[e+1>>0]|0;r[t+2>>0]=r[e+2>>0]|0;r[t+3>>0]=r[e+3>>0]|0;t=t+4|0;e=e+4|0}}while((t|0)<(i|0)){r[t>>0]=r[e>>0]|0;t=t+1|0;e=e+1|0}return p|0}function ba(t,e,o){t=t|0;e=e|0;o=o|0;var n=0,i=0;n=t+o|0;e=e&255;if((o|0)>=67){while(t&3){r[t>>0]=e;t=t+1|0}i=e|e<<8|e<<16|e<<24;while((t|0)<=((n&-4)-64|0)){a[t>>2]=i;a[t+4>>2]=i;a[t+8>>2]=i;a[t+12>>2]=i;a[t+16>>2]=i;a[t+20>>2]=i;a[t+24>>2]=i;a[t+28>>2]=i;a[t+32>>2]=i;a[t+36>>2]=i;a[t+40>>2]=i;a[t+44>>2]=i;a[t+48>>2]=i;a[t+52>>2]=i;a[t+56>>2]=i;a[t+60>>2]=i;t=t+64|0}while((t|0)<(n&-4|0)){a[t>>2]=i;t=t+4|0}}while((t|0)<(n|0)){r[t>>0]=e;t=t+1|0}return n-o|0}function ca(t){t=t|0;var e=0;e=a[l>>2]|0;if((t|0)>0&(e+t|0)<(e|0)|(e+t|0)<0){q()|0;tt(12);return-1}a[l>>2]=e+t;if((e+t|0)>(Y()|0)?(X()|0)==0:0){a[l>>2]=e;tt(12);return-1}return e|0}function da(t){t=t|0;var e=0;e=u;u=u+t|0;u=u+15&-16;return e|0}function ea(t,e){t=t|0;e=e|0;if(!h){h=t;g=e}}function fa(t,e){t=t|0;e=e|0;u=t;f=e}function ga(t){t=t|0;u=t}function ha(t){t=t|0;O=t}function ia(){return O|0}function ja(){return u|0}return{_free:_,_malloc:Z,_memcpy:aa,_memset:ba,_sbrk:ca,establishStackSpace:fa,getTempRet0:ia,runPostSets:$,setTempRet0:ha,setThrew:ea,stackAlloc:da,stackRestore:ga,stackSave:ja}}(o.g,o.h,et);if(o._free=Ot._free,o._malloc=Ot._malloc,o._memcpy=Ot._memcpy,o._memset=Ot._memset,o._sbrk=Ot._sbrk,o.establishStackSpace=Ot.establishStackSpace,o.getTempRet0=Ot.getTempRet0,o.runPostSets=Ot.runPostSets,o.setTempRet0=Ot.setTempRet0,o.setThrew=Ot.setThrew,o.stackAlloc=Ot.stackAlloc,o.stackRestore=Ot.stackRestore,o.stackSave=Ot.stackSave,o.asm=Ot,vt){if(String.prototype.startsWith?!vt.startsWith(St):0!==vt.indexOf(St)){var wt=vt;vt=o.locateFile?o.locateFile(wt,q):q+wt}if(g||b){var Tt=o.readBinary(vt);ot.set(Tt,8)}else{var Wt=function(){o.readAsync(vt,kt,function(){throw"could not load memory initializer "+vt})};mt++,o.monitorRunDependencies&&o.monitorRunDependencies(mt);var kt=function(t){t.byteLength&&(t=new Uint8Array(t)),ot.set(t,8),o.memoryInitializerRequest&&delete o.memoryInitializerRequest.response,mt--,o.monitorRunDependencies&&o.monitorRunDependencies(mt),0==mt&&(null!==Ct&&(clearInterval(Ct),Ct=null),jt&&(t=jt,jt=null,t()))},Mt=ka(vt);if(Mt)kt(Mt.buffer);else if(o.memoryInitializerRequest){var At=function(){var t=o.memoryInitializerRequest,e=t.response;if(200!==t.status&&0!==t.status){if(!(e=ka(o.memoryInitializerRequestURL)))return console.warn("a problem seems to have happened with Module.memoryInitializerRequest, status: "+t.status+", retrying "+vt),void Wt();e=e.buffer}kt(e)};o.memoryInitializerRequest.response?setTimeout(At,0):o.memoryInitializerRequest.addEventListener("load",At)}else Wt()}}function cb(){function a(){if(!o.calledRun&&(o.calledRun=!0,!bt)){if(dt||(dt=!0,Fa(ft)),Fa(ht),o.onRuntimeInitialized&&o.onRuntimeInitialized(),o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;){var t=o.postRun.shift();gt.unshift(t)}Fa(gt)}}if(!(0<mt)){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)La();Fa(ut),0<mt||o.calledRun||(o.setStatus?(o.setStatus("Running..."),setTimeout(function(){setTimeout(function(){o.setStatus("")},1),a()},1)):a())}}function qa(t){throw o.onAbort&&o.onAbort(t),void 0!==t?($(t),tt(t),t=JSON.stringify(t)):t="",bt=!0,"abort("+t+"). Build with -s ASSERTIONS=1 for more info."}if(o.then=function(t){if(o.calledRun)t(o);else{var e=o.onRuntimeInitialized;o.onRuntimeInitialized=function(){e&&e(),t(o)}}return o},jt=function bb(){o.calledRun||cb(),o.calledRun||(jt=bb)},o.run=cb,o.abort=qa,o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);0<o.preInit.length;)o.preInit.pop()();function WrapperObject(){}function getCache(t){return(t||WrapperObject).c}function wrapPointer(t,e){var o=getCache(e),r=o[t];return r||((r=Object.create((e||WrapperObject).prototype)).a=t,o[t]=r)}o.noExitRuntime=!0,cb(),WrapperObject.prototype=Object.create(WrapperObject.prototype),WrapperObject.prototype.constructor=WrapperObject,WrapperObject.prototype.b=WrapperObject,WrapperObject.c={},o.WrapperObject=WrapperObject,o.getCache=getCache,o.wrapPointer=wrapPointer,o.castObject=function(t,e){return wrapPointer(t.a,e)},o.NULL=wrapPointer(0),o.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete getCache(t.b)[t.a]},o.compare=function(t,e){return t.a===e.a},o.getPointer=function(t){return t.a},o.getClass=function(t){return t.b};var Dt=0,Lt=0,xt=0,Ft=[],Bt=0;function f(){throw"cannot construct a btCollisionShape, no constructor in IDL"}function k(){this.a=btCollisionObject_btCollisionObject_0(),getCache(k)[this.a]=this}function m(){throw"cannot construct a btTypedConstraint, no constructor in IDL"}function n(){throw"cannot construct a btCollisionWorld, no constructor in IDL"}function mb(){throw"cannot construct a btConcaveShape, no constructor in IDL"}function r(t,e){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),this.a=btCapsuleShape_btCapsuleShape_2(t,e),getCache(r)[this.a]=this}function nb(){throw"cannot construct a btGImpactShapeInterface, no constructor in IDL"}function u(){throw"cannot construct a btDynamicsWorld, no constructor in IDL"}function ob(){throw"cannot construct a btTriangleMeshShape, no constructor in IDL"}function w(){this.a=btGhostObject_btGhostObject_0(),getCache(w)[this.a]=this}function pb(t,e){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),this.a=btConeShape_btConeShape_2(t,e),getCache(pb)[this.a]=this}function qb(){throw"cannot construct a btActionInterface, no constructor in IDL"}function h(t,e,o){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),this.a=void 0===t?btVector3_btVector3_0():void 0===e?btVector3_btVector3_1(t):void 0===o?btVector3_btVector3_2(t,e):btVector3_btVector3_3(t,e,o),getCache(h)[this.a]=this}function rb(){throw"cannot construct a btVehicleRaycaster, no constructor in IDL"}function x(){throw"cannot construct a btQuadWord, no constructor in IDL"}function sb(t){t&&"object"==typeof t&&(t=t.a),this.a=btCylinderShape_btCylinderShape_1(t),getCache(sb)[this.a]=this}function tb(){throw"cannot construct a btConvexShape, no constructor in IDL"}function jb(){throw"cannot construct a btDispatcher, no constructor in IDL"}function y(t,e,o,r,n){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),r&&"object"==typeof r&&(r=r.a),n&&"object"==typeof n&&(n=n.a),this.a=void 0===r?btGeneric6DofConstraint_btGeneric6DofConstraint_3(t,e,o):void 0===n?btGeneric6DofConstraint_btGeneric6DofConstraint_4(t,e,o,r):btGeneric6DofConstraint_btGeneric6DofConstraint_5(t,e,o,r,n),getCache(y)[this.a]=this}function wb(){throw"cannot construct a btStridingMeshInterface, no constructor in IDL"}function xb(){throw"cannot construct a btMotionState, no constructor in IDL"}function z(){throw"cannot construct a ConvexResultCallback, no constructor in IDL"}function yb(){throw"cannot construct a ContactResultCallback, no constructor in IDL"}function A(){throw"cannot construct a RayResultCallback, no constructor in IDL"}function zb(){throw"cannot construct a btMatrix3x3, no constructor in IDL"}function p(){throw"cannot construct a btDispatcherInfo, no constructor in IDL"}function Ab(){this.a=LayaMotionState_LayaMotionState_0(),getCache(Ab)[this.a]=this}function B(){throw"cannot construct a btWheelInfoConstructionInfo, no constructor in IDL"}function Bb(t,e){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),this.a=void 0===e?btConvexTriangleMeshShape_btConvexTriangleMeshShape_1(t):btConvexTriangleMeshShape_btConvexTriangleMeshShape_2(t,e),getCache(Bb)[this.a]=this}function lb(){throw"cannot construct a btBroadphaseInterface, no constructor in IDL"}function Cb(t){t&&"object"==typeof t&&(t=t.a),this.a=void 0===t?btDefaultCollisionConfiguration_btDefaultCollisionConfiguration_0():btDefaultCollisionConfiguration_btDefaultCollisionConfiguration_1(t),getCache(Cb)[this.a]=this}function C(t,e,o,r){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),r&&"object"==typeof r&&(r=r.a),this.a=void 0===r?btRigidBodyConstructionInfo_btRigidBodyConstructionInfo_3(t,e,o):btRigidBodyConstructionInfo_btRigidBodyConstructionInfo_4(t,e,o,r),getCache(C)[this.a]=this}function Db(){throw"cannot construct a btCollisionConfiguration, no constructor in IDL"}function ub(){this.a=btPersistentManifold_btPersistentManifold_0(),getCache(ub)[this.a]=this}function E(t){t&&"object"==typeof t&&(t=t.a),this.a=void 0===t?btCompoundShape_btCompoundShape_0():btCompoundShape_btCompoundShape_1(t),getCache(E)[this.a]=this}function F(t,e){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),this.a=ClosestConvexResultCallback_ClosestConvexResultCallback_2(t,e),getCache(F)[this.a]=this}function G(t,e){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),this.a=AllHitsRayResultCallback_AllHitsRayResultCallback_2(t,e),getCache(G)[this.a]=this}function Gb(t){t&&"object"==typeof t&&(t=t.a),this.a=btDefaultVehicleRaycaster_btDefaultVehicleRaycaster_1(t),getCache(Gb)[this.a]=this}function Hb(){this.a=btConstraintSetting_btConstraintSetting_0(),getCache(Hb)[this.a]=this}function Ib(){throw"cannot construct a LocalShapeInfo, no constructor in IDL"}function I(t){t&&"object"==typeof t&&(t=t.a),this.a=btRigidBody_btRigidBody_1(t),getCache(I)[this.a]=this}function Jb(){this.a=btDbvtBroadphase_btDbvtBroadphase_0(),getCache(Jb)[this.a]=this}function Kb(t){t&&"object"==typeof t&&(t=t.a),this.a=btCollisionDispatcher_btCollisionDispatcher_1(t),getCache(Kb)[this.a]=this}function Lb(t,e,o,r,n){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),r&&"object"==typeof r&&(r=r.a),n&&"object"==typeof n&&(n=n.a),this.a=void 0===o?btAxisSweep3_btAxisSweep3_2(t,e):void 0===r?btAxisSweep3_btAxisSweep3_3(t,e,o):void 0===n?btAxisSweep3_btAxisSweep3_4(t,e,o,r):btAxisSweep3_btAxisSweep3_5(t,e,o,r,n),getCache(Lb)[this.a]=this}function VoidPtr(){throw"cannot construct a VoidPtr, no constructor in IDL"}function J(t,e,o,r){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),r&&"object"==typeof r&&(r=r.a),this.a=void 0===o?btConeTwistConstraint_btConeTwistConstraint_2(t,e):void 0===r?btConeTwistConstraint_btConeTwistConstraint_3(t,e,o):btConeTwistConstraint_btConeTwistConstraint_4(t,e,o,r),getCache(J)[this.a]=this}function K(t,e,o,r,n,a,i){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),r&&"object"==typeof r&&(r=r.a),n&&"object"==typeof n&&(n=n.a),a&&"object"==typeof a&&(a=a.a),i&&"object"==typeof i&&(i=i.a),this.a=void 0===o?btHingeConstraint_btHingeConstraint_2(t,e):void 0===r?btHingeConstraint_btHingeConstraint_3(t,e,o):void 0===n?btHingeConstraint_btHingeConstraint_4(t,e,o,r):void 0===a?btHingeConstraint_btHingeConstraint_5(t,e,o,r,n):void 0===i?btHingeConstraint_btHingeConstraint_6(t,e,o,r,n,a):btHingeConstraint_btHingeConstraint_7(t,e,o,r,n,a,i),getCache(K)[this.a]=this}function Mb(){throw"cannot construct a JSValueAsParam, no constructor in IDL"}function Nb(t,e){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),this.a=btConeShapeZ_btConeShapeZ_2(t,e),getCache(Nb)[this.a]=this}function Ob(t,e){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),this.a=btConeShapeX_btConeShapeX_2(t,e),getCache(Ob)[this.a]=this}function Pb(t,e){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),this.a=void 0===t?btTriangleMesh_btTriangleMesh_0():void 0===e?btTriangleMesh_btTriangleMesh_1(t):btTriangleMesh_btTriangleMesh_2(t,e),getCache(Pb)[this.a]=this}function Qb(){this.a=btConvexHullShape_btConvexHullShape_0(),getCache(Qb)[this.a]=this}function L(){this.a=btVehicleTuning_btVehicleTuning_0(),getCache(L)[this.a]=this}function Rb(){throw"cannot construct a btCollisionObjectWrapper, no constructor in IDL"}function Sb(t){t&&"object"==typeof t&&(t=t.a),this.a=btGImpactMeshShape_btGImpactMeshShape_1(t),getCache(Sb)[this.a]=this}function Tb(t,e){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),this.a=void 0===t?btDefaultMotionState_btDefaultMotionState_0():void 0===e?btDefaultMotionState_btDefaultMotionState_1(t):btDefaultMotionState_btDefaultMotionState_2(t,e),getCache(Tb)[this.a]=this}function M(t){t&&"object"==typeof t&&(t=t.a),this.a=btWheelInfo_btWheelInfo_1(t),getCache(M)[this.a]=this}function O(t,e,o,r){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),r&&"object"==typeof r&&(r=r.a),this.a=void 0===t?btVector4_btVector4_0():void 0===e?btVector4_btVector4_1(t):void 0===o?btVector4_btVector4_2(t,e):void 0===r?btVector4_btVector4_3(t,e,o):btVector4_btVector4_4(t,e,o,r),getCache(O)[this.a]=this}function Ub(){throw"cannot construct a JsValue, no constructor in IDL"}function Vb(){this.a=btDefaultCollisionConstructionInfo_btDefaultCollisionConstructionInfo_0(),getCache(Vb)[this.a]=this}function Wb(){throw"cannot construct a btVehicleRaycasterResult, no constructor in IDL"}function Xb(){throw"cannot construct a btConstraintSolver, no constructor in IDL"}function P(t,e,o){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),this.a=btRaycastVehicle_btRaycastVehicle_3(t,e,o),getCache(P)[this.a]=this}function H(){throw"cannot construct a tVector3Array, no constructor in IDL"}function Yb(t){t&&"object"==typeof t&&(t=t.a),this.a=btCylinderShapeX_btCylinderShapeX_1(t),getCache(Yb)[this.a]=this}function Zb(t){t&&"object"==typeof t&&(t=t.a),this.a=btCylinderShapeZ_btCylinderShapeZ_1(t),getCache(Zb)[this.a]=this}function $b(){this.a=btSequentialImpulseConstraintSolver_btSequentialImpulseConstraintSolver_0(),getCache($b)[this.a]=this}function N(){throw"cannot construct a RaycastInfo, no constructor in IDL"}function ac(t,e,o,r,n,a,i,p,c){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),r&&"object"==typeof r&&(r=r.a),n&&"object"==typeof n&&(n=n.a),a&&"object"==typeof a&&(a=a.a),i&&"object"==typeof i&&(i=i.a),p&&"object"==typeof p&&(p=p.a),c&&"object"==typeof c&&(c=c.a),this.a=btHeightfieldTerrainShape_btHeightfieldTerrainShape_9(t,e,o,r,n,a,i,p,c),getCache(ac)[this.a]=this}function Q(t,e,o,r){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),r&&"object"==typeof r&&(r=r.a),this.a=btDiscreteDynamicsWorld_btDiscreteDynamicsWorld_4(t,e,o,r),getCache(Q)[this.a]=this}function bc(){this.a=btGhostPairCallback_btGhostPairCallback_0(),getCache(bc)[this.a]=this}function cc(){throw"cannot construct a btOverlappingPairCallback, no constructor in IDL"}function R(t,e,o,r){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),r&&"object"==typeof r&&(r=r.a),this.a=btKinematicCharacterController_btKinematicCharacterController_4(t,e,o,r),getCache(R)[this.a]=this}function dc(t,e){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),this.a=btStaticPlaneShape_btStaticPlaneShape_2(t,e),getCache(dc)[this.a]=this}function kb(){throw"cannot construct a btOverlappingPairCache, no constructor in IDL"}function Eb(){throw"cannot construct a tBtCollisionObjectArray, no constructor in IDL"}function ec(t,e,o,r){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),r&&"object"==typeof r&&(r=r.a),this.a=btFixedConstraint_btFixedConstraint_4(t,e,o,r),getCache(ec)[this.a]=this}function l(t,e){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),this.a=void 0===t?btTransform_btTransform_0():void 0===e?btTransform_btTransform_1(t):btTransform_btTransform_2(t,e),getCache(l)[this.a]=this}function U(t,e){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),this.a=ClosestRayResultCallback_ClosestRayResultCallback_2(t,e),getCache(U)[this.a]=this}function V(t,e){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),this.a=AllConvexResultCallback_AllConvexResultCallback_2(t,e),getCache(V)[this.a]=this}function fc(){this.a=ConcreteContactResultCallback_ConcreteContactResultCallback_0(),getCache(fc)[this.a]=this}function hc(t,e,o){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),this.a=void 0===o?btBvhTriangleMeshShape_btBvhTriangleMeshShape_2(t,e):btBvhTriangleMeshShape_btBvhTriangleMeshShape_3(t,e,o),getCache(hc)[this.a]=this}function W(t,e,o,r,n){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),r&&"object"==typeof r&&(r=r.a),n&&"object"==typeof n&&(n=n.a),this.a=void 0===r?btSliderConstraint_btSliderConstraint_3(t,e,o):void 0===n?btSliderConstraint_btSliderConstraint_4(t,e,o,r):btSliderConstraint_btSliderConstraint_5(t,e,o,r,n),getCache(W)[this.a]=this}function S(){this.a=btPairCachingGhostObject_btPairCachingGhostObject_0(),getCache(S)[this.a]=this}function D(){throw"cannot construct a btManifoldPoint, no constructor in IDL"}function X(t,e,o,r){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),r&&"object"==typeof r&&(r=r.a),this.a=void 0===o?btPoint2PointConstraint_btPoint2PointConstraint_2(t,e):void 0===r?btPoint2PointConstraint_btPoint2PointConstraint_3(t,e,o):btPoint2PointConstraint_btPoint2PointConstraint_4(t,e,o,r),getCache(X)[this.a]=this}function ib(){throw"cannot construct a btBroadphaseProxy, no constructor in IDL"}function Y(t,e,o,r,n){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),r&&"object"==typeof r&&(r=r.a),n&&"object"==typeof n&&(n=n.a),this.a=void 0===r?btGeneric6DofSpringConstraint_btGeneric6DofSpringConstraint_3(t,e,o):void 0===n?btGeneric6DofSpringConstraint_btGeneric6DofSpringConstraint_4(t,e,o,r):btGeneric6DofSpringConstraint_btGeneric6DofSpringConstraint_5(t,e,o,r,n),getCache(Y)[this.a]=this}function ic(t){t&&"object"==typeof t&&(t=t.a),this.a=btBoxShape_btBoxShape_1(t),getCache(ic)[this.a]=this}function jc(t,e){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),this.a=btCapsuleShapeX_btCapsuleShapeX_2(t,e),getCache(jc)[this.a]=this}function T(t,e,o,r){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),r&&"object"==typeof r&&(r=r.a),this.a=btQuaternion_btQuaternion_4(t,e,o,r),getCache(T)[this.a]=this}function kc(t,e){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),this.a=btCapsuleShapeZ_btCapsuleShapeZ_2(t,e),getCache(kc)[this.a]=this}function v(){throw"cannot construct a btContactSolverInfo, no constructor in IDL"}function Fb(){throw"cannot construct a tScalarArray, no constructor in IDL"}function lc(t){t&&"object"==typeof t&&(t=t.a),this.a=btSphereShape_btSphereShape_1(t),getCache(lc)[this.a]=this}function Z(t,e,o,r,n){t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),r&&"object"==typeof r&&(r=r.a),n&&"object"==typeof n&&(n=n.a),this.a=LocalConvexResult_LocalConvexResult_5(t,e,o,r,n),getCache(Z)[this.a]=this}return f.prototype=Object.create(WrapperObject.prototype),f.prototype.constructor=f,f.prototype.b=f,f.c={},o.btCollisionShape=f,f.prototype.setLocalScaling=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCollisionShape_setLocalScaling_1(e,t)},f.prototype.getLocalScaling=function(){return wrapPointer(btCollisionShape_getLocalScaling_0(this.a),h)},f.prototype.calculateLocalInertia=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btCollisionShape_calculateLocalInertia_2(o,t,e)},f.prototype.setMargin=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCollisionShape_setMargin_1(e,t)},f.prototype.getMargin=function(){return btCollisionShape_getMargin_0(this.a)},f.prototype.__destroy__=function(){btCollisionShape___destroy___0(this.a)},k.prototype=Object.create(WrapperObject.prototype),k.prototype.constructor=k,k.prototype.b=k,k.c={},o.btCollisionObject=k,k.prototype.setAnisotropicFriction=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btCollisionObject_setAnisotropicFriction_2(o,t,e)},k.prototype.getCollisionShape=function(){return wrapPointer(btCollisionObject_getCollisionShape_0(this.a),f)},k.prototype.setContactProcessingThreshold=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCollisionObject_setContactProcessingThreshold_1(e,t)},k.prototype.setActivationState=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCollisionObject_setActivationState_1(e,t)},k.prototype.forceActivationState=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCollisionObject_forceActivationState_1(e,t)},k.prototype.activate=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),void 0===t?btCollisionObject_activate_0(e):btCollisionObject_activate_1(e,t)},k.prototype.isActive=function(){return!!btCollisionObject_isActive_0(this.a)},k.prototype.isKinematicObject=function(){return!!btCollisionObject_isKinematicObject_0(this.a)},k.prototype.isStaticObject=function(){return!!btCollisionObject_isStaticObject_0(this.a)},k.prototype.isStaticOrKinematicObject=function(){return!!btCollisionObject_isStaticOrKinematicObject_0(this.a)},k.prototype.getRestitution=function(){return btCollisionObject_getRestitution_0(this.a)},k.prototype.setRestitution=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCollisionObject_setRestitution_1(e,t)},k.prototype.getFriction=function(){return btCollisionObject_getFriction_0(this.a)},k.prototype.setFriction=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCollisionObject_setFriction_1(e,t)},k.prototype.getRollingFriction=function(){return btCollisionObject_getRollingFriction_0(this.a)},k.prototype.setRollingFriction=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCollisionObject_setRollingFriction_1(e,t)},k.prototype.getCollisionFlags=function(){return btCollisionObject_getCollisionFlags_0(this.a)},k.prototype.setCollisionFlags=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCollisionObject_setCollisionFlags_1(e,t)},k.prototype.getWorldTransform=function(){return wrapPointer(btCollisionObject_getWorldTransform_0(this.a),l)},k.prototype.setWorldTransform=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCollisionObject_setWorldTransform_1(e,t)},k.prototype.setCollisionShape=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCollisionObject_setCollisionShape_1(e,t)},k.prototype.getCcdMotionThreshold=function(){return btCollisionObject_getCcdMotionThreshold_0(this.a)},k.prototype.setCcdMotionThreshold=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCollisionObject_setCcdMotionThreshold_1(e,t)},k.prototype.getCcdSweptSphereRadius=function(){return btCollisionObject_getCcdSweptSphereRadius_0(this.a)},k.prototype.setCcdSweptSphereRadius=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCollisionObject_setCcdSweptSphereRadius_1(e,t)},k.prototype.getUserIndex=function(){return btCollisionObject_getUserIndex_0(this.a)},k.prototype.setUserIndex=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCollisionObject_setUserIndex_1(e,t)},k.prototype.getUserPointer=function(){return wrapPointer(btCollisionObject_getUserPointer_0(this.a),VoidPtr)},k.prototype.setUserPointer=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCollisionObject_setUserPointer_1(e,t)},k.prototype.getInterpolationAngularVelocity=function(){return wrapPointer(btCollisionObject_getInterpolationAngularVelocity_0(this.a),h)},k.prototype.setInterpolationAngularVelocity=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCollisionObject_setInterpolationAngularVelocity_1(e,t)},k.prototype.getInterpolationLinearVelocity=function(){return wrapPointer(btCollisionObject_getInterpolationLinearVelocity_0(this.a),h)},k.prototype.setInterpolationLinearVelocity=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCollisionObject_setInterpolationLinearVelocity_1(e,t)},k.prototype.getBroadphaseHandle=function(){return wrapPointer(btCollisionObject_getBroadphaseHandle_0(this.a),ib)},k.prototype.getActivationState=function(){return btCollisionObject_getActivationState_0(this.a)},k.prototype.__destroy__=function(){btCollisionObject___destroy___0(this.a)},m.prototype=Object.create(WrapperObject.prototype),m.prototype.constructor=m,m.prototype.b=m,m.c={},o.btTypedConstraint=m,m.prototype.enableFeedback=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btTypedConstraint_enableFeedback_1(e,t)},m.prototype.getBreakingImpulseThreshold=function(){return btTypedConstraint_getBreakingImpulseThreshold_0(this.a)},m.prototype.setBreakingImpulseThreshold=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btTypedConstraint_setBreakingImpulseThreshold_1(e,t)},m.prototype.getParam=function(t,e){var o=this.a;return t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btTypedConstraint_getParam_2(o,t,e)},m.prototype.setParam=function(t,e,o){var r=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),btTypedConstraint_setParam_3(r,t,e,o)},m.prototype.__destroy__=function(){btTypedConstraint___destroy___0(this.a)},n.prototype=Object.create(WrapperObject.prototype),n.prototype.constructor=n,n.prototype.b=n,n.c={},o.btCollisionWorld=n,n.prototype.getDispatcher=function(){return wrapPointer(btCollisionWorld_getDispatcher_0(this.a),jb)},n.prototype.rayTest=function(t,e,o){var r=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),btCollisionWorld_rayTest_3(r,t,e,o)},n.prototype.getPairCache=function(){return wrapPointer(btCollisionWorld_getPairCache_0(this.a),kb)},n.prototype.getDispatchInfo=function(){return wrapPointer(btCollisionWorld_getDispatchInfo_0(this.a),p)},n.prototype.addCollisionObject=function(t,e,o){var r=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),void 0===e?btCollisionWorld_addCollisionObject_1(r,t):void 0===o?btCollisionWorld_addCollisionObject_2(r,t,e):btCollisionWorld_addCollisionObject_3(r,t,e,o)},n.prototype.removeCollisionObject=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCollisionWorld_removeCollisionObject_1(e,t)},n.prototype.getBroadphase=function(){return wrapPointer(btCollisionWorld_getBroadphase_0(this.a),lb)},n.prototype.convexSweepTest=function(t,e,o,r,n){var a=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),r&&"object"==typeof r&&(r=r.a),n&&"object"==typeof n&&(n=n.a),btCollisionWorld_convexSweepTest_5(a,t,e,o,r,n)},n.prototype.contactPairTest=function(t,e,o){var r=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),btCollisionWorld_contactPairTest_3(r,t,e,o)},n.prototype.contactTest=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btCollisionWorld_contactTest_2(o,t,e)},n.prototype.updateSingleAabb=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCollisionWorld_updateSingleAabb_1(e,t)},n.prototype.__destroy__=function(){btCollisionWorld___destroy___0(this.a)},mb.prototype=Object.create(f.prototype),mb.prototype.constructor=mb,mb.prototype.b=mb,mb.c={},o.btConcaveShape=mb,mb.prototype.setLocalScaling=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btConcaveShape_setLocalScaling_1(e,t)},mb.prototype.getLocalScaling=function(){return wrapPointer(btConcaveShape_getLocalScaling_0(this.a),h)},mb.prototype.calculateLocalInertia=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btConcaveShape_calculateLocalInertia_2(o,t,e)},mb.prototype.__destroy__=function(){btConcaveShape___destroy___0(this.a)},r.prototype=Object.create(f.prototype),r.prototype.constructor=r,r.prototype.b=r,r.c={},o.btCapsuleShape=r,r.prototype.setMargin=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCapsuleShape_setMargin_1(e,t)},r.prototype.getMargin=function(){return btCapsuleShape_getMargin_0(this.a)},r.prototype.getUpAxis=function(){return btCapsuleShape_getUpAxis_0(this.a)},r.prototype.getRadius=function(){return btCapsuleShape_getRadius_0(this.a)},r.prototype.getHalfHeight=function(){return btCapsuleShape_getHalfHeight_0(this.a)},r.prototype.setLocalScaling=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCapsuleShape_setLocalScaling_1(e,t)},r.prototype.getLocalScaling=function(){return wrapPointer(btCapsuleShape_getLocalScaling_0(this.a),h)},r.prototype.calculateLocalInertia=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btCapsuleShape_calculateLocalInertia_2(o,t,e)},r.prototype.__destroy__=function(){btCapsuleShape___destroy___0(this.a)},nb.prototype=Object.create(mb.prototype),nb.prototype.constructor=nb,nb.prototype.b=nb,nb.c={},o.btGImpactShapeInterface=nb,nb.prototype.updateBound=function(){btGImpactShapeInterface_updateBound_0(this.a)},nb.prototype.setLocalScaling=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGImpactShapeInterface_setLocalScaling_1(e,t)},nb.prototype.getLocalScaling=function(){return wrapPointer(btGImpactShapeInterface_getLocalScaling_0(this.a),h)},nb.prototype.calculateLocalInertia=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btGImpactShapeInterface_calculateLocalInertia_2(o,t,e)},nb.prototype.__destroy__=function(){btGImpactShapeInterface___destroy___0(this.a)},u.prototype=Object.create(n.prototype),u.prototype.constructor=u,u.prototype.b=u,u.c={},o.btDynamicsWorld=u,u.prototype.addAction=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btDynamicsWorld_addAction_1(e,t)},u.prototype.removeAction=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btDynamicsWorld_removeAction_1(e,t)},u.prototype.getSolverInfo=function(){return wrapPointer(btDynamicsWorld_getSolverInfo_0(this.a),v)},u.prototype.getDispatcher=function(){return wrapPointer(btDynamicsWorld_getDispatcher_0(this.a),jb)},u.prototype.rayTest=function(t,e,o){var r=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),btDynamicsWorld_rayTest_3(r,t,e,o)},u.prototype.getPairCache=function(){return wrapPointer(btDynamicsWorld_getPairCache_0(this.a),kb)},u.prototype.getDispatchInfo=function(){return wrapPointer(btDynamicsWorld_getDispatchInfo_0(this.a),p)},u.prototype.addCollisionObject=function(t,e,o){var r=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),void 0===e?btDynamicsWorld_addCollisionObject_1(r,t):void 0===o?btDynamicsWorld_addCollisionObject_2(r,t,e):btDynamicsWorld_addCollisionObject_3(r,t,e,o)},u.prototype.removeCollisionObject=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btDynamicsWorld_removeCollisionObject_1(e,t)},u.prototype.getBroadphase=function(){return wrapPointer(btDynamicsWorld_getBroadphase_0(this.a),lb)},u.prototype.convexSweepTest=function(t,e,o,r,n){var a=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),r&&"object"==typeof r&&(r=r.a),n&&"object"==typeof n&&(n=n.a),btDynamicsWorld_convexSweepTest_5(a,t,e,o,r,n)},u.prototype.contactPairTest=function(t,e,o){var r=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),btDynamicsWorld_contactPairTest_3(r,t,e,o)},u.prototype.contactTest=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btDynamicsWorld_contactTest_2(o,t,e)},u.prototype.updateSingleAabb=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btDynamicsWorld_updateSingleAabb_1(e,t)},u.prototype.__destroy__=function(){btDynamicsWorld___destroy___0(this.a)},ob.prototype=Object.create(mb.prototype),ob.prototype.constructor=ob,ob.prototype.b=ob,ob.c={},o.btTriangleMeshShape=ob,ob.prototype.setLocalScaling=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btTriangleMeshShape_setLocalScaling_1(e,t)},ob.prototype.getLocalScaling=function(){return wrapPointer(btTriangleMeshShape_getLocalScaling_0(this.a),h)},ob.prototype.calculateLocalInertia=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btTriangleMeshShape_calculateLocalInertia_2(o,t,e)},ob.prototype.__destroy__=function(){btTriangleMeshShape___destroy___0(this.a)},w.prototype=Object.create(k.prototype),w.prototype.constructor=w,w.prototype.b=w,w.c={},o.btGhostObject=w,w.prototype.getNumOverlappingObjects=function(){return btGhostObject_getNumOverlappingObjects_0(this.a)},w.prototype.getOverlappingObject=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),wrapPointer(btGhostObject_getOverlappingObject_1(e,t),k)},w.prototype.setAnisotropicFriction=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btGhostObject_setAnisotropicFriction_2(o,t,e)},w.prototype.getCollisionShape=function(){return wrapPointer(btGhostObject_getCollisionShape_0(this.a),f)},w.prototype.setContactProcessingThreshold=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGhostObject_setContactProcessingThreshold_1(e,t)},w.prototype.setActivationState=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGhostObject_setActivationState_1(e,t)},w.prototype.forceActivationState=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGhostObject_forceActivationState_1(e,t)},w.prototype.activate=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),void 0===t?btGhostObject_activate_0(e):btGhostObject_activate_1(e,t)},w.prototype.isActive=function(){return!!btGhostObject_isActive_0(this.a)},w.prototype.isKinematicObject=function(){return!!btGhostObject_isKinematicObject_0(this.a)},w.prototype.isStaticObject=function(){return!!btGhostObject_isStaticObject_0(this.a)},w.prototype.isStaticOrKinematicObject=function(){return!!btGhostObject_isStaticOrKinematicObject_0(this.a)},w.prototype.getRestitution=function(){return btGhostObject_getRestitution_0(this.a)},w.prototype.setRestitution=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGhostObject_setRestitution_1(e,t)},w.prototype.getFriction=function(){return btGhostObject_getFriction_0(this.a)},w.prototype.setFriction=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGhostObject_setFriction_1(e,t)},w.prototype.getRollingFriction=function(){return btGhostObject_getRollingFriction_0(this.a)},w.prototype.setRollingFriction=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGhostObject_setRollingFriction_1(e,t)},w.prototype.getCollisionFlags=function(){return btGhostObject_getCollisionFlags_0(this.a)},w.prototype.setCollisionFlags=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGhostObject_setCollisionFlags_1(e,t)},w.prototype.getWorldTransform=function(){return wrapPointer(btGhostObject_getWorldTransform_0(this.a),l)},w.prototype.setWorldTransform=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGhostObject_setWorldTransform_1(e,t)},w.prototype.setCollisionShape=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGhostObject_setCollisionShape_1(e,t)},w.prototype.getCcdMotionThreshold=function(){return btGhostObject_getCcdMotionThreshold_0(this.a)},w.prototype.setCcdMotionThreshold=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGhostObject_setCcdMotionThreshold_1(e,t)},w.prototype.getCcdSweptSphereRadius=function(){return btGhostObject_getCcdSweptSphereRadius_0(this.a)},w.prototype.setCcdSweptSphereRadius=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGhostObject_setCcdSweptSphereRadius_1(e,t)},w.prototype.getUserIndex=function(){return btGhostObject_getUserIndex_0(this.a)},w.prototype.setUserIndex=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGhostObject_setUserIndex_1(e,t)},w.prototype.getUserPointer=function(){return wrapPointer(btGhostObject_getUserPointer_0(this.a),VoidPtr)},w.prototype.setUserPointer=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGhostObject_setUserPointer_1(e,t)},w.prototype.getInterpolationAngularVelocity=function(){return wrapPointer(btGhostObject_getInterpolationAngularVelocity_0(this.a),h)},w.prototype.setInterpolationAngularVelocity=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGhostObject_setInterpolationAngularVelocity_1(e,t)},w.prototype.getInterpolationLinearVelocity=function(){return wrapPointer(btGhostObject_getInterpolationLinearVelocity_0(this.a),h)},w.prototype.setInterpolationLinearVelocity=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGhostObject_setInterpolationLinearVelocity_1(e,t)},w.prototype.getBroadphaseHandle=function(){return wrapPointer(btGhostObject_getBroadphaseHandle_0(this.a),ib)},w.prototype.getActivationState=function(){return btGhostObject_getActivationState_0(this.a)},w.prototype.__destroy__=function(){btGhostObject___destroy___0(this.a)},pb.prototype=Object.create(f.prototype),pb.prototype.constructor=pb,pb.prototype.b=pb,pb.c={},o.btConeShape=pb,pb.prototype.setLocalScaling=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btConeShape_setLocalScaling_1(e,t)},pb.prototype.getLocalScaling=function(){return wrapPointer(btConeShape_getLocalScaling_0(this.a),h)},pb.prototype.calculateLocalInertia=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btConeShape_calculateLocalInertia_2(o,t,e)},pb.prototype.__destroy__=function(){btConeShape___destroy___0(this.a)},qb.prototype=Object.create(WrapperObject.prototype),qb.prototype.constructor=qb,qb.prototype.b=qb,qb.c={},o.btActionInterface=qb,qb.prototype.updateAction=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btActionInterface_updateAction_2(o,t,e)},qb.prototype.__destroy__=function(){btActionInterface___destroy___0(this.a)},h.prototype=Object.create(WrapperObject.prototype),h.prototype.constructor=h,h.prototype.b=h,h.c={},o.btVector3=h,h.prototype.length=h.prototype.length=function(){return btVector3_length_0(this.a)},h.prototype.x=h.prototype.x=function(){return btVector3_x_0(this.a)},h.prototype.y=h.prototype.y=function(){return btVector3_y_0(this.a)},h.prototype.z=h.prototype.z=function(){return btVector3_z_0(this.a)},h.prototype.setX=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btVector3_setX_1(e,t)},h.prototype.setY=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btVector3_setY_1(e,t)},h.prototype.setZ=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btVector3_setZ_1(e,t)},h.prototype.setValue=function(t,e,o){var r=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),btVector3_setValue_3(r,t,e,o)},h.prototype.normalize=h.prototype.normalize=function(){btVector3_normalize_0(this.a)},h.prototype.rotate=h.prototype.rotate=function(t,e){var o=this.a;return t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),wrapPointer(btVector3_rotate_2(o,t,e),h)},h.prototype.dot=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),btVector3_dot_1(e,t)},h.prototype.op_mul=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),wrapPointer(btVector3_op_mul_1(e,t),h)},h.prototype.op_add=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),wrapPointer(btVector3_op_add_1(e,t),h)},h.prototype.op_sub=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),wrapPointer(btVector3_op_sub_1(e,t),h)},h.prototype.__destroy__=function(){btVector3___destroy___0(this.a)},rb.prototype=Object.create(WrapperObject.prototype),rb.prototype.constructor=rb,rb.prototype.b=rb,rb.c={},o.btVehicleRaycaster=rb,rb.prototype.castRay=function(t,e,o){var r=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),btVehicleRaycaster_castRay_3(r,t,e,o)},rb.prototype.__destroy__=function(){btVehicleRaycaster___destroy___0(this.a)},x.prototype=Object.create(WrapperObject.prototype),x.prototype.constructor=x,x.prototype.b=x,x.c={},o.btQuadWord=x,x.prototype.x=x.prototype.x=function(){return btQuadWord_x_0(this.a)},x.prototype.y=x.prototype.y=function(){return btQuadWord_y_0(this.a)},x.prototype.z=x.prototype.z=function(){return btQuadWord_z_0(this.a)},x.prototype.w=function(){return btQuadWord_w_0(this.a)},x.prototype.setX=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btQuadWord_setX_1(e,t)},x.prototype.setY=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btQuadWord_setY_1(e,t)},x.prototype.setZ=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btQuadWord_setZ_1(e,t)},x.prototype.setW=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btQuadWord_setW_1(e,t)},x.prototype.__destroy__=function(){btQuadWord___destroy___0(this.a)},sb.prototype=Object.create(f.prototype),sb.prototype.constructor=sb,sb.prototype.b=sb,sb.c={},o.btCylinderShape=sb,sb.prototype.setMargin=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCylinderShape_setMargin_1(e,t)},sb.prototype.getMargin=function(){return btCylinderShape_getMargin_0(this.a)},sb.prototype.setLocalScaling=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCylinderShape_setLocalScaling_1(e,t)},sb.prototype.getLocalScaling=function(){return wrapPointer(btCylinderShape_getLocalScaling_0(this.a),h)},sb.prototype.calculateLocalInertia=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btCylinderShape_calculateLocalInertia_2(o,t,e)},sb.prototype.__destroy__=function(){btCylinderShape___destroy___0(this.a)},tb.prototype=Object.create(f.prototype),tb.prototype.constructor=tb,tb.prototype.b=tb,tb.c={},o.btConvexShape=tb,tb.prototype.setLocalScaling=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btConvexShape_setLocalScaling_1(e,t)},tb.prototype.getLocalScaling=function(){return wrapPointer(btConvexShape_getLocalScaling_0(this.a),h)},tb.prototype.calculateLocalInertia=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btConvexShape_calculateLocalInertia_2(o,t,e)},tb.prototype.setMargin=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btConvexShape_setMargin_1(e,t)},tb.prototype.getMargin=function(){return btConvexShape_getMargin_0(this.a)},tb.prototype.__destroy__=function(){btConvexShape___destroy___0(this.a)},jb.prototype=Object.create(WrapperObject.prototype),jb.prototype.constructor=jb,jb.prototype.b=jb,jb.c={},o.btDispatcher=jb,jb.prototype.getNumManifolds=function(){return btDispatcher_getNumManifolds_0(this.a)},jb.prototype.getManifoldByIndexInternal=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),wrapPointer(btDispatcher_getManifoldByIndexInternal_1(e,t),ub)},jb.prototype.__destroy__=function(){btDispatcher___destroy___0(this.a)},y.prototype=Object.create(m.prototype),y.prototype.constructor=y,y.prototype.b=y,y.c={},o.btGeneric6DofConstraint=y,y.prototype.setLinearLowerLimit=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGeneric6DofConstraint_setLinearLowerLimit_1(e,t)},y.prototype.setLinearUpperLimit=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGeneric6DofConstraint_setLinearUpperLimit_1(e,t)},y.prototype.setAngularLowerLimit=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGeneric6DofConstraint_setAngularLowerLimit_1(e,t)},y.prototype.setAngularUpperLimit=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGeneric6DofConstraint_setAngularUpperLimit_1(e,t)},y.prototype.getFrameOffsetA=function(){return wrapPointer(btGeneric6DofConstraint_getFrameOffsetA_0(this.a),l)},y.prototype.enableFeedback=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGeneric6DofConstraint_enableFeedback_1(e,t)},y.prototype.getBreakingImpulseThreshold=function(){return btGeneric6DofConstraint_getBreakingImpulseThreshold_0(this.a)},y.prototype.setBreakingImpulseThreshold=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGeneric6DofConstraint_setBreakingImpulseThreshold_1(e,t)},y.prototype.getParam=function(t,e){var o=this.a;return t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btGeneric6DofConstraint_getParam_2(o,t,e)},y.prototype.setParam=function(t,e,o){var r=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),btGeneric6DofConstraint_setParam_3(r,t,e,o)},y.prototype.__destroy__=function(){btGeneric6DofConstraint___destroy___0(this.a)},wb.prototype=Object.create(WrapperObject.prototype),wb.prototype.constructor=wb,wb.prototype.b=wb,wb.c={},o.btStridingMeshInterface=wb,wb.prototype.__destroy__=function(){btStridingMeshInterface___destroy___0(this.a)},xb.prototype=Object.create(WrapperObject.prototype),xb.prototype.constructor=xb,xb.prototype.b=xb,xb.c={},o.btMotionState=xb,xb.prototype.getWorldTransform=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btMotionState_getWorldTransform_1(e,t)},xb.prototype.setWorldTransform=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btMotionState_setWorldTransform_1(e,t)},xb.prototype.__destroy__=function(){btMotionState___destroy___0(this.a)},z.prototype=Object.create(WrapperObject.prototype),z.prototype.constructor=z,z.prototype.b=z,z.c={},o.ConvexResultCallback=z,z.prototype.hasHit=function(){return!!ConvexResultCallback_hasHit_0(this.a)},z.prototype.get_m_collisionFilterGroup=function(){return ConvexResultCallback_get_m_collisionFilterGroup_0(this.a)},z.prototype.set_m_collisionFilterGroup=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),ConvexResultCallback_set_m_collisionFilterGroup_1(e,t)},z.prototype.get_m_collisionFilterMask=function(){return ConvexResultCallback_get_m_collisionFilterMask_0(this.a)},z.prototype.set_m_collisionFilterMask=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),ConvexResultCallback_set_m_collisionFilterMask_1(e,t)},z.prototype.get_m_closestHitFraction=function(){return ConvexResultCallback_get_m_closestHitFraction_0(this.a)},z.prototype.set_m_closestHitFraction=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),ConvexResultCallback_set_m_closestHitFraction_1(e,t)},z.prototype.__destroy__=function(){ConvexResultCallback___destroy___0(this.a)},yb.prototype=Object.create(WrapperObject.prototype),yb.prototype.constructor=yb,yb.prototype.b=yb,yb.c={},o.ContactResultCallback=yb,yb.prototype.addSingleResult=function(t,e,o,r,n,a,i){var p=this.a;return t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),r&&"object"==typeof r&&(r=r.a),n&&"object"==typeof n&&(n=n.a),a&&"object"==typeof a&&(a=a.a),i&&"object"==typeof i&&(i=i.a),ContactResultCallback_addSingleResult_7(p,t,e,o,r,n,a,i)},yb.prototype.__destroy__=function(){ContactResultCallback___destroy___0(this.a)},A.prototype=Object.create(WrapperObject.prototype),A.prototype.constructor=A,A.prototype.b=A,A.c={},o.RayResultCallback=A,A.prototype.hasHit=function(){return!!RayResultCallback_hasHit_0(this.a)},A.prototype.get_m_collisionFilterGroup=function(){return RayResultCallback_get_m_collisionFilterGroup_0(this.a)},A.prototype.set_m_collisionFilterGroup=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),RayResultCallback_set_m_collisionFilterGroup_1(e,t)},A.prototype.get_m_collisionFilterMask=function(){return RayResultCallback_get_m_collisionFilterMask_0(this.a)},A.prototype.set_m_collisionFilterMask=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),RayResultCallback_set_m_collisionFilterMask_1(e,t)},A.prototype.get_m_closestHitFraction=function(){return RayResultCallback_get_m_closestHitFraction_0(this.a)},A.prototype.set_m_closestHitFraction=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),RayResultCallback_set_m_closestHitFraction_1(e,t)},A.prototype.get_m_collisionObject=function(){return wrapPointer(RayResultCallback_get_m_collisionObject_0(this.a),k)},A.prototype.set_m_collisionObject=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),RayResultCallback_set_m_collisionObject_1(e,t)},A.prototype.__destroy__=function(){RayResultCallback___destroy___0(this.a)},zb.prototype=Object.create(WrapperObject.prototype),zb.prototype.constructor=zb,zb.prototype.b=zb,zb.c={},o.btMatrix3x3=zb,zb.prototype.setEulerZYX=function(t,e,o){var r=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),btMatrix3x3_setEulerZYX_3(r,t,e,o)},zb.prototype.getRotation=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btMatrix3x3_getRotation_1(e,t)},zb.prototype.getRow=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),wrapPointer(btMatrix3x3_getRow_1(e,t),h)},zb.prototype.__destroy__=function(){btMatrix3x3___destroy___0(this.a)},p.prototype=Object.create(WrapperObject.prototype),p.prototype.constructor=p,p.prototype.b=p,p.c={},o.btDispatcherInfo=p,p.prototype.get_m_timeStep=function(){return btDispatcherInfo_get_m_timeStep_0(this.a)},p.prototype.set_m_timeStep=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btDispatcherInfo_set_m_timeStep_1(e,t)},p.prototype.get_m_stepCount=function(){return btDispatcherInfo_get_m_stepCount_0(this.a)},p.prototype.set_m_stepCount=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btDispatcherInfo_set_m_stepCount_1(e,t)},p.prototype.get_m_dispatchFunc=function(){return btDispatcherInfo_get_m_dispatchFunc_0(this.a)},p.prototype.set_m_dispatchFunc=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btDispatcherInfo_set_m_dispatchFunc_1(e,t)},p.prototype.get_m_timeOfImpact=function(){return btDispatcherInfo_get_m_timeOfImpact_0(this.a)},p.prototype.set_m_timeOfImpact=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btDispatcherInfo_set_m_timeOfImpact_1(e,t)},p.prototype.get_m_useContinuous=function(){return!!btDispatcherInfo_get_m_useContinuous_0(this.a)},p.prototype.set_m_useContinuous=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btDispatcherInfo_set_m_useContinuous_1(e,t)},p.prototype.get_m_enableSatConvex=function(){return!!btDispatcherInfo_get_m_enableSatConvex_0(this.a)},p.prototype.set_m_enableSatConvex=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btDispatcherInfo_set_m_enableSatConvex_1(e,t)},p.prototype.get_m_enableSPU=function(){return!!btDispatcherInfo_get_m_enableSPU_0(this.a)},p.prototype.set_m_enableSPU=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btDispatcherInfo_set_m_enableSPU_1(e,t)},p.prototype.get_m_useEpa=function(){return!!btDispatcherInfo_get_m_useEpa_0(this.a)},p.prototype.set_m_useEpa=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btDispatcherInfo_set_m_useEpa_1(e,t)},p.prototype.get_m_allowedCcdPenetration=function(){return btDispatcherInfo_get_m_allowedCcdPenetration_0(this.a)},p.prototype.set_m_allowedCcdPenetration=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btDispatcherInfo_set_m_allowedCcdPenetration_1(e,t)},p.prototype.get_m_useConvexConservativeDistanceUtil=function(){return!!btDispatcherInfo_get_m_useConvexConservativeDistanceUtil_0(this.a)},p.prototype.set_m_useConvexConservativeDistanceUtil=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btDispatcherInfo_set_m_useConvexConservativeDistanceUtil_1(e,t)},p.prototype.get_m_convexConservativeDistanceThreshold=function(){return btDispatcherInfo_get_m_convexConservativeDistanceThreshold_0(this.a)},p.prototype.set_m_convexConservativeDistanceThreshold=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btDispatcherInfo_set_m_convexConservativeDistanceThreshold_1(e,t)},p.prototype.__destroy__=function(){btDispatcherInfo___destroy___0(this.a)},Ab.prototype=Object.create(xb.prototype),Ab.prototype.constructor=Ab,Ab.prototype.b=Ab,Ab.c={},o.LayaMotionState=Ab,Ab.prototype.getWorldTransform=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),LayaMotionState_getWorldTransform_1(e,t)},Ab.prototype.setWorldTransform=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),LayaMotionState_setWorldTransform_1(e,t)},Ab.prototype.setNativeGetWorldTransform=function(t){LayaMotionState_setNativeGetWorldTransform_1(this.a,t)},Ab.prototype.setNativeSetWorldTransform=function(t){LayaMotionState_setNativeSetWorldTransform_1(this.a,t)},Ab.prototype.setRigidbody=function(t){LayaMotionState_setRigidbody_1(this.a,t)},Ab.prototype.__destroy__=function(){LayaMotionState___destroy___0(this.a)},B.prototype=Object.create(WrapperObject.prototype),B.prototype.constructor=B,B.prototype.b=B,B.c={},o.btWheelInfoConstructionInfo=B,B.prototype.get_m_chassisConnectionCS=function(){return wrapPointer(btWheelInfoConstructionInfo_get_m_chassisConnectionCS_0(this.a),h)},B.prototype.set_m_chassisConnectionCS=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfoConstructionInfo_set_m_chassisConnectionCS_1(e,t)},B.prototype.get_m_wheelDirectionCS=function(){return wrapPointer(btWheelInfoConstructionInfo_get_m_wheelDirectionCS_0(this.a),h)},B.prototype.set_m_wheelDirectionCS=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfoConstructionInfo_set_m_wheelDirectionCS_1(e,t)},B.prototype.get_m_wheelAxleCS=function(){return wrapPointer(btWheelInfoConstructionInfo_get_m_wheelAxleCS_0(this.a),h)},B.prototype.set_m_wheelAxleCS=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfoConstructionInfo_set_m_wheelAxleCS_1(e,t)},B.prototype.get_m_suspensionRestLength=function(){return btWheelInfoConstructionInfo_get_m_suspensionRestLength_0(this.a)},B.prototype.set_m_suspensionRestLength=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfoConstructionInfo_set_m_suspensionRestLength_1(e,t)},B.prototype.get_m_maxSuspensionTravelCm=function(){return btWheelInfoConstructionInfo_get_m_maxSuspensionTravelCm_0(this.a)},B.prototype.set_m_maxSuspensionTravelCm=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfoConstructionInfo_set_m_maxSuspensionTravelCm_1(e,t)},B.prototype.get_m_wheelRadius=function(){return btWheelInfoConstructionInfo_get_m_wheelRadius_0(this.a)},B.prototype.set_m_wheelRadius=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfoConstructionInfo_set_m_wheelRadius_1(e,t)},B.prototype.get_m_suspensionStiffness=function(){return btWheelInfoConstructionInfo_get_m_suspensionStiffness_0(this.a)},B.prototype.set_m_suspensionStiffness=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfoConstructionInfo_set_m_suspensionStiffness_1(e,t)},B.prototype.get_m_wheelsDampingCompression=function(){return btWheelInfoConstructionInfo_get_m_wheelsDampingCompression_0(this.a)},B.prototype.set_m_wheelsDampingCompression=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfoConstructionInfo_set_m_wheelsDampingCompression_1(e,t)},B.prototype.get_m_wheelsDampingRelaxation=function(){return btWheelInfoConstructionInfo_get_m_wheelsDampingRelaxation_0(this.a)},B.prototype.set_m_wheelsDampingRelaxation=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfoConstructionInfo_set_m_wheelsDampingRelaxation_1(e,t)},B.prototype.get_m_frictionSlip=function(){return btWheelInfoConstructionInfo_get_m_frictionSlip_0(this.a)},B.prototype.set_m_frictionSlip=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfoConstructionInfo_set_m_frictionSlip_1(e,t)},B.prototype.get_m_maxSuspensionForce=function(){return btWheelInfoConstructionInfo_get_m_maxSuspensionForce_0(this.a)},B.prototype.set_m_maxSuspensionForce=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfoConstructionInfo_set_m_maxSuspensionForce_1(e,t)},B.prototype.get_m_bIsFrontWheel=function(){return!!btWheelInfoConstructionInfo_get_m_bIsFrontWheel_0(this.a)},B.prototype.set_m_bIsFrontWheel=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfoConstructionInfo_set_m_bIsFrontWheel_1(e,t)},B.prototype.__destroy__=function(){btWheelInfoConstructionInfo___destroy___0(this.a)},Bb.prototype=Object.create(tb.prototype),Bb.prototype.constructor=Bb,Bb.prototype.b=Bb,Bb.c={},o.btConvexTriangleMeshShape=Bb,Bb.prototype.setLocalScaling=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btConvexTriangleMeshShape_setLocalScaling_1(e,t)},Bb.prototype.getLocalScaling=function(){return wrapPointer(btConvexTriangleMeshShape_getLocalScaling_0(this.a),h)},Bb.prototype.calculateLocalInertia=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btConvexTriangleMeshShape_calculateLocalInertia_2(o,t,e)},Bb.prototype.setMargin=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btConvexTriangleMeshShape_setMargin_1(e,t)},Bb.prototype.getMargin=function(){return btConvexTriangleMeshShape_getMargin_0(this.a)},Bb.prototype.__destroy__=function(){btConvexTriangleMeshShape___destroy___0(this.a)},lb.prototype=Object.create(WrapperObject.prototype),lb.prototype.constructor=lb,lb.prototype.b=lb,lb.c={},o.btBroadphaseInterface=lb,lb.prototype.__destroy__=function(){btBroadphaseInterface___destroy___0(this.a)},Cb.prototype=Object.create(WrapperObject.prototype),Cb.prototype.constructor=Cb,Cb.prototype.b=Cb,Cb.c={},o.btDefaultCollisionConfiguration=Cb,Cb.prototype.__destroy__=function(){btDefaultCollisionConfiguration___destroy___0(this.a)},C.prototype=Object.create(WrapperObject.prototype),C.prototype.constructor=C,C.prototype.b=C,C.c={},o.btRigidBodyConstructionInfo=C,C.prototype.get_m_linearDamping=function(){return btRigidBodyConstructionInfo_get_m_linearDamping_0(this.a)},C.prototype.set_m_linearDamping=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBodyConstructionInfo_set_m_linearDamping_1(e,t)},C.prototype.get_m_angularDamping=function(){return btRigidBodyConstructionInfo_get_m_angularDamping_0(this.a)},C.prototype.set_m_angularDamping=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBodyConstructionInfo_set_m_angularDamping_1(e,t)},C.prototype.get_m_friction=function(){return btRigidBodyConstructionInfo_get_m_friction_0(this.a)},C.prototype.set_m_friction=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBodyConstructionInfo_set_m_friction_1(e,t)},C.prototype.get_m_rollingFriction=function(){return btRigidBodyConstructionInfo_get_m_rollingFriction_0(this.a)},C.prototype.set_m_rollingFriction=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBodyConstructionInfo_set_m_rollingFriction_1(e,t)},C.prototype.get_m_restitution=function(){return btRigidBodyConstructionInfo_get_m_restitution_0(this.a)},C.prototype.set_m_restitution=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBodyConstructionInfo_set_m_restitution_1(e,t)},C.prototype.get_m_linearSleepingThreshold=function(){return btRigidBodyConstructionInfo_get_m_linearSleepingThreshold_0(this.a)},C.prototype.set_m_linearSleepingThreshold=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBodyConstructionInfo_set_m_linearSleepingThreshold_1(e,t)},C.prototype.get_m_angularSleepingThreshold=function(){return btRigidBodyConstructionInfo_get_m_angularSleepingThreshold_0(this.a)},C.prototype.set_m_angularSleepingThreshold=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBodyConstructionInfo_set_m_angularSleepingThreshold_1(e,t)},C.prototype.get_m_additionalDamping=function(){return!!btRigidBodyConstructionInfo_get_m_additionalDamping_0(this.a)},C.prototype.set_m_additionalDamping=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBodyConstructionInfo_set_m_additionalDamping_1(e,t)},C.prototype.get_m_additionalDampingFactor=function(){return btRigidBodyConstructionInfo_get_m_additionalDampingFactor_0(this.a)},C.prototype.set_m_additionalDampingFactor=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBodyConstructionInfo_set_m_additionalDampingFactor_1(e,t)},C.prototype.get_m_additionalLinearDampingThresholdSqr=function(){return btRigidBodyConstructionInfo_get_m_additionalLinearDampingThresholdSqr_0(this.a)},C.prototype.set_m_additionalLinearDampingThresholdSqr=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBodyConstructionInfo_set_m_additionalLinearDampingThresholdSqr_1(e,t)},C.prototype.get_m_additionalAngularDampingThresholdSqr=function(){return btRigidBodyConstructionInfo_get_m_additionalAngularDampingThresholdSqr_0(this.a)},C.prototype.set_m_additionalAngularDampingThresholdSqr=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBodyConstructionInfo_set_m_additionalAngularDampingThresholdSqr_1(e,t)},C.prototype.get_m_additionalAngularDampingFactor=function(){return btRigidBodyConstructionInfo_get_m_additionalAngularDampingFactor_0(this.a)},C.prototype.set_m_additionalAngularDampingFactor=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBodyConstructionInfo_set_m_additionalAngularDampingFactor_1(e,t)},C.prototype.__destroy__=function(){btRigidBodyConstructionInfo___destroy___0(this.a)},Db.prototype=Object.create(WrapperObject.prototype),Db.prototype.constructor=Db,Db.prototype.b=Db,Db.c={},o.btCollisionConfiguration=Db,Db.prototype.__destroy__=function(){btCollisionConfiguration___destroy___0(this.a)},ub.prototype=Object.create(WrapperObject.prototype),ub.prototype.constructor=ub,ub.prototype.b=ub,ub.c={},o.btPersistentManifold=ub,ub.prototype.getBody0=function(){return wrapPointer(btPersistentManifold_getBody0_0(this.a),k)},ub.prototype.getBody1=function(){return wrapPointer(btPersistentManifold_getBody1_0(this.a),k)},ub.prototype.getNumContacts=function(){return btPersistentManifold_getNumContacts_0(this.a)},ub.prototype.getContactPoint=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),wrapPointer(btPersistentManifold_getContactPoint_1(e,t),D)},ub.prototype.__destroy__=function(){btPersistentManifold___destroy___0(this.a)},E.prototype=Object.create(f.prototype),E.prototype.constructor=E,E.prototype.b=E,E.c={},o.btCompoundShape=E,E.prototype.addChildShape=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btCompoundShape_addChildShape_2(o,t,e)},E.prototype.removeChildShapeByIndex=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCompoundShape_removeChildShapeByIndex_1(e,t)},E.prototype.getNumChildShapes=function(){return btCompoundShape_getNumChildShapes_0(this.a)},E.prototype.getChildShape=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),wrapPointer(btCompoundShape_getChildShape_1(e,t),f)},E.prototype.setMargin=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCompoundShape_setMargin_1(e,t)},E.prototype.getMargin=function(){return btCompoundShape_getMargin_0(this.a)},E.prototype.updateChildTransform=function(t,e,o){var r=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),void 0===o?btCompoundShape_updateChildTransform_2(r,t,e):btCompoundShape_updateChildTransform_3(r,t,e,o)},E.prototype.setLocalScaling=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCompoundShape_setLocalScaling_1(e,t)},E.prototype.getLocalScaling=function(){return wrapPointer(btCompoundShape_getLocalScaling_0(this.a),h)},E.prototype.calculateLocalInertia=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btCompoundShape_calculateLocalInertia_2(o,t,e)},E.prototype.__destroy__=function(){btCompoundShape___destroy___0(this.a)},F.prototype=Object.create(z.prototype),F.prototype.constructor=F,F.prototype.b=F,F.c={},o.ClosestConvexResultCallback=F,F.prototype.hasHit=function(){return!!ClosestConvexResultCallback_hasHit_0(this.a)},F.prototype.get_m_convexFromWorld=function(){return wrapPointer(ClosestConvexResultCallback_get_m_convexFromWorld_0(this.a),h)},F.prototype.set_m_convexFromWorld=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),ClosestConvexResultCallback_set_m_convexFromWorld_1(e,t)},F.prototype.get_m_convexToWorld=function(){return wrapPointer(ClosestConvexResultCallback_get_m_convexToWorld_0(this.a),h)},F.prototype.set_m_convexToWorld=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),ClosestConvexResultCallback_set_m_convexToWorld_1(e,t)},F.prototype.get_m_hitNormalWorld=function(){return wrapPointer(ClosestConvexResultCallback_get_m_hitNormalWorld_0(this.a),h)},F.prototype.set_m_hitNormalWorld=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),ClosestConvexResultCallback_set_m_hitNormalWorld_1(e,t)},F.prototype.get_m_hitPointWorld=function(){return wrapPointer(ClosestConvexResultCallback_get_m_hitPointWorld_0(this.a),h)},F.prototype.set_m_hitPointWorld=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),ClosestConvexResultCallback_set_m_hitPointWorld_1(e,t)},F.prototype.get_m_hitCollisionObject=function(){return wrapPointer(ClosestConvexResultCallback_get_m_hitCollisionObject_0(this.a),k)},F.prototype.set_m_hitCollisionObject=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),ClosestConvexResultCallback_set_m_hitCollisionObject_1(e,t)},F.prototype.get_m_collisionFilterGroup=function(){return ClosestConvexResultCallback_get_m_collisionFilterGroup_0(this.a)},F.prototype.set_m_collisionFilterGroup=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),ClosestConvexResultCallback_set_m_collisionFilterGroup_1(e,t)},F.prototype.get_m_collisionFilterMask=function(){return ClosestConvexResultCallback_get_m_collisionFilterMask_0(this.a)},F.prototype.set_m_collisionFilterMask=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),ClosestConvexResultCallback_set_m_collisionFilterMask_1(e,t)},F.prototype.get_m_closestHitFraction=function(){return ClosestConvexResultCallback_get_m_closestHitFraction_0(this.a)},F.prototype.set_m_closestHitFraction=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),ClosestConvexResultCallback_set_m_closestHitFraction_1(e,t)},F.prototype.__destroy__=function(){ClosestConvexResultCallback___destroy___0(this.a)},G.prototype=Object.create(A.prototype),G.prototype.constructor=G,G.prototype.b=G,G.c={},o.AllHitsRayResultCallback=G,G.prototype.hasHit=function(){return!!AllHitsRayResultCallback_hasHit_0(this.a)},G.prototype.get_m_collisionObjects=function(){return wrapPointer(AllHitsRayResultCallback_get_m_collisionObjects_0(this.a),Eb)},G.prototype.set_m_collisionObjects=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),AllHitsRayResultCallback_set_m_collisionObjects_1(e,t)},G.prototype.get_m_rayFromWorld=function(){return wrapPointer(AllHitsRayResultCallback_get_m_rayFromWorld_0(this.a),h)},G.prototype.set_m_rayFromWorld=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),AllHitsRayResultCallback_set_m_rayFromWorld_1(e,t)},G.prototype.get_m_rayToWorld=function(){return wrapPointer(AllHitsRayResultCallback_get_m_rayToWorld_0(this.a),h)},G.prototype.set_m_rayToWorld=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),AllHitsRayResultCallback_set_m_rayToWorld_1(e,t)},G.prototype.get_m_hitNormalWorld=function(){return wrapPointer(AllHitsRayResultCallback_get_m_hitNormalWorld_0(this.a),H)},G.prototype.set_m_hitNormalWorld=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),AllHitsRayResultCallback_set_m_hitNormalWorld_1(e,t)},G.prototype.get_m_hitPointWorld=function(){return wrapPointer(AllHitsRayResultCallback_get_m_hitPointWorld_0(this.a),H)},G.prototype.set_m_hitPointWorld=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),AllHitsRayResultCallback_set_m_hitPointWorld_1(e,t)},G.prototype.get_m_hitFractions=function(){return wrapPointer(AllHitsRayResultCallback_get_m_hitFractions_0(this.a),Fb)},G.prototype.set_m_hitFractions=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),AllHitsRayResultCallback_set_m_hitFractions_1(e,t)},G.prototype.get_m_collisionFilterGroup=function(){return AllHitsRayResultCallback_get_m_collisionFilterGroup_0(this.a)},G.prototype.set_m_collisionFilterGroup=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),AllHitsRayResultCallback_set_m_collisionFilterGroup_1(e,t)},G.prototype.get_m_collisionFilterMask=function(){return AllHitsRayResultCallback_get_m_collisionFilterMask_0(this.a)},G.prototype.set_m_collisionFilterMask=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),AllHitsRayResultCallback_set_m_collisionFilterMask_1(e,t)},G.prototype.get_m_closestHitFraction=function(){return AllHitsRayResultCallback_get_m_closestHitFraction_0(this.a)},G.prototype.set_m_closestHitFraction=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),AllHitsRayResultCallback_set_m_closestHitFraction_1(e,t)},G.prototype.get_m_collisionObject=function(){return wrapPointer(AllHitsRayResultCallback_get_m_collisionObject_0(this.a),k)},G.prototype.set_m_collisionObject=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),AllHitsRayResultCallback_set_m_collisionObject_1(e,t)},G.prototype.__destroy__=function(){AllHitsRayResultCallback___destroy___0(this.a)},Gb.prototype=Object.create(rb.prototype),Gb.prototype.constructor=Gb,Gb.prototype.b=Gb,Gb.c={},o.btDefaultVehicleRaycaster=Gb,Gb.prototype.castRay=function(t,e,o){var r=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),btDefaultVehicleRaycaster_castRay_3(r,t,e,o)},Gb.prototype.__destroy__=function(){btDefaultVehicleRaycaster___destroy___0(this.a)},Hb.prototype=Object.create(WrapperObject.prototype),Hb.prototype.constructor=Hb,Hb.prototype.b=Hb,Hb.c={},o.btConstraintSetting=Hb,Hb.prototype.get_m_tau=function(){return btConstraintSetting_get_m_tau_0(this.a)},Hb.prototype.set_m_tau=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btConstraintSetting_set_m_tau_1(e,t)},Hb.prototype.get_m_damping=function(){return btConstraintSetting_get_m_damping_0(this.a)},Hb.prototype.set_m_damping=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btConstraintSetting_set_m_damping_1(e,t)},Hb.prototype.get_m_impulseClamp=function(){return btConstraintSetting_get_m_impulseClamp_0(this.a)},Hb.prototype.set_m_impulseClamp=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btConstraintSetting_set_m_impulseClamp_1(e,t)},Hb.prototype.__destroy__=function(){btConstraintSetting___destroy___0(this.a)},Ib.prototype=Object.create(WrapperObject.prototype),Ib.prototype.constructor=Ib,Ib.prototype.b=Ib,Ib.c={},o.LocalShapeInfo=Ib,Ib.prototype.get_m_shapePart=function(){return LocalShapeInfo_get_m_shapePart_0(this.a)},Ib.prototype.set_m_shapePart=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),LocalShapeInfo_set_m_shapePart_1(e,t)},Ib.prototype.get_m_triangleIndex=function(){return LocalShapeInfo_get_m_triangleIndex_0(this.a)},Ib.prototype.set_m_triangleIndex=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),LocalShapeInfo_set_m_triangleIndex_1(e,t)},Ib.prototype.__destroy__=function(){LocalShapeInfo___destroy___0(this.a)},I.prototype=Object.create(k.prototype),I.prototype.constructor=I,I.prototype.b=I,I.c={},o.btRigidBody=I,I.prototype.getCenterOfMassTransform=function(){return wrapPointer(btRigidBody_getCenterOfMassTransform_0(this.a),l)},I.prototype.setCenterOfMassTransform=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBody_setCenterOfMassTransform_1(e,t)},I.prototype.setSleepingThresholds=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btRigidBody_setSleepingThresholds_2(o,t,e)},I.prototype.getLinearSleepingThreshold=function(){return btRigidBody_getLinearSleepingThreshold_0(this.a)},I.prototype.getAngularSleepingThreshold=function(){return btRigidBody_getAngularSleepingThreshold_0(this.a)},I.prototype.setDamping=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btRigidBody_setDamping_2(o,t,e)},I.prototype.setMassProps=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btRigidBody_setMassProps_2(o,t,e)},I.prototype.setLinearFactor=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBody_setLinearFactor_1(e,t)},I.prototype.applyTorque=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBody_applyTorque_1(e,t)},I.prototype.applyForce=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btRigidBody_applyForce_2(o,t,e)},I.prototype.applyCentralForce=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBody_applyCentralForce_1(e,t)},I.prototype.applyTorqueImpulse=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBody_applyTorqueImpulse_1(e,t)},I.prototype.applyImpulse=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btRigidBody_applyImpulse_2(o,t,e)},I.prototype.applyCentralImpulse=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBody_applyCentralImpulse_1(e,t)},I.prototype.updateInertiaTensor=function(){btRigidBody_updateInertiaTensor_0(this.a)},I.prototype.getLinearVelocity=function(){return wrapPointer(btRigidBody_getLinearVelocity_0(this.a),h)},I.prototype.getAngularVelocity=function(){return wrapPointer(btRigidBody_getAngularVelocity_0(this.a),h)},I.prototype.setLinearVelocity=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBody_setLinearVelocity_1(e,t)},I.prototype.setAngularVelocity=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBody_setAngularVelocity_1(e,t)},I.prototype.getMotionState=function(){return wrapPointer(btRigidBody_getMotionState_0(this.a),xb)},I.prototype.setMotionState=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBody_setMotionState_1(e,t)},I.prototype.setAngularFactor=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBody_setAngularFactor_1(e,t)},I.prototype.upcast=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),wrapPointer(btRigidBody_upcast_1(e,t),I)},I.prototype.getAabb=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btRigidBody_getAabb_2(o,t,e)},I.prototype.applyGravity=function(){btRigidBody_applyGravity_0(this.a)},I.prototype.getGravity=function(){return wrapPointer(btRigidBody_getGravity_0(this.a),h)},I.prototype.setGravity=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBody_setGravity_1(e,t)},I.prototype.getTotalForce=function(){return wrapPointer(btRigidBody_getTotalForce_0(this.a),h)},I.prototype.getTotalTorque=function(){return wrapPointer(btRigidBody_getTotalTorque_0(this.a),h)},I.prototype.getFlags=function(){return btRigidBody_getFlags_0(this.a)},I.prototype.setFlags=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBody_setFlags_1(e,t)},I.prototype.clearForces=function(){btRigidBody_clearForces_0(this.a)},I.prototype.setAnisotropicFriction=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btRigidBody_setAnisotropicFriction_2(o,t,e)},I.prototype.getCollisionShape=function(){return wrapPointer(btRigidBody_getCollisionShape_0(this.a),f)},I.prototype.setContactProcessingThreshold=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBody_setContactProcessingThreshold_1(e,t)},I.prototype.setActivationState=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBody_setActivationState_1(e,t)},I.prototype.forceActivationState=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBody_forceActivationState_1(e,t)},I.prototype.activate=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),void 0===t?btRigidBody_activate_0(e):btRigidBody_activate_1(e,t)},I.prototype.isActive=function(){return!!btRigidBody_isActive_0(this.a)},I.prototype.isKinematicObject=function(){return!!btRigidBody_isKinematicObject_0(this.a)},I.prototype.isStaticObject=function(){return!!btRigidBody_isStaticObject_0(this.a)},I.prototype.isStaticOrKinematicObject=function(){return!!btRigidBody_isStaticOrKinematicObject_0(this.a)},I.prototype.getRestitution=function(){return btRigidBody_getRestitution_0(this.a)},I.prototype.setRestitution=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBody_setRestitution_1(e,t)},I.prototype.getFriction=function(){return btRigidBody_getFriction_0(this.a)},I.prototype.setFriction=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBody_setFriction_1(e,t)},I.prototype.getRollingFriction=function(){return btRigidBody_getRollingFriction_0(this.a)},I.prototype.setRollingFriction=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBody_setRollingFriction_1(e,t)},I.prototype.getCollisionFlags=function(){return btRigidBody_getCollisionFlags_0(this.a)},I.prototype.setCollisionFlags=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBody_setCollisionFlags_1(e,t)},I.prototype.getWorldTransform=function(){return wrapPointer(btRigidBody_getWorldTransform_0(this.a),l)},I.prototype.setWorldTransform=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBody_setWorldTransform_1(e,t)},I.prototype.setCollisionShape=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBody_setCollisionShape_1(e,t)},I.prototype.getCcdMotionThreshold=function(){return btRigidBody_getCcdMotionThreshold_0(this.a)},I.prototype.setCcdMotionThreshold=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBody_setCcdMotionThreshold_1(e,t)},I.prototype.getCcdSweptSphereRadius=function(){return btRigidBody_getCcdSweptSphereRadius_0(this.a)},I.prototype.setCcdSweptSphereRadius=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBody_setCcdSweptSphereRadius_1(e,t)},I.prototype.getUserIndex=function(){return btRigidBody_getUserIndex_0(this.a)},I.prototype.setUserIndex=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBody_setUserIndex_1(e,t)},I.prototype.getUserPointer=function(){return wrapPointer(btRigidBody_getUserPointer_0(this.a),VoidPtr)},I.prototype.setUserPointer=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBody_setUserPointer_1(e,t)},I.prototype.getInterpolationAngularVelocity=function(){return wrapPointer(btRigidBody_getInterpolationAngularVelocity_0(this.a),h)},I.prototype.setInterpolationAngularVelocity=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBody_setInterpolationAngularVelocity_1(e,t)},I.prototype.getInterpolationLinearVelocity=function(){return wrapPointer(btRigidBody_getInterpolationLinearVelocity_0(this.a),h)},I.prototype.setInterpolationLinearVelocity=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRigidBody_setInterpolationLinearVelocity_1(e,t)},I.prototype.getBroadphaseHandle=function(){return wrapPointer(btRigidBody_getBroadphaseHandle_0(this.a),ib)},I.prototype.getActivationState=function(){return btRigidBody_getActivationState_0(this.a)},I.prototype.__destroy__=function(){btRigidBody___destroy___0(this.a)},Jb.prototype=Object.create(WrapperObject.prototype),Jb.prototype.constructor=Jb,Jb.prototype.b=Jb,Jb.c={},o.btDbvtBroadphase=Jb,Jb.prototype.getOverlappingPairCache=function(){return wrapPointer(btDbvtBroadphase_getOverlappingPairCache_0(this.a),kb)},Jb.prototype.__destroy__=function(){btDbvtBroadphase___destroy___0(this.a)},Kb.prototype=Object.create(jb.prototype),Kb.prototype.constructor=Kb,Kb.prototype.b=Kb,Kb.c={},o.btCollisionDispatcher=Kb,Kb.prototype.getNumManifolds=function(){return btCollisionDispatcher_getNumManifolds_0(this.a)},Kb.prototype.getManifoldByIndexInternal=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),wrapPointer(btCollisionDispatcher_getManifoldByIndexInternal_1(e,t),ub)},Kb.prototype.__destroy__=function(){btCollisionDispatcher___destroy___0(this.a)},Lb.prototype=Object.create(WrapperObject.prototype),Lb.prototype.constructor=Lb,Lb.prototype.b=Lb,Lb.c={},o.btAxisSweep3=Lb,Lb.prototype.__destroy__=function(){btAxisSweep3___destroy___0(this.a)},VoidPtr.prototype=Object.create(WrapperObject.prototype),VoidPtr.prototype.constructor=VoidPtr,VoidPtr.prototype.b=VoidPtr,VoidPtr.c={},o.VoidPtr=VoidPtr,VoidPtr.prototype.__destroy__=function(){VoidPtr___destroy___0(this.a)},J.prototype=Object.create(m.prototype),J.prototype.constructor=J,J.prototype.b=J,J.c={},o.btConeTwistConstraint=J,J.prototype.setLimit=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btConeTwistConstraint_setLimit_2(o,t,e)},J.prototype.setAngularOnly=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btConeTwistConstraint_setAngularOnly_1(e,t)},J.prototype.setDamping=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btConeTwistConstraint_setDamping_1(e,t)},J.prototype.enableMotor=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btConeTwistConstraint_enableMotor_1(e,t)},J.prototype.setMaxMotorImpulse=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btConeTwistConstraint_setMaxMotorImpulse_1(e,t)},J.prototype.setMaxMotorImpulseNormalized=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btConeTwistConstraint_setMaxMotorImpulseNormalized_1(e,t)},J.prototype.setMotorTarget=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btConeTwistConstraint_setMotorTarget_1(e,t)},J.prototype.setMotorTargetInConstraintSpace=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btConeTwistConstraint_setMotorTargetInConstraintSpace_1(e,t)},J.prototype.enableFeedback=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btConeTwistConstraint_enableFeedback_1(e,t)},J.prototype.getBreakingImpulseThreshold=function(){return btConeTwistConstraint_getBreakingImpulseThreshold_0(this.a)},J.prototype.setBreakingImpulseThreshold=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btConeTwistConstraint_setBreakingImpulseThreshold_1(e,t)},J.prototype.getParam=function(t,e){var o=this.a;return t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btConeTwistConstraint_getParam_2(o,t,e)},J.prototype.setParam=function(t,e,o){var r=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),btConeTwistConstraint_setParam_3(r,t,e,o)},J.prototype.__destroy__=function(){btConeTwistConstraint___destroy___0(this.a)},K.prototype=Object.create(m.prototype),K.prototype.constructor=K,K.prototype.b=K,K.c={},o.btHingeConstraint=K,K.prototype.setLimit=function(t,e,o,r,n){var a=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),r&&"object"==typeof r&&(r=r.a),n&&"object"==typeof n&&(n=n.a),void 0===n?btHingeConstraint_setLimit_4(a,t,e,o,r):btHingeConstraint_setLimit_5(a,t,e,o,r,n)},K.prototype.enableAngularMotor=function(t,e,o){var r=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),btHingeConstraint_enableAngularMotor_3(r,t,e,o)},K.prototype.setAngularOnly=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btHingeConstraint_setAngularOnly_1(e,t)},K.prototype.enableMotor=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btHingeConstraint_enableMotor_1(e,t)},K.prototype.setMaxMotorImpulse=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btHingeConstraint_setMaxMotorImpulse_1(e,t)},K.prototype.setMotorTarget=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btHingeConstraint_setMotorTarget_2(o,t,e)},K.prototype.enableFeedback=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btHingeConstraint_enableFeedback_1(e,t)},K.prototype.getBreakingImpulseThreshold=function(){return btHingeConstraint_getBreakingImpulseThreshold_0(this.a)},K.prototype.setBreakingImpulseThreshold=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btHingeConstraint_setBreakingImpulseThreshold_1(e,t)},K.prototype.getParam=function(t,e){var o=this.a;return t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btHingeConstraint_getParam_2(o,t,e)},K.prototype.setParam=function(t,e,o){var r=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),btHingeConstraint_setParam_3(r,t,e,o)},K.prototype.__destroy__=function(){btHingeConstraint___destroy___0(this.a)},Mb.prototype=Object.create(WrapperObject.prototype),Mb.prototype.constructor=Mb,Mb.prototype.b=Mb,Mb.c={},o.JSValueAsParam=Mb,Nb.prototype=Object.create(pb.prototype),Nb.prototype.constructor=Nb,Nb.prototype.b=Nb,Nb.c={},o.btConeShapeZ=Nb,Nb.prototype.setLocalScaling=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btConeShapeZ_setLocalScaling_1(e,t)},Nb.prototype.getLocalScaling=function(){return wrapPointer(btConeShapeZ_getLocalScaling_0(this.a),h)},Nb.prototype.calculateLocalInertia=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btConeShapeZ_calculateLocalInertia_2(o,t,e)},Nb.prototype.__destroy__=function(){btConeShapeZ___destroy___0(this.a)},Ob.prototype=Object.create(pb.prototype),Ob.prototype.constructor=Ob,Ob.prototype.b=Ob,Ob.c={},o.btConeShapeX=Ob,Ob.prototype.setLocalScaling=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btConeShapeX_setLocalScaling_1(e,t)},Ob.prototype.getLocalScaling=function(){return wrapPointer(btConeShapeX_getLocalScaling_0(this.a),h)},Ob.prototype.calculateLocalInertia=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btConeShapeX_calculateLocalInertia_2(o,t,e)},Ob.prototype.__destroy__=function(){btConeShapeX___destroy___0(this.a)},Pb.prototype=Object.create(wb.prototype),Pb.prototype.constructor=Pb,Pb.prototype.b=Pb,Pb.c={},o.btTriangleMesh=Pb,Pb.prototype.addTriangle=function(t,e,o,r){var n=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),r&&"object"==typeof r&&(r=r.a),void 0===r?btTriangleMesh_addTriangle_3(n,t,e,o):btTriangleMesh_addTriangle_4(n,t,e,o,r)},Pb.prototype.__destroy__=function(){btTriangleMesh___destroy___0(this.a)},Qb.prototype=Object.create(f.prototype),Qb.prototype.constructor=Qb,Qb.prototype.b=Qb,Qb.c={},o.btConvexHullShape=Qb,Qb.prototype.addPoint=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),void 0===e?btConvexHullShape_addPoint_1(o,t):btConvexHullShape_addPoint_2(o,t,e)},Qb.prototype.setMargin=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btConvexHullShape_setMargin_1(e,t)},Qb.prototype.getMargin=function(){return btConvexHullShape_getMargin_0(this.a)},Qb.prototype.setLocalScaling=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btConvexHullShape_setLocalScaling_1(e,t)},Qb.prototype.getLocalScaling=function(){return wrapPointer(btConvexHullShape_getLocalScaling_0(this.a),h)},Qb.prototype.calculateLocalInertia=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btConvexHullShape_calculateLocalInertia_2(o,t,e)},Qb.prototype.__destroy__=function(){btConvexHullShape___destroy___0(this.a)},L.prototype=Object.create(WrapperObject.prototype),L.prototype.constructor=L,L.prototype.b=L,L.c={},o.btVehicleTuning=L,L.prototype.get_m_suspensionStiffness=function(){return btVehicleTuning_get_m_suspensionStiffness_0(this.a)},L.prototype.set_m_suspensionStiffness=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btVehicleTuning_set_m_suspensionStiffness_1(e,t)},L.prototype.get_m_suspensionCompression=function(){return btVehicleTuning_get_m_suspensionCompression_0(this.a)},L.prototype.set_m_suspensionCompression=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btVehicleTuning_set_m_suspensionCompression_1(e,t)},L.prototype.get_m_suspensionDamping=function(){return btVehicleTuning_get_m_suspensionDamping_0(this.a)},L.prototype.set_m_suspensionDamping=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btVehicleTuning_set_m_suspensionDamping_1(e,t)},L.prototype.get_m_maxSuspensionTravelCm=function(){return btVehicleTuning_get_m_maxSuspensionTravelCm_0(this.a)},L.prototype.set_m_maxSuspensionTravelCm=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btVehicleTuning_set_m_maxSuspensionTravelCm_1(e,t)},L.prototype.get_m_frictionSlip=function(){return btVehicleTuning_get_m_frictionSlip_0(this.a)},L.prototype.set_m_frictionSlip=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btVehicleTuning_set_m_frictionSlip_1(e,t)},L.prototype.get_m_maxSuspensionForce=function(){return btVehicleTuning_get_m_maxSuspensionForce_0(this.a)},L.prototype.set_m_maxSuspensionForce=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btVehicleTuning_set_m_maxSuspensionForce_1(e,t)},Rb.prototype=Object.create(WrapperObject.prototype),Rb.prototype.constructor=Rb,Rb.prototype.b=Rb,Rb.c={},o.btCollisionObjectWrapper=Rb,Sb.prototype=Object.create(nb.prototype),Sb.prototype.constructor=Sb,Sb.prototype.b=Sb,Sb.c={},o.btGImpactMeshShape=Sb,Sb.prototype.setLocalScaling=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGImpactMeshShape_setLocalScaling_1(e,t)},Sb.prototype.getLocalScaling=function(){return wrapPointer(btGImpactMeshShape_getLocalScaling_0(this.a),h)},Sb.prototype.calculateLocalInertia=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btGImpactMeshShape_calculateLocalInertia_2(o,t,e)},Sb.prototype.updateBound=function(){btGImpactMeshShape_updateBound_0(this.a)},Sb.prototype.__destroy__=function(){btGImpactMeshShape___destroy___0(this.a)},Tb.prototype=Object.create(xb.prototype),Tb.prototype.constructor=Tb,Tb.prototype.b=Tb,Tb.c={},o.btDefaultMotionState=Tb,Tb.prototype.getWorldTransform=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btDefaultMotionState_getWorldTransform_1(e,t)},Tb.prototype.setWorldTransform=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btDefaultMotionState_setWorldTransform_1(e,t)},Tb.prototype.get_m_graphicsWorldTrans=function(){return wrapPointer(btDefaultMotionState_get_m_graphicsWorldTrans_0(this.a),l)},Tb.prototype.set_m_graphicsWorldTrans=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btDefaultMotionState_set_m_graphicsWorldTrans_1(e,t)},Tb.prototype.__destroy__=function(){btDefaultMotionState___destroy___0(this.a)},M.prototype=Object.create(WrapperObject.prototype),M.prototype.constructor=M,M.prototype.b=M,M.c={},o.btWheelInfo=M,M.prototype.getSuspensionRestLength=function(){return btWheelInfo_getSuspensionRestLength_0(this.a)},M.prototype.updateWheel=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btWheelInfo_updateWheel_2(o,t,e)},M.prototype.get_m_suspensionStiffness=function(){return btWheelInfo_get_m_suspensionStiffness_0(this.a)},M.prototype.set_m_suspensionStiffness=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfo_set_m_suspensionStiffness_1(e,t)},M.prototype.get_m_frictionSlip=function(){return btWheelInfo_get_m_frictionSlip_0(this.a)},M.prototype.set_m_frictionSlip=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfo_set_m_frictionSlip_1(e,t)},M.prototype.get_m_engineForce=function(){return btWheelInfo_get_m_engineForce_0(this.a)},M.prototype.set_m_engineForce=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfo_set_m_engineForce_1(e,t)},M.prototype.get_m_rollInfluence=function(){return btWheelInfo_get_m_rollInfluence_0(this.a)},M.prototype.set_m_rollInfluence=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfo_set_m_rollInfluence_1(e,t)},M.prototype.get_m_suspensionRestLength1=function(){return btWheelInfo_get_m_suspensionRestLength1_0(this.a)},M.prototype.set_m_suspensionRestLength1=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfo_set_m_suspensionRestLength1_1(e,t)},M.prototype.get_m_wheelsRadius=function(){return btWheelInfo_get_m_wheelsRadius_0(this.a)},M.prototype.set_m_wheelsRadius=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfo_set_m_wheelsRadius_1(e,t)},M.prototype.get_m_wheelsDampingCompression=function(){return btWheelInfo_get_m_wheelsDampingCompression_0(this.a)},M.prototype.set_m_wheelsDampingCompression=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfo_set_m_wheelsDampingCompression_1(e,t)},M.prototype.get_m_wheelsDampingRelaxation=function(){return btWheelInfo_get_m_wheelsDampingRelaxation_0(this.a)},M.prototype.set_m_wheelsDampingRelaxation=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfo_set_m_wheelsDampingRelaxation_1(e,t)},M.prototype.get_m_steering=function(){return btWheelInfo_get_m_steering_0(this.a)},M.prototype.set_m_steering=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfo_set_m_steering_1(e,t)},M.prototype.get_m_maxSuspensionForce=function(){return btWheelInfo_get_m_maxSuspensionForce_0(this.a)},M.prototype.set_m_maxSuspensionForce=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfo_set_m_maxSuspensionForce_1(e,t)},M.prototype.get_m_maxSuspensionTravelCm=function(){return btWheelInfo_get_m_maxSuspensionTravelCm_0(this.a)},M.prototype.set_m_maxSuspensionTravelCm=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfo_set_m_maxSuspensionTravelCm_1(e,t)},M.prototype.get_m_wheelsSuspensionForce=function(){return btWheelInfo_get_m_wheelsSuspensionForce_0(this.a)},M.prototype.set_m_wheelsSuspensionForce=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfo_set_m_wheelsSuspensionForce_1(e,t)},M.prototype.get_m_bIsFrontWheel=function(){return!!btWheelInfo_get_m_bIsFrontWheel_0(this.a)},M.prototype.set_m_bIsFrontWheel=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfo_set_m_bIsFrontWheel_1(e,t)},M.prototype.get_m_raycastInfo=function(){return wrapPointer(btWheelInfo_get_m_raycastInfo_0(this.a),N)},M.prototype.set_m_raycastInfo=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfo_set_m_raycastInfo_1(e,t)},M.prototype.get_m_chassisConnectionPointCS=function(){return wrapPointer(btWheelInfo_get_m_chassisConnectionPointCS_0(this.a),h)},M.prototype.set_m_chassisConnectionPointCS=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfo_set_m_chassisConnectionPointCS_1(e,t)},M.prototype.get_m_worldTransform=function(){return wrapPointer(btWheelInfo_get_m_worldTransform_0(this.a),l)},M.prototype.set_m_worldTransform=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfo_set_m_worldTransform_1(e,t)},M.prototype.get_m_wheelDirectionCS=function(){return wrapPointer(btWheelInfo_get_m_wheelDirectionCS_0(this.a),h)},M.prototype.set_m_wheelDirectionCS=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfo_set_m_wheelDirectionCS_1(e,t)},M.prototype.get_m_wheelAxleCS=function(){return wrapPointer(btWheelInfo_get_m_wheelAxleCS_0(this.a),h)},M.prototype.set_m_wheelAxleCS=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfo_set_m_wheelAxleCS_1(e,t)},M.prototype.get_m_rotation=function(){return btWheelInfo_get_m_rotation_0(this.a)},M.prototype.set_m_rotation=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfo_set_m_rotation_1(e,t)},M.prototype.get_m_deltaRotation=function(){return btWheelInfo_get_m_deltaRotation_0(this.a)},M.prototype.set_m_deltaRotation=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfo_set_m_deltaRotation_1(e,t)},M.prototype.get_m_brake=function(){return btWheelInfo_get_m_brake_0(this.a)},M.prototype.set_m_brake=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfo_set_m_brake_1(e,t)},M.prototype.get_m_clippedInvContactDotSuspension=function(){return btWheelInfo_get_m_clippedInvContactDotSuspension_0(this.a)},M.prototype.set_m_clippedInvContactDotSuspension=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfo_set_m_clippedInvContactDotSuspension_1(e,t)},M.prototype.get_m_suspensionRelativeVelocity=function(){return btWheelInfo_get_m_suspensionRelativeVelocity_0(this.a)},M.prototype.set_m_suspensionRelativeVelocity=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfo_set_m_suspensionRelativeVelocity_1(e,t)},M.prototype.get_m_skidInfo=function(){return btWheelInfo_get_m_skidInfo_0(this.a)},M.prototype.set_m_skidInfo=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btWheelInfo_set_m_skidInfo_1(e,t)},M.prototype.__destroy__=function(){btWheelInfo___destroy___0(this.a)},O.prototype=Object.create(h.prototype),O.prototype.constructor=O,O.prototype.b=O,O.c={},o.btVector4=O,O.prototype.w=function(){return btVector4_w_0(this.a)},O.prototype.setValue=function(t,e,o,r){var n=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),r&&"object"==typeof r&&(r=r.a),btVector4_setValue_4(n,t,e,o,r)},O.prototype.length=O.prototype.length=function(){return btVector4_length_0(this.a)},O.prototype.x=O.prototype.x=function(){return btVector4_x_0(this.a)},O.prototype.y=O.prototype.y=function(){return btVector4_y_0(this.a)},O.prototype.z=O.prototype.z=function(){return btVector4_z_0(this.a)},O.prototype.setX=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btVector4_setX_1(e,t)},O.prototype.setY=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btVector4_setY_1(e,t)},O.prototype.setZ=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btVector4_setZ_1(e,t)},O.prototype.normalize=O.prototype.normalize=function(){btVector4_normalize_0(this.a)},O.prototype.rotate=O.prototype.rotate=function(t,e){var o=this.a;return t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),wrapPointer(btVector4_rotate_2(o,t,e),h)},O.prototype.dot=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),btVector4_dot_1(e,t)},O.prototype.op_mul=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),wrapPointer(btVector4_op_mul_1(e,t),h)},O.prototype.op_add=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),wrapPointer(btVector4_op_add_1(e,t),h)},O.prototype.op_sub=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),wrapPointer(btVector4_op_sub_1(e,t),h)},O.prototype.__destroy__=function(){btVector4___destroy___0(this.a)},Ub.prototype=Object.create(WrapperObject.prototype),Ub.prototype.constructor=Ub,Ub.prototype.b=Ub,Ub.c={},o.JsValue=Ub,Vb.prototype=Object.create(WrapperObject.prototype),Vb.prototype.constructor=Vb,Vb.prototype.b=Vb,Vb.c={},o.btDefaultCollisionConstructionInfo=Vb,Vb.prototype.__destroy__=function(){btDefaultCollisionConstructionInfo___destroy___0(this.a)},Wb.prototype=Object.create(WrapperObject.prototype),Wb.prototype.constructor=Wb,Wb.prototype.b=Wb,Wb.c={},o.btVehicleRaycasterResult=Wb,Wb.prototype.get_m_hitPointInWorld=function(){return wrapPointer(btVehicleRaycasterResult_get_m_hitPointInWorld_0(this.a),h)},Wb.prototype.set_m_hitPointInWorld=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btVehicleRaycasterResult_set_m_hitPointInWorld_1(e,t)},Wb.prototype.get_m_hitNormalInWorld=function(){return wrapPointer(btVehicleRaycasterResult_get_m_hitNormalInWorld_0(this.a),h)},Wb.prototype.set_m_hitNormalInWorld=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btVehicleRaycasterResult_set_m_hitNormalInWorld_1(e,t)},Wb.prototype.get_m_distFraction=function(){return btVehicleRaycasterResult_get_m_distFraction_0(this.a)},Wb.prototype.set_m_distFraction=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btVehicleRaycasterResult_set_m_distFraction_1(e,t)},Wb.prototype.__destroy__=function(){btVehicleRaycasterResult___destroy___0(this.a)},Xb.prototype=Object.create(WrapperObject.prototype),Xb.prototype.constructor=Xb,Xb.prototype.b=Xb,Xb.c={},o.btConstraintSolver=Xb,Xb.prototype.__destroy__=function(){btConstraintSolver___destroy___0(this.a)},P.prototype=Object.create(qb.prototype),P.prototype.constructor=P,P.prototype.b=P,P.c={},o.btRaycastVehicle=P,P.prototype.applyEngineForce=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btRaycastVehicle_applyEngineForce_2(o,t,e)},P.prototype.setSteeringValue=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btRaycastVehicle_setSteeringValue_2(o,t,e)},P.prototype.getWheelTransformWS=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),wrapPointer(btRaycastVehicle_getWheelTransformWS_1(e,t),l)},P.prototype.updateWheelTransform=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btRaycastVehicle_updateWheelTransform_2(o,t,e)},P.prototype.addWheel=function(t,e,o,r,n,a,i){var p=this.a;return t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),r&&"object"==typeof r&&(r=r.a),n&&"object"==typeof n&&(n=n.a),a&&"object"==typeof a&&(a=a.a),i&&"object"==typeof i&&(i=i.a),wrapPointer(btRaycastVehicle_addWheel_7(p,t,e,o,r,n,a,i),M)},P.prototype.getNumWheels=function(){return btRaycastVehicle_getNumWheels_0(this.a)},P.prototype.getRigidBody=function(){return wrapPointer(btRaycastVehicle_getRigidBody_0(this.a),I)},P.prototype.getWheelInfo=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),wrapPointer(btRaycastVehicle_getWheelInfo_1(e,t),M)},P.prototype.setBrake=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btRaycastVehicle_setBrake_2(o,t,e)},P.prototype.setCoordinateSystem=function(t,e,o){var r=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),btRaycastVehicle_setCoordinateSystem_3(r,t,e,o)},P.prototype.getCurrentSpeedKmHour=function(){return btRaycastVehicle_getCurrentSpeedKmHour_0(this.a)},P.prototype.getChassisWorldTransform=function(){return wrapPointer(btRaycastVehicle_getChassisWorldTransform_0(this.a),l)},P.prototype.rayCast=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),btRaycastVehicle_rayCast_1(e,t)},P.prototype.updateVehicle=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRaycastVehicle_updateVehicle_1(e,t)},P.prototype.resetSuspension=function(){btRaycastVehicle_resetSuspension_0(this.a)},P.prototype.getSteeringValue=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),btRaycastVehicle_getSteeringValue_1(e,t)},P.prototype.updateWheelTransformsWS=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),void 0===e?btRaycastVehicle_updateWheelTransformsWS_1(o,t):btRaycastVehicle_updateWheelTransformsWS_2(o,t,e)},P.prototype.setPitchControl=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRaycastVehicle_setPitchControl_1(e,t)},P.prototype.updateSuspension=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRaycastVehicle_updateSuspension_1(e,t)},P.prototype.updateFriction=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRaycastVehicle_updateFriction_1(e,t)},P.prototype.getRightAxis=function(){return btRaycastVehicle_getRightAxis_0(this.a)},P.prototype.getUpAxis=function(){return btRaycastVehicle_getUpAxis_0(this.a)},P.prototype.getForwardAxis=function(){return btRaycastVehicle_getForwardAxis_0(this.a)},P.prototype.getForwardVector=function(){return wrapPointer(btRaycastVehicle_getForwardVector_0(this.a),h)},P.prototype.getUserConstraintType=function(){return btRaycastVehicle_getUserConstraintType_0(this.a)},P.prototype.setUserConstraintType=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRaycastVehicle_setUserConstraintType_1(e,t)},P.prototype.setUserConstraintId=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btRaycastVehicle_setUserConstraintId_1(e,t)},P.prototype.getUserConstraintId=function(){return btRaycastVehicle_getUserConstraintId_0(this.a)},P.prototype.updateAction=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btRaycastVehicle_updateAction_2(o,t,e)},P.prototype.__destroy__=function(){btRaycastVehicle___destroy___0(this.a)},H.prototype=Object.create(WrapperObject.prototype),H.prototype.constructor=H,H.prototype.b=H,H.c={},o.tVector3Array=H,H.prototype.size=H.prototype.size=function(){return tVector3Array_size_0(this.a)},H.prototype.at=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),wrapPointer(tVector3Array_at_1(e,t),h)},H.prototype.clear=H.prototype.clear=function(){tVector3Array_clear_0(this.a)},H.prototype.push_back=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),tVector3Array_push_back_1(e,t)},H.prototype.pop_back=function(){tVector3Array_pop_back_0(this.a)},H.prototype.__destroy__=function(){tVector3Array___destroy___0(this.a)},Yb.prototype=Object.create(sb.prototype),Yb.prototype.constructor=Yb,Yb.prototype.b=Yb,Yb.c={},o.btCylinderShapeX=Yb,Yb.prototype.setMargin=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCylinderShapeX_setMargin_1(e,t)},Yb.prototype.getMargin=function(){return btCylinderShapeX_getMargin_0(this.a)},Yb.prototype.setLocalScaling=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCylinderShapeX_setLocalScaling_1(e,t)},Yb.prototype.getLocalScaling=function(){return wrapPointer(btCylinderShapeX_getLocalScaling_0(this.a),h)},Yb.prototype.calculateLocalInertia=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btCylinderShapeX_calculateLocalInertia_2(o,t,e)},Yb.prototype.__destroy__=function(){btCylinderShapeX___destroy___0(this.a)},Zb.prototype=Object.create(sb.prototype),Zb.prototype.constructor=Zb,Zb.prototype.b=Zb,Zb.c={},o.btCylinderShapeZ=Zb,Zb.prototype.setMargin=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCylinderShapeZ_setMargin_1(e,t)},Zb.prototype.getMargin=function(){return btCylinderShapeZ_getMargin_0(this.a)},Zb.prototype.setLocalScaling=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCylinderShapeZ_setLocalScaling_1(e,t)},Zb.prototype.getLocalScaling=function(){return wrapPointer(btCylinderShapeZ_getLocalScaling_0(this.a),h)},Zb.prototype.calculateLocalInertia=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btCylinderShapeZ_calculateLocalInertia_2(o,t,e)},Zb.prototype.__destroy__=function(){btCylinderShapeZ___destroy___0(this.a)},$b.prototype=Object.create(WrapperObject.prototype),$b.prototype.constructor=$b,$b.prototype.b=$b,$b.c={},o.btSequentialImpulseConstraintSolver=$b,$b.prototype.__destroy__=function(){btSequentialImpulseConstraintSolver___destroy___0(this.a)},N.prototype=Object.create(WrapperObject.prototype),N.prototype.constructor=N,N.prototype.b=N,N.c={},o.RaycastInfo=N,N.prototype.get_m_contactNormalWS=function(){return wrapPointer(RaycastInfo_get_m_contactNormalWS_0(this.a),h)},N.prototype.set_m_contactNormalWS=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),RaycastInfo_set_m_contactNormalWS_1(e,t)},N.prototype.get_m_contactPointWS=function(){return wrapPointer(RaycastInfo_get_m_contactPointWS_0(this.a),h)},N.prototype.set_m_contactPointWS=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),RaycastInfo_set_m_contactPointWS_1(e,t)},N.prototype.get_m_suspensionLength=function(){return RaycastInfo_get_m_suspensionLength_0(this.a)},N.prototype.set_m_suspensionLength=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),RaycastInfo_set_m_suspensionLength_1(e,t)},N.prototype.get_m_hardPointWS=function(){return wrapPointer(RaycastInfo_get_m_hardPointWS_0(this.a),h)},N.prototype.set_m_hardPointWS=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),RaycastInfo_set_m_hardPointWS_1(e,t)},N.prototype.get_m_wheelDirectionWS=function(){return wrapPointer(RaycastInfo_get_m_wheelDirectionWS_0(this.a),h)},N.prototype.set_m_wheelDirectionWS=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),RaycastInfo_set_m_wheelDirectionWS_1(e,t)},N.prototype.get_m_wheelAxleWS=function(){return wrapPointer(RaycastInfo_get_m_wheelAxleWS_0(this.a),h)},N.prototype.set_m_wheelAxleWS=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),RaycastInfo_set_m_wheelAxleWS_1(e,t)},N.prototype.get_m_isInContact=function(){return!!RaycastInfo_get_m_isInContact_0(this.a)},N.prototype.set_m_isInContact=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),RaycastInfo_set_m_isInContact_1(e,t)},N.prototype.get_m_groundObject=function(){return RaycastInfo_get_m_groundObject_0(this.a)},N.prototype.set_m_groundObject=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),RaycastInfo_set_m_groundObject_1(e,t)},N.prototype.__destroy__=function(){RaycastInfo___destroy___0(this.a)},ac.prototype=Object.create(mb.prototype),ac.prototype.constructor=ac,ac.prototype.b=ac,ac.c={},o.btHeightfieldTerrainShape=ac,ac.prototype.setMargin=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btHeightfieldTerrainShape_setMargin_1(e,t)},ac.prototype.getMargin=function(){return btHeightfieldTerrainShape_getMargin_0(this.a)},ac.prototype.setLocalScaling=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btHeightfieldTerrainShape_setLocalScaling_1(e,t)},ac.prototype.getLocalScaling=function(){return wrapPointer(btHeightfieldTerrainShape_getLocalScaling_0(this.a),h)},ac.prototype.calculateLocalInertia=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btHeightfieldTerrainShape_calculateLocalInertia_2(o,t,e)},ac.prototype.__destroy__=function(){btHeightfieldTerrainShape___destroy___0(this.a)},Q.prototype=Object.create(u.prototype),Q.prototype.constructor=Q,Q.prototype.b=Q,Q.c={},o.btDiscreteDynamicsWorld=Q,Q.prototype.setGravity=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btDiscreteDynamicsWorld_setGravity_1(e,t)},Q.prototype.getGravity=function(){return wrapPointer(btDiscreteDynamicsWorld_getGravity_0(this.a),h)},Q.prototype.addRigidBody=function(t,e,o){var r=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),void 0===e?btDiscreteDynamicsWorld_addRigidBody_1(r,t):void 0===o?btDiscreteDynamicsWorld_addRigidBody_2(r,t,e):btDiscreteDynamicsWorld_addRigidBody_3(r,t,e,o)},Q.prototype.removeRigidBody=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btDiscreteDynamicsWorld_removeRigidBody_1(e,t)},Q.prototype.addConstraint=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),void 0===e?btDiscreteDynamicsWorld_addConstraint_1(o,t):btDiscreteDynamicsWorld_addConstraint_2(o,t,e)},Q.prototype.removeConstraint=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btDiscreteDynamicsWorld_removeConstraint_1(e,t)},Q.prototype.stepSimulation=function(t,e,o){var r=this.a;return t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),void 0===e?btDiscreteDynamicsWorld_stepSimulation_1(r,t):void 0===o?btDiscreteDynamicsWorld_stepSimulation_2(r,t,e):btDiscreteDynamicsWorld_stepSimulation_3(r,t,e,o)},Q.prototype.clearForces=function(){btDiscreteDynamicsWorld_clearForces_0(this.a)},Q.prototype.setApplySpeculativeContactRestitution=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btDiscreteDynamicsWorld_setApplySpeculativeContactRestitution_1(e,t)},Q.prototype.getApplySpeculativeContactRestitution=function(){return!!btDiscreteDynamicsWorld_getApplySpeculativeContactRestitution_0(this.a)},Q.prototype.getDispatcher=function(){return wrapPointer(btDiscreteDynamicsWorld_getDispatcher_0(this.a),jb)},Q.prototype.rayTest=function(t,e,o){var r=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),btDiscreteDynamicsWorld_rayTest_3(r,t,e,o)},Q.prototype.getPairCache=function(){return wrapPointer(btDiscreteDynamicsWorld_getPairCache_0(this.a),kb)},Q.prototype.getDispatchInfo=function(){return wrapPointer(btDiscreteDynamicsWorld_getDispatchInfo_0(this.a),p)},Q.prototype.addCollisionObject=function(t,e,o){var r=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),void 0===e?btDiscreteDynamicsWorld_addCollisionObject_1(r,t):void 0===o?btDiscreteDynamicsWorld_addCollisionObject_2(r,t,e):btDiscreteDynamicsWorld_addCollisionObject_3(r,t,e,o)},Q.prototype.removeCollisionObject=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btDiscreteDynamicsWorld_removeCollisionObject_1(e,t)},Q.prototype.getBroadphase=function(){return wrapPointer(btDiscreteDynamicsWorld_getBroadphase_0(this.a),lb)},Q.prototype.convexSweepTest=function(t,e,o,r,n){var a=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),r&&"object"==typeof r&&(r=r.a),n&&"object"==typeof n&&(n=n.a),btDiscreteDynamicsWorld_convexSweepTest_5(a,t,e,o,r,n)},Q.prototype.contactPairTest=function(t,e,o){var r=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),btDiscreteDynamicsWorld_contactPairTest_3(r,t,e,o)},Q.prototype.contactTest=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btDiscreteDynamicsWorld_contactTest_2(o,t,e)},Q.prototype.updateSingleAabb=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btDiscreteDynamicsWorld_updateSingleAabb_1(e,t)},Q.prototype.addAction=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btDiscreteDynamicsWorld_addAction_1(e,t)},Q.prototype.removeAction=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btDiscreteDynamicsWorld_removeAction_1(e,t)},Q.prototype.getSolverInfo=function(){return wrapPointer(btDiscreteDynamicsWorld_getSolverInfo_0(this.a),v)},Q.prototype.__destroy__=function(){btDiscreteDynamicsWorld___destroy___0(this.a)},bc.prototype=Object.create(WrapperObject.prototype),bc.prototype.constructor=bc,bc.prototype.b=bc,bc.c={},o.btGhostPairCallback=bc,bc.prototype.__destroy__=function(){btGhostPairCallback___destroy___0(this.a)},cc.prototype=Object.create(WrapperObject.prototype),cc.prototype.constructor=cc,cc.prototype.b=cc,cc.c={},o.btOverlappingPairCallback=cc,cc.prototype.__destroy__=function(){btOverlappingPairCallback___destroy___0(this.a)},R.prototype=Object.create(qb.prototype),R.prototype.constructor=R,R.prototype.b=R,R.c={},o.btKinematicCharacterController=R,R.prototype.setUp=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btKinematicCharacterController_setUp_1(e,t)},R.prototype.setWalkDirection=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btKinematicCharacterController_setWalkDirection_1(e,t)},R.prototype.setVelocityForTimeInterval=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btKinematicCharacterController_setVelocityForTimeInterval_2(o,t,e)},R.prototype.warp=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btKinematicCharacterController_warp_1(e,t)},R.prototype.preStep=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btKinematicCharacterController_preStep_1(e,t)},R.prototype.playerStep=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btKinematicCharacterController_playerStep_2(o,t,e)},R.prototype.setFallSpeed=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btKinematicCharacterController_setFallSpeed_1(e,t)},R.prototype.setJumpSpeed=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btKinematicCharacterController_setJumpSpeed_1(e,t)},R.prototype.setMaxJumpHeight=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btKinematicCharacterController_setMaxJumpHeight_1(e,t)},R.prototype.canJump=function(){return!!btKinematicCharacterController_canJump_0(this.a)},R.prototype.jump=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btKinematicCharacterController_jump_1(e,t)},R.prototype.setGravity=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btKinematicCharacterController_setGravity_1(e,t)},R.prototype.getGravity=function(){return wrapPointer(btKinematicCharacterController_getGravity_0(this.a),h)},R.prototype.setMaxSlope=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btKinematicCharacterController_setMaxSlope_1(e,t)},R.prototype.getMaxSlope=function(){return btKinematicCharacterController_getMaxSlope_0(this.a)},R.prototype.getGhostObject=function(){return wrapPointer(btKinematicCharacterController_getGhostObject_0(this.a),S)},R.prototype.setUseGhostSweepTest=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btKinematicCharacterController_setUseGhostSweepTest_1(e,t)},R.prototype.onGround=function(){return!!btKinematicCharacterController_onGround_0(this.a)},R.prototype.setUpInterpolate=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btKinematicCharacterController_setUpInterpolate_1(e,t)},R.prototype.updateAction=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btKinematicCharacterController_updateAction_2(o,t,e)},R.prototype.__destroy__=function(){btKinematicCharacterController___destroy___0(this.a)},dc.prototype=Object.create(mb.prototype),dc.prototype.constructor=dc,dc.prototype.b=dc,dc.c={},o.btStaticPlaneShape=dc,dc.prototype.setLocalScaling=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btStaticPlaneShape_setLocalScaling_1(e,t)},dc.prototype.getLocalScaling=function(){return wrapPointer(btStaticPlaneShape_getLocalScaling_0(this.a),h)},dc.prototype.calculateLocalInertia=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btStaticPlaneShape_calculateLocalInertia_2(o,t,e)},dc.prototype.__destroy__=function(){btStaticPlaneShape___destroy___0(this.a)},kb.prototype=Object.create(WrapperObject.prototype),kb.prototype.constructor=kb,kb.prototype.b=kb,kb.c={},o.btOverlappingPairCache=kb,kb.prototype.setInternalGhostPairCallback=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btOverlappingPairCache_setInternalGhostPairCallback_1(e,t)},kb.prototype.__destroy__=function(){btOverlappingPairCache___destroy___0(this.a)},Eb.prototype=Object.create(WrapperObject.prototype),Eb.prototype.constructor=Eb,Eb.prototype.b=Eb,Eb.c={},o.tBtCollisionObjectArray=Eb,Eb.prototype.size=Eb.prototype.size=function(){return tBtCollisionObjectArray_size_0(this.a)},Eb.prototype.at=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),wrapPointer(tBtCollisionObjectArray_at_1(e,t),k)},Eb.prototype.clear=Eb.prototype.clear=function(){tBtCollisionObjectArray_clear_0(this.a)},Eb.prototype.push_back=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),tBtCollisionObjectArray_push_back_1(e,t)},Eb.prototype.pop_back=function(){tBtCollisionObjectArray_pop_back_0(this.a)},Eb.prototype.__destroy__=function(){tBtCollisionObjectArray___destroy___0(this.a)},ec.prototype=Object.create(m.prototype),ec.prototype.constructor=ec,ec.prototype.b=ec,ec.c={},o.btFixedConstraint=ec,ec.prototype.enableFeedback=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btFixedConstraint_enableFeedback_1(e,t)},ec.prototype.getBreakingImpulseThreshold=function(){return btFixedConstraint_getBreakingImpulseThreshold_0(this.a)},ec.prototype.setBreakingImpulseThreshold=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btFixedConstraint_setBreakingImpulseThreshold_1(e,t)},ec.prototype.getParam=function(t,e){var o=this.a;return t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btFixedConstraint_getParam_2(o,t,e)},ec.prototype.setParam=function(t,e,o){var r=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),btFixedConstraint_setParam_3(r,t,e,o)},ec.prototype.__destroy__=function(){btFixedConstraint___destroy___0(this.a)},l.prototype=Object.create(WrapperObject.prototype),l.prototype.constructor=l,l.prototype.b=l,l.c={},o.btTransform=l,l.prototype.setIdentity=function(){btTransform_setIdentity_0(this.a)},l.prototype.setOrigin=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btTransform_setOrigin_1(e,t)},l.prototype.setRotation=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btTransform_setRotation_1(e,t)},l.prototype.getOrigin=function(){return wrapPointer(btTransform_getOrigin_0(this.a),h)},l.prototype.getRotation=function(){return wrapPointer(btTransform_getRotation_0(this.a),T)},l.prototype.getBasis=function(){return wrapPointer(btTransform_getBasis_0(this.a),zb)},l.prototype.setFromOpenGLMatrix=function(t){var e=this.a;if(Bt){for(var r=0;r<Ft.length;r++)o._free(Ft[r]);Ft.length=0,o._free(Dt),Dt=0,Lt+=Bt,Bt=0}if(Dt||(Lt+=128,assert(Dt=o._malloc(Lt))),xt=0,"object"==typeof t&&"object"==typeof t){if(assert(Dt),r=t.length*nt.BYTES_PER_ELEMENT,xt+(r=r+7&-8)>=Lt){assert(0<r),Bt+=r;var n=o._malloc(r);Ft.push(n)}else n=Dt+xt,xt+=r;switch(n=r=n,nt.BYTES_PER_ELEMENT){case 2:n>>=1;break;case 4:n>>=2;break;case 8:n>>=3}for(var a=0;a<t.length;a++)nt[n+a]=t[a];t=r}btTransform_setFromOpenGLMatrix_1(e,t)},l.prototype.__destroy__=function(){btTransform___destroy___0(this.a)},U.prototype=Object.create(A.prototype),U.prototype.constructor=U,U.prototype.b=U,U.c={},o.ClosestRayResultCallback=U,U.prototype.hasHit=function(){return!!ClosestRayResultCallback_hasHit_0(this.a)},U.prototype.get_m_rayFromWorld=function(){return wrapPointer(ClosestRayResultCallback_get_m_rayFromWorld_0(this.a),h)},U.prototype.set_m_rayFromWorld=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),ClosestRayResultCallback_set_m_rayFromWorld_1(e,t)},U.prototype.get_m_rayToWorld=function(){return wrapPointer(ClosestRayResultCallback_get_m_rayToWorld_0(this.a),h)},U.prototype.set_m_rayToWorld=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),ClosestRayResultCallback_set_m_rayToWorld_1(e,t)},U.prototype.get_m_hitNormalWorld=function(){return wrapPointer(ClosestRayResultCallback_get_m_hitNormalWorld_0(this.a),h)},U.prototype.set_m_hitNormalWorld=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),ClosestRayResultCallback_set_m_hitNormalWorld_1(e,t)},U.prototype.get_m_hitPointWorld=function(){return wrapPointer(ClosestRayResultCallback_get_m_hitPointWorld_0(this.a),h)},U.prototype.set_m_hitPointWorld=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),ClosestRayResultCallback_set_m_hitPointWorld_1(e,t)},U.prototype.get_m_collisionFilterGroup=function(){return ClosestRayResultCallback_get_m_collisionFilterGroup_0(this.a)},U.prototype.set_m_collisionFilterGroup=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),ClosestRayResultCallback_set_m_collisionFilterGroup_1(e,t)},U.prototype.get_m_collisionFilterMask=function(){return ClosestRayResultCallback_get_m_collisionFilterMask_0(this.a)},U.prototype.set_m_collisionFilterMask=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),ClosestRayResultCallback_set_m_collisionFilterMask_1(e,t)},U.prototype.get_m_closestHitFraction=function(){return ClosestRayResultCallback_get_m_closestHitFraction_0(this.a)},U.prototype.set_m_closestHitFraction=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),ClosestRayResultCallback_set_m_closestHitFraction_1(e,t)},U.prototype.get_m_collisionObject=function(){return wrapPointer(ClosestRayResultCallback_get_m_collisionObject_0(this.a),k)},U.prototype.set_m_collisionObject=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),ClosestRayResultCallback_set_m_collisionObject_1(e,t)},U.prototype.__destroy__=function(){ClosestRayResultCallback___destroy___0(this.a)},V.prototype=Object.create(z.prototype),V.prototype.constructor=V,V.prototype.b=V,V.c={},o.AllConvexResultCallback=V,V.prototype.hasHit=function(){return!!AllConvexResultCallback_hasHit_0(this.a)},V.prototype.get_m_convexFromWorld=function(){return wrapPointer(AllConvexResultCallback_get_m_convexFromWorld_0(this.a),h)},V.prototype.set_m_convexFromWorld=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),AllConvexResultCallback_set_m_convexFromWorld_1(e,t)},V.prototype.get_m_convexToWorld=function(){return wrapPointer(AllConvexResultCallback_get_m_convexToWorld_0(this.a),h)},V.prototype.set_m_convexToWorld=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),AllConvexResultCallback_set_m_convexToWorld_1(e,t)},V.prototype.get_m_hitNormalWorld=function(){return wrapPointer(AllConvexResultCallback_get_m_hitNormalWorld_0(this.a),H)},V.prototype.set_m_hitNormalWorld=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),AllConvexResultCallback_set_m_hitNormalWorld_1(e,t)},V.prototype.get_m_hitPointWorld=function(){return wrapPointer(AllConvexResultCallback_get_m_hitPointWorld_0(this.a),H)},V.prototype.set_m_hitPointWorld=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),AllConvexResultCallback_set_m_hitPointWorld_1(e,t)},V.prototype.get_m_hitFractions=function(){return wrapPointer(AllConvexResultCallback_get_m_hitFractions_0(this.a),Fb)},V.prototype.set_m_hitFractions=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),AllConvexResultCallback_set_m_hitFractions_1(e,t)},V.prototype.get_m_collisionObjects=function(){return wrapPointer(AllConvexResultCallback_get_m_collisionObjects_0(this.a),Eb)},V.prototype.set_m_collisionObjects=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),AllConvexResultCallback_set_m_collisionObjects_1(e,t)},V.prototype.get_m_collisionFilterGroup=function(){return AllConvexResultCallback_get_m_collisionFilterGroup_0(this.a)},V.prototype.set_m_collisionFilterGroup=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),AllConvexResultCallback_set_m_collisionFilterGroup_1(e,t)},V.prototype.get_m_collisionFilterMask=function(){return AllConvexResultCallback_get_m_collisionFilterMask_0(this.a)},V.prototype.set_m_collisionFilterMask=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),AllConvexResultCallback_set_m_collisionFilterMask_1(e,t)},V.prototype.get_m_closestHitFraction=function(){return AllConvexResultCallback_get_m_closestHitFraction_0(this.a)},V.prototype.set_m_closestHitFraction=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),AllConvexResultCallback_set_m_closestHitFraction_1(e,t)},V.prototype.__destroy__=function(){AllConvexResultCallback___destroy___0(this.a)},fc.prototype=Object.create(yb.prototype),fc.prototype.constructor=fc,fc.prototype.b=fc,fc.c={},o.ConcreteContactResultCallback=fc,fc.prototype.addSingleResult=function(t,e,o,r,n,a,i){var p=this.a;return t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),r&&"object"==typeof r&&(r=r.a),n&&"object"==typeof n&&(n=n.a),a&&"object"==typeof a&&(a=a.a),i&&"object"==typeof i&&(i=i.a),ConcreteContactResultCallback_addSingleResult_7(p,t,e,o,r,n,a,i)},fc.prototype.__destroy__=function(){ConcreteContactResultCallback___destroy___0(this.a)},hc.prototype=Object.create(ob.prototype),hc.prototype.constructor=hc,hc.prototype.b=hc,hc.c={},o.btBvhTriangleMeshShape=hc,hc.prototype.setLocalScaling=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btBvhTriangleMeshShape_setLocalScaling_1(e,t)},hc.prototype.getLocalScaling=function(){return wrapPointer(btBvhTriangleMeshShape_getLocalScaling_0(this.a),h)},hc.prototype.calculateLocalInertia=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btBvhTriangleMeshShape_calculateLocalInertia_2(o,t,e)},hc.prototype.__destroy__=function(){btBvhTriangleMeshShape___destroy___0(this.a)},W.prototype=Object.create(m.prototype),W.prototype.constructor=W,W.prototype.b=W,W.c={},o.btSliderConstraint=W,W.prototype.setLowerLinLimit=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btSliderConstraint_setLowerLinLimit_1(e,t)},W.prototype.setUpperLinLimit=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btSliderConstraint_setUpperLinLimit_1(e,t)},W.prototype.setLowerAngLimit=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btSliderConstraint_setLowerAngLimit_1(e,t)},W.prototype.setUpperAngLimit=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btSliderConstraint_setUpperAngLimit_1(e,t)},W.prototype.enableFeedback=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btSliderConstraint_enableFeedback_1(e,t)},W.prototype.getBreakingImpulseThreshold=function(){return btSliderConstraint_getBreakingImpulseThreshold_0(this.a)},W.prototype.setBreakingImpulseThreshold=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btSliderConstraint_setBreakingImpulseThreshold_1(e,t)},W.prototype.getParam=function(t,e){var o=this.a;return t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btSliderConstraint_getParam_2(o,t,e)},W.prototype.setParam=function(t,e,o){var r=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),btSliderConstraint_setParam_3(r,t,e,o)},W.prototype.__destroy__=function(){btSliderConstraint___destroy___0(this.a)},S.prototype=Object.create(w.prototype),S.prototype.constructor=S,S.prototype.b=S,S.c={},o.btPairCachingGhostObject=S,S.prototype.setAnisotropicFriction=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btPairCachingGhostObject_setAnisotropicFriction_2(o,t,e)},S.prototype.getCollisionShape=function(){return wrapPointer(btPairCachingGhostObject_getCollisionShape_0(this.a),f)},S.prototype.setContactProcessingThreshold=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btPairCachingGhostObject_setContactProcessingThreshold_1(e,t)},S.prototype.setActivationState=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btPairCachingGhostObject_setActivationState_1(e,t)},S.prototype.forceActivationState=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btPairCachingGhostObject_forceActivationState_1(e,t)},S.prototype.activate=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),void 0===t?btPairCachingGhostObject_activate_0(e):btPairCachingGhostObject_activate_1(e,t)},S.prototype.isActive=function(){return!!btPairCachingGhostObject_isActive_0(this.a)},S.prototype.isKinematicObject=function(){return!!btPairCachingGhostObject_isKinematicObject_0(this.a)},S.prototype.isStaticObject=function(){return!!btPairCachingGhostObject_isStaticObject_0(this.a)},S.prototype.isStaticOrKinematicObject=function(){return!!btPairCachingGhostObject_isStaticOrKinematicObject_0(this.a)},S.prototype.getRestitution=function(){return btPairCachingGhostObject_getRestitution_0(this.a)},S.prototype.setRestitution=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btPairCachingGhostObject_setRestitution_1(e,t)},S.prototype.getFriction=function(){return btPairCachingGhostObject_getFriction_0(this.a)},S.prototype.setFriction=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btPairCachingGhostObject_setFriction_1(e,t)},S.prototype.getRollingFriction=function(){return btPairCachingGhostObject_getRollingFriction_0(this.a)},S.prototype.setRollingFriction=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btPairCachingGhostObject_setRollingFriction_1(e,t)},S.prototype.getCollisionFlags=function(){return btPairCachingGhostObject_getCollisionFlags_0(this.a)},S.prototype.setCollisionFlags=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btPairCachingGhostObject_setCollisionFlags_1(e,t)},S.prototype.getWorldTransform=function(){return wrapPointer(btPairCachingGhostObject_getWorldTransform_0(this.a),l)},S.prototype.setWorldTransform=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btPairCachingGhostObject_setWorldTransform_1(e,t)},S.prototype.setCollisionShape=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btPairCachingGhostObject_setCollisionShape_1(e,t)},S.prototype.getCcdMotionThreshold=function(){return btPairCachingGhostObject_getCcdMotionThreshold_0(this.a)},S.prototype.setCcdMotionThreshold=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btPairCachingGhostObject_setCcdMotionThreshold_1(e,t)},S.prototype.getCcdSweptSphereRadius=function(){return btPairCachingGhostObject_getCcdSweptSphereRadius_0(this.a)},S.prototype.setCcdSweptSphereRadius=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btPairCachingGhostObject_setCcdSweptSphereRadius_1(e,t)},S.prototype.getUserIndex=function(){return btPairCachingGhostObject_getUserIndex_0(this.a)},S.prototype.setUserIndex=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btPairCachingGhostObject_setUserIndex_1(e,t)},S.prototype.getUserPointer=function(){return wrapPointer(btPairCachingGhostObject_getUserPointer_0(this.a),VoidPtr)},S.prototype.setUserPointer=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btPairCachingGhostObject_setUserPointer_1(e,t)},S.prototype.getInterpolationAngularVelocity=function(){return wrapPointer(btPairCachingGhostObject_getInterpolationAngularVelocity_0(this.a),h)},S.prototype.setInterpolationAngularVelocity=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btPairCachingGhostObject_setInterpolationAngularVelocity_1(e,t)},S.prototype.getInterpolationLinearVelocity=function(){return wrapPointer(btPairCachingGhostObject_getInterpolationLinearVelocity_0(this.a),h)},S.prototype.setInterpolationLinearVelocity=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btPairCachingGhostObject_setInterpolationLinearVelocity_1(e,t)},S.prototype.getBroadphaseHandle=function(){return wrapPointer(btPairCachingGhostObject_getBroadphaseHandle_0(this.a),ib)},S.prototype.getActivationState=function(){return btPairCachingGhostObject_getActivationState_0(this.a)},S.prototype.getNumOverlappingObjects=function(){return btPairCachingGhostObject_getNumOverlappingObjects_0(this.a)},S.prototype.getOverlappingObject=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),wrapPointer(btPairCachingGhostObject_getOverlappingObject_1(e,t),k)},S.prototype.__destroy__=function(){btPairCachingGhostObject___destroy___0(this.a)},D.prototype=Object.create(WrapperObject.prototype),D.prototype.constructor=D,D.prototype.b=D,D.c={},o.btManifoldPoint=D,D.prototype.getPositionWorldOnA=function(){return wrapPointer(btManifoldPoint_getPositionWorldOnA_0(this.a),h)},D.prototype.getPositionWorldOnB=function(){return wrapPointer(btManifoldPoint_getPositionWorldOnB_0(this.a),h)},D.prototype.getAppliedImpulse=function(){return btManifoldPoint_getAppliedImpulse_0(this.a)},D.prototype.getDistance=function(){return btManifoldPoint_getDistance_0(this.a)},D.prototype.get_m_localPointA=function(){return wrapPointer(btManifoldPoint_get_m_localPointA_0(this.a),h)},D.prototype.set_m_localPointA=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btManifoldPoint_set_m_localPointA_1(e,t)},D.prototype.get_m_localPointB=function(){return wrapPointer(btManifoldPoint_get_m_localPointB_0(this.a),h)},D.prototype.set_m_localPointB=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btManifoldPoint_set_m_localPointB_1(e,t)},D.prototype.get_m_positionWorldOnB=function(){return wrapPointer(btManifoldPoint_get_m_positionWorldOnB_0(this.a),h)},D.prototype.set_m_positionWorldOnB=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btManifoldPoint_set_m_positionWorldOnB_1(e,t)},D.prototype.get_m_positionWorldOnA=function(){return wrapPointer(btManifoldPoint_get_m_positionWorldOnA_0(this.a),h)},D.prototype.set_m_positionWorldOnA=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btManifoldPoint_set_m_positionWorldOnA_1(e,t)},D.prototype.get_m_normalWorldOnB=function(){return wrapPointer(btManifoldPoint_get_m_normalWorldOnB_0(this.a),h)},D.prototype.set_m_normalWorldOnB=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btManifoldPoint_set_m_normalWorldOnB_1(e,t)},D.prototype.__destroy__=function(){btManifoldPoint___destroy___0(this.a)},X.prototype=Object.create(m.prototype),X.prototype.constructor=X,X.prototype.b=X,X.c={},o.btPoint2PointConstraint=X,X.prototype.setPivotA=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btPoint2PointConstraint_setPivotA_1(e,t)},X.prototype.setPivotB=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btPoint2PointConstraint_setPivotB_1(e,t)},X.prototype.getPivotInA=function(){return wrapPointer(btPoint2PointConstraint_getPivotInA_0(this.a),h)},X.prototype.getPivotInB=function(){return wrapPointer(btPoint2PointConstraint_getPivotInB_0(this.a),h)},X.prototype.enableFeedback=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btPoint2PointConstraint_enableFeedback_1(e,t)},X.prototype.getBreakingImpulseThreshold=function(){return btPoint2PointConstraint_getBreakingImpulseThreshold_0(this.a)},X.prototype.setBreakingImpulseThreshold=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btPoint2PointConstraint_setBreakingImpulseThreshold_1(e,t)},X.prototype.getParam=function(t,e){var o=this.a;return t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btPoint2PointConstraint_getParam_2(o,t,e)},X.prototype.setParam=function(t,e,o){var r=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),btPoint2PointConstraint_setParam_3(r,t,e,o)},X.prototype.get_m_setting=function(){return wrapPointer(btPoint2PointConstraint_get_m_setting_0(this.a),Hb)},X.prototype.set_m_setting=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btPoint2PointConstraint_set_m_setting_1(e,t)},X.prototype.__destroy__=function(){btPoint2PointConstraint___destroy___0(this.a)},ib.prototype=Object.create(WrapperObject.prototype),ib.prototype.constructor=ib,ib.prototype.b=ib,ib.c={},o.btBroadphaseProxy=ib,ib.prototype.get_m_collisionFilterGroup=function(){return btBroadphaseProxy_get_m_collisionFilterGroup_0(this.a)},ib.prototype.set_m_collisionFilterGroup=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btBroadphaseProxy_set_m_collisionFilterGroup_1(e,t)},ib.prototype.get_m_collisionFilterMask=function(){return btBroadphaseProxy_get_m_collisionFilterMask_0(this.a)},ib.prototype.set_m_collisionFilterMask=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btBroadphaseProxy_set_m_collisionFilterMask_1(e,t)},ib.prototype.__destroy__=function(){btBroadphaseProxy___destroy___0(this.a)},Y.prototype=Object.create(y.prototype),Y.prototype.constructor=Y,Y.prototype.b=Y,Y.c={},o.btGeneric6DofSpringConstraint=Y,Y.prototype.enableSpring=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btGeneric6DofSpringConstraint_enableSpring_2(o,t,e)},Y.prototype.setStiffness=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btGeneric6DofSpringConstraint_setStiffness_2(o,t,e)},Y.prototype.setDamping=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btGeneric6DofSpringConstraint_setDamping_2(o,t,e)},Y.prototype.setLinearLowerLimit=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGeneric6DofSpringConstraint_setLinearLowerLimit_1(e,t)},Y.prototype.setLinearUpperLimit=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGeneric6DofSpringConstraint_setLinearUpperLimit_1(e,t)},Y.prototype.setAngularLowerLimit=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGeneric6DofSpringConstraint_setAngularLowerLimit_1(e,t)},Y.prototype.setAngularUpperLimit=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGeneric6DofSpringConstraint_setAngularUpperLimit_1(e,t)},Y.prototype.getFrameOffsetA=function(){return wrapPointer(btGeneric6DofSpringConstraint_getFrameOffsetA_0(this.a),l)},Y.prototype.enableFeedback=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGeneric6DofSpringConstraint_enableFeedback_1(e,t)},Y.prototype.getBreakingImpulseThreshold=function(){return btGeneric6DofSpringConstraint_getBreakingImpulseThreshold_0(this.a)},Y.prototype.setBreakingImpulseThreshold=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btGeneric6DofSpringConstraint_setBreakingImpulseThreshold_1(e,t)},Y.prototype.getParam=function(t,e){var o=this.a;return t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btGeneric6DofSpringConstraint_getParam_2(o,t,e)},Y.prototype.setParam=function(t,e,o){var r=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),btGeneric6DofSpringConstraint_setParam_3(r,t,e,o)},Y.prototype.__destroy__=function(){btGeneric6DofSpringConstraint___destroy___0(this.a)},ic.prototype=Object.create(f.prototype),ic.prototype.constructor=ic,ic.prototype.b=ic,ic.c={},o.btBoxShape=ic,ic.prototype.setMargin=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btBoxShape_setMargin_1(e,t)},ic.prototype.getMargin=function(){return btBoxShape_getMargin_0(this.a)},ic.prototype.setLocalScaling=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btBoxShape_setLocalScaling_1(e,t)},ic.prototype.getLocalScaling=function(){return wrapPointer(btBoxShape_getLocalScaling_0(this.a),h)},ic.prototype.calculateLocalInertia=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btBoxShape_calculateLocalInertia_2(o,t,e)},ic.prototype.__destroy__=function(){btBoxShape___destroy___0(this.a)},jc.prototype=Object.create(r.prototype),jc.prototype.constructor=jc,jc.prototype.b=jc,jc.c={},o.btCapsuleShapeX=jc,jc.prototype.setMargin=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCapsuleShapeX_setMargin_1(e,t)},jc.prototype.getMargin=function(){return btCapsuleShapeX_getMargin_0(this.a)},jc.prototype.getUpAxis=function(){return btCapsuleShapeX_getUpAxis_0(this.a)},jc.prototype.getRadius=function(){return btCapsuleShapeX_getRadius_0(this.a)},jc.prototype.getHalfHeight=function(){return btCapsuleShapeX_getHalfHeight_0(this.a)},jc.prototype.setLocalScaling=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCapsuleShapeX_setLocalScaling_1(e,t)},jc.prototype.getLocalScaling=function(){return wrapPointer(btCapsuleShapeX_getLocalScaling_0(this.a),h)},jc.prototype.calculateLocalInertia=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btCapsuleShapeX_calculateLocalInertia_2(o,t,e)},jc.prototype.__destroy__=function(){btCapsuleShapeX___destroy___0(this.a)},T.prototype=Object.create(x.prototype),T.prototype.constructor=T,T.prototype.b=T,T.c={},o.btQuaternion=T,T.prototype.setValue=function(t,e,o,r){var n=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),r&&"object"==typeof r&&(r=r.a),btQuaternion_setValue_4(n,t,e,o,r)},T.prototype.setEulerZYX=function(t,e,o){var r=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),o&&"object"==typeof o&&(o=o.a),btQuaternion_setEulerZYX_3(r,t,e,o)},T.prototype.setRotation=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btQuaternion_setRotation_2(o,t,e)},T.prototype.normalize=T.prototype.normalize=function(){btQuaternion_normalize_0(this.a)},T.prototype.length2=function(){return btQuaternion_length2_0(this.a)},T.prototype.length=T.prototype.length=function(){return btQuaternion_length_0(this.a)},T.prototype.dot=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),btQuaternion_dot_1(e,t)},T.prototype.normalized=function(){return wrapPointer(btQuaternion_normalized_0(this.a),T)},T.prototype.getAxis=function(){return wrapPointer(btQuaternion_getAxis_0(this.a),h)},T.prototype.inverse=T.prototype.inverse=function(){return wrapPointer(btQuaternion_inverse_0(this.a),T)},T.prototype.getAngle=function(){return btQuaternion_getAngle_0(this.a)},T.prototype.getAngleShortestPath=function(){return btQuaternion_getAngleShortestPath_0(this.a)},T.prototype.angle=T.prototype.angle=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),btQuaternion_angle_1(e,t)},T.prototype.angleShortestPath=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),btQuaternion_angleShortestPath_1(e,t)},T.prototype.op_add=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),wrapPointer(btQuaternion_op_add_1(e,t),T)},T.prototype.op_sub=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),wrapPointer(btQuaternion_op_sub_1(e,t),T)},T.prototype.op_mul=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),wrapPointer(btQuaternion_op_mul_1(e,t),T)},T.prototype.op_mulq=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),wrapPointer(btQuaternion_op_mulq_1(e,t),T)},T.prototype.op_div=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),wrapPointer(btQuaternion_op_div_1(e,t),T)},T.prototype.x=T.prototype.x=function(){return btQuaternion_x_0(this.a)},T.prototype.y=T.prototype.y=function(){return btQuaternion_y_0(this.a)},T.prototype.z=T.prototype.z=function(){return btQuaternion_z_0(this.a)},T.prototype.w=function(){return btQuaternion_w_0(this.a)},T.prototype.setX=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btQuaternion_setX_1(e,t)},T.prototype.setY=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btQuaternion_setY_1(e,t)},T.prototype.setZ=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btQuaternion_setZ_1(e,t)},T.prototype.setW=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btQuaternion_setW_1(e,t)},T.prototype.__destroy__=function(){btQuaternion___destroy___0(this.a)},kc.prototype=Object.create(r.prototype),kc.prototype.constructor=kc,kc.prototype.b=kc,kc.c={},o.btCapsuleShapeZ=kc,kc.prototype.setMargin=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCapsuleShapeZ_setMargin_1(e,t)},kc.prototype.getMargin=function(){return btCapsuleShapeZ_getMargin_0(this.a)},kc.prototype.getUpAxis=function(){return btCapsuleShapeZ_getUpAxis_0(this.a)},kc.prototype.getRadius=function(){return btCapsuleShapeZ_getRadius_0(this.a)},kc.prototype.getHalfHeight=function(){return btCapsuleShapeZ_getHalfHeight_0(this.a)},kc.prototype.setLocalScaling=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btCapsuleShapeZ_setLocalScaling_1(e,t)},kc.prototype.getLocalScaling=function(){return wrapPointer(btCapsuleShapeZ_getLocalScaling_0(this.a),h)},kc.prototype.calculateLocalInertia=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btCapsuleShapeZ_calculateLocalInertia_2(o,t,e)},kc.prototype.__destroy__=function(){btCapsuleShapeZ___destroy___0(this.a)},v.prototype=Object.create(WrapperObject.prototype),v.prototype.constructor=v,v.prototype.b=v,v.c={},o.btContactSolverInfo=v,v.prototype.get_m_solverMode=function(){return btContactSolverInfo_get_m_solverMode_0(this.a)},v.prototype.set_m_solverMode=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btContactSolverInfo_set_m_solverMode_1(e,t)},v.prototype.get_m_splitImpulse=function(){return!!btContactSolverInfo_get_m_splitImpulse_0(this.a)},v.prototype.set_m_splitImpulse=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btContactSolverInfo_set_m_splitImpulse_1(e,t)},v.prototype.get_m_splitImpulsePenetrationThreshold=function(){return btContactSolverInfo_get_m_splitImpulsePenetrationThreshold_0(this.a)},v.prototype.set_m_splitImpulsePenetrationThreshold=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btContactSolverInfo_set_m_splitImpulsePenetrationThreshold_1(e,t)},v.prototype.get_m_numIterations=function(){return btContactSolverInfo_get_m_numIterations_0(this.a)},v.prototype.set_m_numIterations=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btContactSolverInfo_set_m_numIterations_1(e,t)},v.prototype.__destroy__=function(){btContactSolverInfo___destroy___0(this.a)},Fb.prototype=Object.create(WrapperObject.prototype),Fb.prototype.constructor=Fb,Fb.prototype.b=Fb,Fb.c={},o.tScalarArray=Fb,Fb.prototype.size=Fb.prototype.size=function(){return tScalarArray_size_0(this.a)},Fb.prototype.at=function(t){var e=this.a;return t&&"object"==typeof t&&(t=t.a),tScalarArray_at_1(e,t)},Fb.prototype.clear=Fb.prototype.clear=function(){tScalarArray_clear_0(this.a)},Fb.prototype.push_back=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),tScalarArray_push_back_1(e,t)},Fb.prototype.pop_back=function(){tScalarArray_pop_back_0(this.a)},Fb.prototype.__destroy__=function(){tScalarArray___destroy___0(this.a)},lc.prototype=Object.create(f.prototype),lc.prototype.constructor=lc,lc.prototype.b=lc,lc.c={},o.btSphereShape=lc,lc.prototype.setMargin=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btSphereShape_setMargin_1(e,t)},lc.prototype.getMargin=function(){return btSphereShape_getMargin_0(this.a)},lc.prototype.setLocalScaling=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),btSphereShape_setLocalScaling_1(e,t)},lc.prototype.getLocalScaling=function(){return wrapPointer(btSphereShape_getLocalScaling_0(this.a),h)},lc.prototype.calculateLocalInertia=function(t,e){var o=this.a;t&&"object"==typeof t&&(t=t.a),e&&"object"==typeof e&&(e=e.a),btSphereShape_calculateLocalInertia_2(o,t,e)},lc.prototype.__destroy__=function(){btSphereShape___destroy___0(this.a)},Z.prototype=Object.create(WrapperObject.prototype),Z.prototype.constructor=Z,Z.prototype.b=Z,Z.c={},o.LocalConvexResult=Z,Z.prototype.get_m_hitCollisionObject=function(){return wrapPointer(LocalConvexResult_get_m_hitCollisionObject_0(this.a),k)},Z.prototype.set_m_hitCollisionObject=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),LocalConvexResult_set_m_hitCollisionObject_1(e,t)},Z.prototype.get_m_localShapeInfo=function(){return wrapPointer(LocalConvexResult_get_m_localShapeInfo_0(this.a),Ib)},Z.prototype.set_m_localShapeInfo=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),LocalConvexResult_set_m_localShapeInfo_1(e,t)},Z.prototype.get_m_hitNormalLocal=function(){return wrapPointer(LocalConvexResult_get_m_hitNormalLocal_0(this.a),h)},Z.prototype.set_m_hitNormalLocal=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),LocalConvexResult_set_m_hitNormalLocal_1(e,t)},Z.prototype.get_m_hitPointLocal=function(){return wrapPointer(LocalConvexResult_get_m_hitPointLocal_0(this.a),h)},Z.prototype.set_m_hitPointLocal=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),LocalConvexResult_set_m_hitPointLocal_1(e,t)},Z.prototype.get_m_hitFraction=function(){return LocalConvexResult_get_m_hitFraction_0(this.a)},Z.prototype.set_m_hitFraction=function(t){var e=this.a;t&&"object"==typeof t&&(t=t.a),LocalConvexResult_set_m_hitFraction_1(e,t)},Z.prototype.__destroy__=function(){LocalConvexResult___destroy___0(this.a)},function(){function a(){o.BT_CONSTRAINT_ERP=enum_btConstraintParams_BT_CONSTRAINT_ERP(),o.BT_CONSTRAINT_STOP_ERP=enum_btConstraintParams_BT_CONSTRAINT_STOP_ERP(),o.BT_CONSTRAINT_CFM=enum_btConstraintParams_BT_CONSTRAINT_CFM(),o.BT_CONSTRAINT_STOP_CFM=enum_btConstraintParams_BT_CONSTRAINT_STOP_CFM(),o.PHY_FLOAT=enum_PHY_ScalarType_PHY_FLOAT(),o.PHY_DOUBLE=enum_PHY_ScalarType_PHY_DOUBLE(),o.PHY_INTEGER=enum_PHY_ScalarType_PHY_INTEGER(),o.PHY_SHORT=enum_PHY_ScalarType_PHY_SHORT(),o.PHY_FIXEDPOINT88=enum_PHY_ScalarType_PHY_FIXEDPOINT88(),o.PHY_UCHAR=enum_PHY_ScalarType_PHY_UCHAR()}o.calledRun?a():ht.unshift(a)}(),o._btGImpactCollisionAlgorithm_RegisterAlgorithm=function(t){t&&"object"==typeof t&&(t=t.a),btGImpactCollisionAlgorithm_RegisterAlgorithm(t)},window.Physics3D=o,e}}();"object"==typeof exports&&"object"==typeof module?module.exports=Physics3D:"function"==typeof define&&define.amd?define([],function(){return Physics3D}):"object"==typeof exports&&(exports.Physics3D=Physics3D);