Jump to content

ToB exporter and collision or babylon physics plugin problem


ian
 Share

Recommended Posts

Hi again.

I make model as simple as possible. Just Basic Sphere and box colliders.
I export it with ToB Exporter to get ModelFinish_Base.js. I include this in playground. I created  complete playground.
I include playground in attached .zip file.
Because I can not save playground!
 

ToLong.thumb.png.ab1ef701a6f8b9c64d4c7a7598d42c97.png

Download attached file unzip and copy text from BabylonJS_ToB_Physics_Collision_Problem_Playground.js and paste it in playground and run it.

I would like to know why .physicsImpostor doesn't work? Can anybody debug this and find a problem? Is there problem with babylonjs plugin, cannon or ToB exporter ???
 

playground_and_files.zip

Link to comment
Share on other sites

I use preview version! (todays Babylonjs-master and Extensions-master)

I have to include more section that playgournd works.

 

// GLOBAL VARIABLES

and

//BEGIN QueuedInterpolation.1.1.js

...

// END QueuedInterpolation.1.1.js

and

// BEGIN ModelFinishBase.js (Exported from Tower Of Bable)

..

// END ModelFinishBase.js (Exported from Tower Of Bable)

and final main code

// BEGIN MAIN

...
// END MAIN

 

 

 

 

 

Link to comment
Share on other sites

Ok, I got around to making a template for Tower of Babel playgrounds.  See https://www.babylonjs-playground.com/#7A1HBH

You can rely on the source of QueuedInterpolation.js being there.  When your export file is too big, even after stripping out everything possible, you will need to put it on a server with https & bring it in on the fly too.  Bringing in 2 JS files dynamically is asking for trouble, since it is async.  you will most likely get an error.  Hit the run button again.

Maybe not be the best PG, but asking people to go thru some process, is not going to work.

In your case, all Tower of Babel export code is doing is creating geometry.  Very similar to the import of a .babylon file.  In fact, I modified the Blender .babylon exporter to export the imposter of instance too.

Link to comment
Share on other sites

OK JCPalmer Thank you for this. I'll try to create my playground as you do....
 

 

But

if you take a look in my previous post, I don't know when I  importer ToB Scene  (playground_and_files.zip)

this code doesn't work (physics doesn't work)..

This line in code of ToB exporterd ModelFinish_Base.js file. I used the latest ToB exporter.
Even if I change your code like it is commented It still doesn't work?
Do you have any advice what could be wrong?

this.physicsImpostor = new _B.PhysicsImpostor(this, 1, { mass: 1, friction: .5, restitution: 0}, scene);            
//this.physicsImpostor = new BABYLON.PhysicsImpostor( this, BABYLON.PhysicsImpostor.SphereImpostor, { mass : 1, friction : 0.5, restitution : 0 }, scene);

and


this.physicsImpostor = new _B.PhysicsImpostor(this, 2, { mass: 0, friction: .5, restitution: 0}, scene);
//this.physicsImpostor = new BABYLON.PhysicsImpostor( this, BABYLON.PhysicsImpostor.BoxImpostor, { mass : 0, friction : 0.5, restitution : 0 }, scene);            this.physicsImpostor = new 

 

Greetings,
Ian

Link to comment
Share on other sites

  • 3 weeks later...

As I promes here is playground (just a basics model exported with ToB)

https://www.babylonjs-playground.com/#7A1HBH#1

(PLEASE CLIK RUN BUTTON!)

Now the problem here is as you can see I enable physics

physicsPlugin = new BABYLON.CannonJSPlugin();
scene.enablePhysics(gravityVector, physicsPlugin);

But,
in https://rawgit.com/iansheehansi/ae07b54301140862f8d6c042d405183c/raw/95e84f3169e1b66151f1afb4e0dd9c950185cda8/ModelFinish_Base.js

exacltly in ModelFinish_Base.js 

this.physicsImpostor = new _B.PhysicsImpostor(this, 1, { mass: 1, friction: .5, restitution: 0}, scene);  
this.physicsImpostor = new _B.PhysicsImpostor(this, 2, { mass: 0, friction: .5, restitution: 0}, scene);

IT DOESN WORK ?
 

Can you check it and how can I make physicsImpostor or collision to work?

you can see (upper playground) Ball fall through "ground"! But it should not! Why exported ToB's js file code for physicsImpostors dont work?

Did I overlook anything or should be there some bug in ToB exporter?

(By the way in blender file I define colliders for box(ground) and ball and Tob Export upper physicImposter lines.. That is great thing that ToB export also physics colliders definitions from blender to ToB_js_file.

Who is develop ToB exporter (physton code). Can here we fix those collision/impostor problem ???

@JCPalmer @Deltakosh @RaananW


Greetings Ian

Link to comment
Share on other sites

Hi guys.  Not sure if this helps, but...

https://www.babylonjs-playground.com/#7A1HBH#2

(It needs an extra RUN click, just like the previous version).

I "manually" added box impostors to the 5 BoxCollider-class objects... in lines 70-74.  (Actually, only line 74 is needed.)

Seems to work... for some reason.  :)  I'll keep thinking about WHY it is acting this way.

On another note, it might be wise to SPECIFICALLY call CannonJSPlugin inside of ModelFinish_Base.js

Using scene.physicsEnabled = true; ONLY... will activate OimoJS physics, which is the default physics engine.  It might be wise to use the 3-line version inside ModelFinish_Base:

    gravityVector = new BABYLON.Vector3(0, -10, 0);
    physicsPlugin = new BABYLON.CannonJSPlugin();
    scene.enablePhysics(gravityVector, physicsPlugin);

 

Link to comment
Share on other sites

I do not know much about physics nor the difference between CannonJS and Oimo.  The JSON exporter does not request a specific physics engine, and neither will ToB generated files.  My assumption is Oimo is the default for a reason.  Doing the 3 lines to use CannonJS prior to calling ModelFinish_Base.initScene() lets exported work for either.

Link to comment
Share on other sites

One thing this might be given wingnuts discover is when the imposter is assigned.  In the generated code, it is before the geo is defined.  One thing I have no problem doing is moving lines around.  If that is the case though, I feel sorry for any poor bastard coding by hand though.  Ian, try moving the imposter line down in the generated file to rule this in or out.

Link to comment
Share on other sites

@Wingnut Thenk you to see a problem and do think better. 

Yes and as you see now the ball still fall a half through, (I have another example which is exactly same result, ball fall a half through box.)
So who could check and debug this problem? Why this works so strange? Is there any physics problem or what?
ToB exporter is brilliant idea!
But if we fix this physics problem it will be REALLY REALLY wonderful 

Can anybody debug this physics bug? Is this cannon problem or babylon problem?

I attach now also .blender file. So everybody can see how it looks like inside with blender.

Ok @JCPalmer  if you dont understand physics it's fine. Maybe @RaananW can find what is here a problem with physics.
So in my playground (or fixed @Wingnut) we can try to fix/make ToB python exporter to be better. If we find bug/problem physics (why ball fall a half through box collider???)

Than we canmake ToB fix those problems. And Make ToB very cool stuff!

What I really LIKE in ToB is, that ToB can export Physics Colliders/Impostor from Blender model file. File .blender which I attach now, has defined colliders. You can See ModelFinish_Base.blend in blender.

WHAT I WOULD LIKE TO DO IS I WOULD LIKE TO MAKE ToB  BETTER(FIXED) exporter then it is now. But it is still qul exporter.
The problem is if somebody sue ToB exporter again and again, and if you have to manualy repair code again and again, then this take developers a lot of extra TIME (when modeling model and repairnt ToB exporter js file by hand)..

I hope I'm not annoying with my post. (I just would like to help. Find bugs and contribute to help you/us to make ToB even better exporter.

I don't know If there is any exporter which is capable to export model+phyiscs_colliders. I Love this IDEA! This is why I would like to help make ToB even better exporter.

@Deltakosh is there anybody else (than RaananW, maybe he is to bussy) who is Physics Developer for babylon  (cannon,oimo)? So we can ping physics developers for this problem?


Greetings,
Ian

ModelFinish_Base.blend

Link to comment
Share on other sites

10 hours ago, JCPalmer said:

One thing this might be given wingnuts discover is when the imposter is assigned.  In the generated code, it is before the geo is defined.  One thing I have no problem doing is moving lines around.  If that is the case though, I feel sorry for any poor bastard coding by hand though.  Ian, try moving the imposter line down in the generated file to rule this in or out.

https://www.babylonjs-playground.com/#7A1HBH#3

OK same woks if we use Oimo instant Cannon (still ball(Sphere_collider) fall half through flor(Box_collider) )

 //physicsPlugin = new BABYLON.CannonJSPlugin();
    physicsPlugin = new BABYLON.OimoJSPlugin();  

 

(PLEASE CLICK RUN IN PLAYGROUND, IT DOESN WORK AT FIRS OPEN URL OF PLAYGROUND. I DONT KNOW WHY THAT HAPPEN)

Link to comment
Share on other sites

10 hours ago, JCPalmer said:

One thing this might be given wingnuts discover is when the imposter is assigned.  In the generated code, it is before the geo is defined.  One thing I have no problem doing is moving lines around.  If that is the case though, I feel sorry for any poor bastard coding by hand though.  Ian, try moving the imposter line down in the generated file to rule this in or out.

this.physicsImpostor = new _B.PhysicsImpostor(this, 2, { mass: 0, friction: .5, restitution: 0}, scene);

this line code should be after if(cloning){ } 

like (and it works like Wingnut example. Maybe this position is better to enable physics impostor collider in ToB js file...

 if (!cloning){
                geo = _B.Tools.Now;
                this.setVerticesData(_B.VertexBuffer.PositionKind, new Float32Array([
                    -5,.5,-5,-5,-.5,5,-5,-.5,-5,-5,.5,5,5,-.5,5,5,.5,5,5,-.5,-5,5,.5,-5
                ]),
                false);

                var _i;//indices & affected indices for shapekeys
                _i = new Uint32Array([0,1,2,3,4,1,5,6,4,7,2,6,4,2,1,3,7,5,0,3,1,3,5,4,5,7,6,7,0,2,4,6,2,3,0,7]);
                this.setIndices(_i);

                this.setVerticesData(_B.VertexBuffer.NormalKind, new Float32Array([
                    -.5773,.5773,-.5773,-.5773,-.5773,.5773,-.5773,-.5773,-.5773,-.5773,.5773,.5773,.5773,-.5773,.5773,.5773,.5773,.5773,.5773,-.5773,-.5773,.5773,.5773,-.5773
                ]),
                false);

                geo = (_B.Tools.Now - geo) / 1000;
                this.subMeshes = [];
                new _B.SubMesh(0, 0, 8, 0, 36, this);
                if (scene._selectionOctree) {
                    scene.createOrUpdateSelectionOctree();
                }
            }            
            
            this.physicsImpostor = new _B.PhysicsImpostor(this, 2, { mass: 0, friction: .5, restitution: 0}, scene);


and if this.physicsImpostor is in this line. Than ToB js physics works (for Box under ball) like Wingut example. I don't know why this postiion works if we put physicsImpostor line after if(!cloning) but it works.
I try that and woks Ball doesn't fall thourht box collider inuder ball. Should you fix ToB exporter and put this.physicsImpostor = ... after if(!cloing) {} block code ?

Link to comment
Share on other sites

AND YES AGAIN
AS FOR BOX COLLIDER UNDER BALL (right possition for this.physicsImpostor = new _B...... is after if(!cloning) {} block !)

 

If you change postition of this.physicsImpostor of Ball after if(!cloning) { } blcok than Ball fall to box collider under ball LIKE IT SHOULD.

so my Conclusion is (i found bug, and can you fix ToB exporter please:

developer of ToB exporter should put all this.physicsImpostor = new _B.PhyiscsImpostor(....); after if(!cloning) {} block

 

 

Link to comment
Share on other sites

7 minutes ago, ian said:

this.physicsImpostor = new _B.PhysicsImpostor(this, 2, { mass: 0, friction: .5, restitution: 0}, scene);

this line code should be after if(cloning){ } 

like (and it works like Wingnut example. Maybe this position is better to enable physics impostor collider in ToB js file...


 if (!cloning){
                geo = _B.Tools.Now;
                this.setVerticesData(_B.VertexBuffer.PositionKind, new Float32Array([
                    -5,.5,-5,-5,-.5,5,-5,-.5,-5,-5,.5,5,5,-.5,5,5,.5,5,5,-.5,-5,5,.5,-5
                ]),
                false);

                var _i;//indices & affected indices for shapekeys
                _i = new Uint32Array([0,1,2,3,4,1,5,6,4,7,2,6,4,2,1,3,7,5,0,3,1,3,5,4,5,7,6,7,0,2,4,6,2,3,0,7]);
                this.setIndices(_i);

                this.setVerticesData(_B.VertexBuffer.NormalKind, new Float32Array([
                    -.5773,.5773,-.5773,-.5773,-.5773,.5773,-.5773,-.5773,-.5773,-.5773,.5773,.5773,.5773,-.5773,.5773,.5773,.5773,.5773,.5773,-.5773,-.5773,.5773,.5773,-.5773
                ]),
                false);

                geo = (_B.Tools.Now - geo) / 1000;
                this.subMeshes = [];
                new _B.SubMesh(0, 0, 8, 0, 36, this);
                if (scene._selectionOctree) {
                    scene.createOrUpdateSelectionOctree();
                }
            }            
            
            this.physicsImpostor = new _B.PhysicsImpostor(this, 2, { mass: 0, friction: .5, restitution: 0}, scene);


and if this.physicsImpostor is in this line. Than ToB js physics works (for Box under ball) like Wingut example. I don't know why this postiion works if we put physicsImpostor line after if(!cloning) but it works.
I try that and woks Ball doesn't fall thourht box collider inuder ball. Should you fix ToB exporter and put this.physicsImpostor = ... after if(!cloing) {} block code ?

and also for ball impostor in ToB: (the this.physicsImpostor should be after if(!cloning) { } block

if (!cloning){
                geo = _B.Tools.Now;
                this.setVerticesData(_B.VertexBuffer.PositionKind, new Float32Array([
                    0,-1.8478,.7654,.0761,-1.9616,.3827,0,-1.9616,.3902,0,0,2,.3827,.3902,1.9239,.3902,0,1.9616,0,1.9616,.3902,0,2,0,.0761,1.9616,.3827,0,-2,0,.3827,-.3902,1.9239,0,-.3902,1.9616,0,1.8478,.7654,.1493,1.8478,.7507,.3605,-.7654,1.8123,0,-.7654,1.8478,0,1.6629,1.1111
                    ,.2168,1.6629,1.0898,.3244,-1.1111,1.631,0,-1.1111,1.6629,0,1.4142,1.4142,.2759,1.4142,1.387,.2759,-1.4142,1.387,0,-1.4142,1.4142,0,1.1111,1.6629,.3244,1.1111,1.631,.2168,-1.6629,1.0898,0,-1.6629,1.1111,0,.7654,1.8478,.3605,.7654,1.8123,.1493,-1.8478,.7507,0,.3902,1.9616,.2929,-1.8478,.7071,.7507,.3902,1.8123
                    ,.1493,-1.9616,.3605,.7654,0,1.8478,.1493,1.9616,.3605,.7507,-.3902,1.8123,.2929,1.8478,.7071,.7071,-.7654,1.7071,.4252,1.6629,1.0266,.6364,-1.1111,1.5364,.5412,1.4142,1.3066,.5412,-1.4142,1.3066,.6364,1.1111,1.5364,.4252,-1.6629,1.0266,.7071,.7654,1.7071,.6173,1.6629,.9239,1.0266,-.7654,1.5364,.9239,-1.1111,1.3827,.7857,1.4142,1.1759
                    ,.7857,-1.4142,1.1759,.9239,1.1111,1.3827,.6173,-1.6629,.9239,1.0266,.7654,1.5364,.4252,-1.8478,.6364,1.0898,.3902,1.631,.2168,-1.9616,.3244,1.1111,0,1.6629,.2168,1.9616,.3244,1.0898,-.3902,1.631,.4252,1.8478,.6364,1.387,.3902,1.387,.2759,-1.9616,.2759,1.4142,0,1.4142,.2759,1.9616,.2759,1.387,-.3902,1.387,.5412,1.8478,.5412
                    ,1.3066,-.7654,1.3066,.7857,1.6629,.7857,1.1759,-1.1111,1.1759,1,1.4142,1,1,-1.4142,1,1.1759,1.1111,1.1759,.7857,-1.6629,.7857,1.3066,.7654,1.3066,.5412,-1.8478,.5412,1.5364,-.7654,1.0266,1.3827,-1.1111,.9239,1.1759,1.4142,.7857,1.1759,-1.4142,.7857,1.3827,1.1111,.9239,.9239,-1.6629,.6173,1.5364,.7654,1.0266,.6364,-1.8478,.4252
                    ,1.631,.3902,1.0898,.3244,-1.9616,.2168,1.6629,0,1.1111,.3244,1.9616,.2168,1.631,-.3902,1.0898,.6364,1.8478,.4252,.9239,1.6629,.6173,.3605,-1.9616,.1493,1.8478,0,.7654,.3605,1.9616,.1493,1.8123,-.3902,.7507,.7071,1.8478,.2929,1.7071,-.7654,.7071,1.0266,1.6629,.4252,1.5364,-1.1111,.6364,1.3066,1.4142,.5412,1.3066,-1.4142,.5412
                    ,1.5364,1.1111,.6364,1.0266,-1.6629,.4252,1.7071,.7654,.7071,.7071,-1.8478,.2929,1.8123,.3902,.7507,1.631,-1.1111,.3244,1.387,-1.4142,.2759,1.631,1.1111,.3244,1.0898,-1.6629,.2168,1.8123,.7654,.3605,.7507,-1.8478,.1493,1.9239,.3902,.3827,.3827,-1.9616,.0761,1.9616,0,.3902,.3827,1.9616,.0761,1.9239,-.3902,.3827,.7507,1.8478,.1493
                    ,1.8123,-.7654,.3605,1.0898,1.6629,.2168,1.387,1.4142,.2759,.3902,1.9616,0,.3902,-1.9616,0,2,0,0,1.9616,-.3902,0,.7654,1.8478,0,1.8478,-.7654,0,1.1111,1.6629,0,1.6629,-1.1111,0,1.4142,1.4142,0,1.4142,-1.4142,0,1.6629,1.1111,0,1.1111,-1.6629,0,1.8478,.7654,0,.7654,-1.8478,0
                    ,1.9616,.3902,0,1.387,1.4142,-.2759,1.631,1.1111,-.3244,1.387,-1.4142,-.2759,1.0898,-1.6629,-.2168,1.8123,.7654,-.3605,.7507,-1.8478,-.1493,1.9239,.3902,-.3827,.3827,-1.9616,-.0761,1.9616,0,-.3902,.3827,1.9616,-.0761,1.9239,-.3902,-.3827,.7507,1.8478,-.1493,1.8123,-.7654,-.3605,1.0898,1.6629,-.2168,1.631,-1.1111,-.3244,1.8123,-.3902,-.7507
                    ,.7071,1.8478,-.2929,1.7071,-.7654,-.7071,1.0266,1.6629,-.4252,1.5364,-1.1111,-.6364,1.3066,1.4142,-.5412,1.3066,-1.4142,-.5412,1.5364,1.1111,-.6364,1.0266,-1.6629,-.4252,1.7071,.7654,-.7071,.7071,-1.8478,-.2929,1.8123,.3902,-.7507,.3605,-1.9616,-.1493,1.8478,0,-.7654,.3605,1.9616,-.1493,1.1759,-1.4142,-.7857,.9239,-1.6629,-.6173,1.5364,.7654,-1.0266
                    ,.6364,-1.8478,-.4252,1.631,.3902,-1.0898,.3244,-1.9616,-.2168,1.6629,0,-1.1111,.3244,1.9616,-.2168,1.631,-.3902,-1.0898,.6364,1.8478,-.4252,1.5364,-.7654,-1.0266,.9239,1.6629,-.6173,1.3827,-1.1111,-.9239,1.1759,1.4142,-.7857,1.3827,1.1111,-.9239,.5412,1.8478,-.5412,1.3066,-.7654,-1.3066,.7857,1.6629,-.7857,1.1759,-1.1111,-1.1759,1,1.4142,-1
                    ,1,-1.4142,-1,1.1759,1.1111,-1.1759,.7857,-1.6629,-.7857,1.3066,.7654,-1.3066,.5412,-1.8478,-.5412,1.387,.3902,-1.387,.2759,-1.9616,-.2759,1.4142,0,-1.4142,.2759,1.9616,-.2759,1.387,-.3902,-1.387,1.0266,.7654,-1.5364,.4252,-1.8478,-.6364,1.0898,.3902,-1.631,.2168,-1.9616,-.3244,1.1111,0,-1.6629,.2168,1.9616,-.3244,1.0898,-.3902,-1.631
                    ,.4252,1.8478,-.6364,1.0266,-.7654,-1.5364,.6173,1.6629,-.9239,.9239,-1.1111,-1.3827,.7857,1.4142,-1.1759,.7857,-1.4142,-1.1759,.9239,1.1111,-1.3827,.6173,-1.6629,-.9239,.7071,-.7654,-1.7071,.2929,1.8478,-.7071,.4252,1.6629,-1.0266,.6364,-1.1111,-1.5364,.5412,1.4142,-1.3066,.5412,-1.4142,-1.3066,.6364,1.1111,-1.5364,.4252,-1.6629,-1.0266,.7071,.7654,-1.7071
                    ,.2929,-1.8478,-.7071,.7507,.3902,-1.8123,.1493,-1.9616,-.3605,.7654,0,-1.8478,.1493,1.9616,-.3605,.7507,-.3902,-1.8123,.1493,-1.8478,-.7507,.3605,.7654,-1.8123,.3827,.3902,-1.9239,.0761,-1.9616,-.3827,.3902,0,-1.9616,.0761,1.9616,-.3827,.3827,-.3902,-1.9239,.1493,1.8478,-.7507,.3605,-.7654,-1.8123,.2168,1.6629,-1.0898,.3244,-1.1111,-1.631
                    ,.2759,1.4142,-1.387,.2759,-1.4142,-1.387,.3244,1.1111,-1.631,.2168,-1.6629,-1.0898,0,-.7654,-1.8478,0,-1.1111,-1.6629,0,1.6629,-1.1111,0,1.4142,-1.4142,0,-1.4142,-1.4142,0,1.1111,-1.6629,0,-1.6629,-1.1111,0,.7654,-1.8478,0,-1.8478,-.7654,0,.3902,-1.9616,0,-1.9616,-.3902,0,0,-2,0,1.9616,-.3902
                    ,0,-.3902,-1.9616,0,1.8478,-.7654,-.0761,-1.9616,-.3827,-.3902,0,-1.9616,-.0761,1.9616,-.3827,-.3827,-.3902,-1.9239,-.1493,1.8478,-.7507,-.3605,-.7654,-1.8123,-.2168,1.6629,-1.0898,-.3244,-1.1111,-1.631,-.2759,1.4142,-1.387,-.2759,-1.4142,-1.387,-.3244,1.1111,-1.631,-.2168,-1.6629,-1.0898,-.3605,.7654,-1.8123,-.1493,-1.8478,-.7507,-.3827,.3902,-1.9239
                    ,-.4252,1.6629,-1.0266,-.5412,1.4142,-1.3066,-.5412,-1.4142,-1.3066,-.6364,1.1111,-1.5364,-.4252,-1.6629,-1.0266,-.7071,.7654,-1.7071,-.2929,-1.8478,-.7071,-.7507,.3902,-1.8123,-.1493,-1.9616,-.3605,-.7654,0,-1.8478,-.1493,1.9616,-.3605,-.7507,-.3902,-1.8123,-.2929,1.8478,-.7071,-.7071,-.7654,-1.7071,-.6364,-1.1111,-1.5364,-1.1111,0,-1.6629,-.2168,1.9616,-.3244
                    ,-.2168,-1.9616,-.3244,-1.0898,-.3902,-1.631,-.4252,1.8478,-.6364,-1.0266,-.7654,-1.5364,-.6173,1.6629,-.9239,-.9239,-1.1111,-1.3827,-.7857,1.4142,-1.1759,-.7857,-1.4142,-1.1759,-.9239,1.1111,-1.3827,-.6173,-1.6629,-.9239,-1.0266,.7654,-1.5364,-.4252,-1.8478,-.6364,-1.0898,.3902,-1.631,-1,-1.4142,-1,-1,1.4142,-1,-1.1759,1.1111,-1.1759,-.7857,-1.6629,-.7857
                    ,-1.3066,.7654,-1.3066,-.5412,-1.8478,-.5412,-1.387,.3902,-1.387,-.2759,-1.9616,-.2759,-1.4142,0,-1.4142,-.2759,1.9616,-.2759,-1.387,-.3902,-1.387,-.5412,1.8478,-.5412,-1.3066,-.7654,-1.3066,-.7857,1.6629,-.7857,-1.1759,-1.1111,-1.1759,-.3244,1.9616,-.2168,-.3244,-1.9616,-.2168,-1.631,-.3902,-1.0898,-.6364,1.8478,-.4252,-1.5364,-.7654,-1.0266,-.9239,1.6629,-.6173
                    ,-1.3827,-1.1111,-.9239,-1.1759,1.4142,-.7857,-1.1759,-1.4142,-.7857,-1.3827,1.1111,-.9239,-.9239,-1.6629,-.6173,-1.5364,.7654,-1.0266,-.6364,-1.8478,-.4252,-1.631,.3902,-1.0898,-1.6629,0,-1.1111,-1.3066,1.4142,-.5412,-1.5364,1.1111,-.6364,-1.0266,-1.6629,-.4252,-1.7071,.7654,-.7071,-.7071,-1.8478,-.2929,-1.8123,.3902,-.7507,-.3605,-1.9616,-.1493,-1.8478,0,-.7654
                    ,-.3605,1.9616,-.1493,-1.8123,-.3902,-.7507,-.7071,1.8478,-.2929,-1.7071,-.7654,-.7071,-1.0266,1.6629,-.4252,-1.5364,-1.1111,-.6364,-1.3066,-1.4142,-.5412,-1.9239,-.3902,-.3827,-.3827,1.9616,-.0761,-.7507,1.8478,-.1493,-1.8123,-.7654,-.3605,-1.0898,1.6629,-.2168,-1.631,-1.1111,-.3244,-1.387,1.4142,-.2759,-1.387,-1.4142,-.2759,-1.631,1.1111,-.3244,-1.0898,-1.6629,-.2168
                    ,-1.8123,.7654,-.3605,-.7507,-1.8478,-.1493,-1.9239,.3902,-.3827,-.3827,-1.9616,-.0761,-1.9616,0,-.3902,-1.4142,-1.4142,0,-1.1111,-1.6629,0,-1.8478,.7654,0,-.7654,-1.8478,0,-1.9616,.3902,0,-.3902,-1.9616,0,-2,0,0,-.3902,1.9616,0,-1.9616,-.3902,0,-.7654,1.8478,0,-1.8478,-.7654,0,-1.1111,1.6629,0
                    ,-1.6629,-1.1111,0,-1.4142,1.4142,0,-1.6629,1.1111,0,-1.8123,-.7654,.3605,-1.0898,1.6629,.2168,-1.631,-1.1111,.3244,-1.387,1.4142,.2759,-1.387,-1.4142,.2759,-1.631,1.1111,.3244,-1.0898,-1.6629,.2168,-1.8123,.7654,.3605,-.7507,-1.8478,.1493,-1.9239,.3902,.3827,-.3827,-1.9616,.0761,-1.9616,0,.3902,-.3827,1.9616,.0761,-1.9239,-.3902,.3827
                    ,-.7507,1.8478,.1493,-1.0266,-1.6629,.4252,-.7071,-1.8478,.2929,-1.7071,.7654,.7071,-1.8123,.3902,.7507,-.3605,-1.9616,.1493,-1.8478,0,.7654,-.3605,1.9616,.1493,-1.8123,-.3902,.7507,-.7071,1.8478,.2929,-1.7071,-.7654,.7071,-1.0266,1.6629,.4252,-1.5364,-1.1111,.6364,-1.3066,1.4142,.5412,-1.3066,-1.4142,.5412,-1.5364,1.1111,.6364,-.6364,1.8478,.4252
                    ,-.9239,1.6629,.6173,-1.5364,-.7654,1.0266,-1.3827,-1.1111,.9239,-1.1759,1.4142,.7857,-1.1759,-1.4142,.7857,-1.3827,1.1111,.9239,-.9239,-1.6629,.6173,-1.5364,.7654,1.0266,-.6364,-1.8478,.4252,-1.631,.3902,1.0898,-.3244,-1.9616,.2168,-1.6629,0,1.1111,-.3244,1.9616,.2168,-1.631,-.3902,1.0898,-1.3066,.7654,1.3066,-1.387,.3902,1.387,-.2759,-1.9616,.2759
                    ,-1.4142,0,1.4142,-.2759,1.9616,.2759,-1.387,-.3902,1.387,-.5412,1.8478,.5412,-1.3066,-.7654,1.3066,-.7857,1.6629,.7857,-1.1759,-1.1111,1.1759,-1,1.4142,1,-1,-1.4142,1,-1.1759,1.1111,1.1759,-.7857,-1.6629,.7857,-.5412,-1.8478,.5412,-1.0266,-.7654,1.5364,-.9239,-1.1111,1.3827,-.7857,1.4142,1.1759,-.7857,-1.4142,1.1759,-.9239,1.1111,1.3827
                    ,-.6173,-1.6629,.9239,-1.0266,.7654,1.5364,-.4252,-1.8478,.6364,-1.0898,.3902,1.631,-.2168,-1.9616,.3244,-1.1111,0,1.6629,-.2168,1.9616,.3244,-1.0898,-.3902,1.631,-.4252,1.8478,.6364,-.6173,1.6629,.9239,-.1493,-1.9616,.3605,-.7654,0,1.8478,-.1493,1.9616,.3605,-.7507,-.3902,1.8123,-.2929,1.8478,.7071,-.7071,-.7654,1.7071,-.4252,1.6629,1.0266
                    ,-.6364,-1.1111,1.5364,-.5412,1.4142,1.3066,-.5412,-1.4142,1.3066,-.6364,1.1111,1.5364,-.4252,-1.6629,1.0266,-.7071,.7654,1.7071,-.2929,-1.8478,.7071,-.7507,.3902,1.8123,-.2759,1.4142,1.387,-.2759,-1.4142,1.387,-.3244,1.1111,1.631,-.2168,-1.6629,1.0898,-.3605,.7654,1.8123,-.1493,-1.8478,.7507,-.3827,.3902,1.9239,-.0761,-1.9616,.3827,-.3902,0,1.9616
                    ,-.0761,1.9616,.3827,-.3827,-.3902,1.9239,-.1493,1.8478,.7507,-.3605,-.7654,1.8123,-.2168,1.6629,1.0898,-.3244,-1.1111,1.631
                ]),
                false);

                var _i;//indices & affected indices for shapekeys
                _i = new Uint32Array(2880);
                CONTIG(_i, 0, 0, 9);
                _i.set([2,1,3,10,11,12,8,13,11,14,15,16,13,17,15,18,19,20,17,21,19,22,23,24,21,25,23,26,27,28,25,29,27,30,0,31,29,4,26,32,30,29,33,4,30,34,1,4,35,5
                ,8,7,36,9,1,34,10,35,37,8,38,13,14,37,39,13,40,17,14,41,18,17,42,21,22,41,43,21,44,25,22,45,26,25,46,29,38,47,40,41,48,49,40,50,42,43,49,51,42,52
                ,44,43,53,45,44,54,46,45,55,32,33,54,56,32,57,34,33,58,35,36,7,59,9,34,57,35,60,37,36,61,38,37,48,39,54,62,56,55,63,57,58,62,64,59,7,65,9,57,63,58
                ,66,60,59,67,61,60,68,48,61,69,47,49,68,70,47,71,50,49,72,51,50,73,52,51,74,53,52,75,54,53,76,55,70,77,78,69,79,71,70,80,72,73,79,81,74,80,82,73,83,75
                ,76,82,84,75,85,62,76,86,63,64,85,87,65,7,88,9,63,86,64,89,66,65,90,67,66,77,68,67,91,69,84,92,86,85,93,87,88,7,94,9,86,92,87,95,89,88,96,90,89,97
                ,77,90,98,91,78,97,99,91,100,79,80,99,101,81,100,102,80,103,82,81,104,83,84,103,105,85,104,106,101,107,108,100,109,102,101,110,103,102,111,104,103,112,105,106,111,113,92,112,114,106
                ,115,93,94,7,116,9,92,114,93,117,95,94,118,96,95,119,97,96,120,98,99,119,107,100,120,121,116,7,122,9,114,123,117,124,125,116,126,118,117,127,119,118,128,120,107,127,129,120,130,121
                ,107,131,108,121,132,109,110,131,133,109,134,111,112,133,135,113,134,136,114,135,123,113,124,115,132,137,138,133,139,140,132,141,134,133,142,135,136,141,143,123,142,144,136,145,124,122,7,146,9,123
                ,144,124,147,125,126,146,148,125,149,127,126,150,128,129,149,151,128,137,130,129,139,131,145,152,147,146,153,148,147,154,149,150,153,155,151,154,156,150,157,137,151,158,139,137,159,138,139,160,140,138
                ,161,141,142,160,162,143,161,163,142,164,144,143,165,145,146,7,166,9,144,164,160,167,168,159,169,161,160,170,162,163,169,171,162,172,164,163,173,165,166,7,174,9,164,172,152,173,175,166,176,153
                ,152,177,154,153,178,155,156,177,179,155,180,157,156,167,158,159,180,181,174,182,176,175,183,177,176,184,178,177,185,179,178,186,180,179,187,167,180,188,181,168,187,189,181,190,169,168,191,170,171,190
                ,192,172,191,193,171,194,173,174,7,195,9,172,193,173,196,175,188,197,190,189,198,191,192,197,199,193,198,200,192,201,194,195,7,202,9,193,200,196,201,203,195,204,182,196,205,183,182,206,184,185
                ,205,207,186,206,208,185,209,187,188,208,210,189,209,211,203,212,205,206,213,214,207,212,215,206,216,208,207,217,209,208,218,210,211,217,219,210,220,197,211,221,198,199,220,222,198,223,200,199,224,201
                ,202,7,225,9,200,223,201,226,203,202,213,204,219,227,221,222,228,229,223,227,230,222,231,224,225,7,232,9,223,230,224,233,226,225,234,213,226,235,212,213,236,214,215,235,237,214,238,216,215,239
                ,217,216,240,218,217,241,219,218,228,220,237,242,243,238,244,245,237,246,239,238,247,240,241,246,248,240,249,228,241,250,227,229,249,251,230,250,252,229,253,231,232,7,254,9,230,252,231,255,233,232
                ,256,234,233,242,235,236,256,244,250,257,252,251,258,253,254,7,259,9,252,257,253,260,255,254,261,256,255,262,242,256,263,244,243,262,264,245,263,265,243,266,246,247,265,267,246,268,248,247,269,249
                ,248,270,250,251,269,271,265,272,273,264,274,266,267,273,275,266,276,268,267,277,269,270,276,278,271,277,279,257,278,280,271,281,258,259,7,282,9,257,280,260,281,283,259,284,261,260,285,262,261,272
                ,263,264,285,286,279,287,281,282,7,288,9,280,289,281,290,283,282,291,284,283,292,285,284,293,272,286,292,294,272,295,273,286,296,274,275,295,297,276,296,298,275,299,277,276,300,278,279,299,301,280
                ,300,289,294,302,296,297,303,304,296,305,298,297,306,299,298,307,300,301,306,308,300,309,289,287,308,310,288,7,311,9,289,309,287,312,290,288,313,291,290,314,292,291,315,293,294,314,316,295,315,303
                ,311,7,317,9,309,318,310,319,312,311,320,313,312,321,314,313,322,315,316,321,323,303,322,324,316,325,302,304,324,326,302,327,305,304,328,306,307,327,329,308,328,330,307,318,309,308,331,310,326,332
                ,333,325,334,327,326,335,328,329,334,336,330,335,337,318,336,338,330,339,331,317,7,340,9,318,338,331,341,319,317,342,320,319,343,321,320,344,322,323,343,345,324,344,332,325,345,346,339,347,341,342
                ,348,349,341,350,343,342,351,344,345,350,352,332,351,353,345,354,346,333,353,355,346,356,334,333,357,335,336,356,358,337,357,359,336,360,338,337,361,339,340,7,348,9,338,360,356,362,363,355,364,357
                ,358,363,365,359,364,366,358,367,360,359,368,361,348,7,369,9,360,367,347,368,370,349,369,371,347,372,350,349,373,351,352,372,374,353,373,375,352,362,354,353,376,355,370,377,372,371,378,373,374,377
                ,379,375,378,380,374,381,362,376,380,382,362,383,363,376,384,364,365,383,385,366,384,386,365,387,367,366,388,368,369,7,389,9,367,387,370,388,390,371,389,391,385,392,393,386,394,395,385,396,387,386
                ,397,388,389,7,398,9,387,396,388,399,390,389,400,391,390,401,377,391,402,378,379,401,403,380,402,404,379,405,381,380,406,382,381,392,383,382,394,384,402,407,408,403,409,410,404,408,411,403,412,405
                ,406,411,413,405,414,392,406,415,394,393,414,416,395,415,417,393,418,396,395,419,397,398,7,420,9,396,418,399,419,421,398,407,400,399,409,401,417,422,423,416,424,418,417,425,419,420,7,426,9,418
                ,424,421,425,427,420,428,407,421,429,409,407,430,408,410,429,431,408,432,411,410,433,412,413,432,434,412,435,414,413,422,415,414,436,416,431,437,438,430,439,432,431,440,433,434,439,441,435,440,442,434
                ,443,422,435,444,436,423,443,445,436,446,424,425,445,447,426,7,448,9,424,446,425,449,427,426,450,428,427,437,429,428,451,430,444,452,446,445,453,447,448,7,454,9,446,452,447,455,449,450,454,456
                ,449,457,437,451,456,458,438,457,459,439,458,460,438,461,440,441,460,462,440,463,442,441,464,443,442,465,444,445,464,466,458,467,460,459,468,461,462,467,469,461,470,463,462,471,464,463,472,465,466,471
                ,473,452,472,474,466,475,453,454,7,476,9,452,474,453,477,455,454,478,456,455,479,457,456,480,458,459,479,481,473,3,475,476,7,6,9,474,2,475,11,477,478,6,12,477,15,479,478,16,480,481
                ,15,19,480,20,467,481,23,468,469,20,24,468,27,470,469,28,471,470,0,472,473,28,31,472,2,474,0,30,1,3,31,4,3,5,10,12,6,8,11,10,14,16,12,13,15,14,18,20,16,17
                ,19,18,22,24,20,21,23,22,26,28,24,25,27,26,30,31,28,29,26,45,32,29,46,33,30,32,34,4,33,35,10,5,35,8,36,38,14,10,37,13,38,40,14,39,41,17,40,42,22,18
                ,41,21,42,44,22,43,45,25,44,46,38,61,47,41,39,48,40,47,50,43,41,49,42,50,52,43,51,53,44,52,54,45,53,55,33,46,54,32,55,57,33,56,58,35,58,60,36,59,61,37
                ,60,48,54,75,62,55,76,63,58,56,62,58,64,66,59,65,67,60,66,68,61,67,69,49,48,68,47,69,71,49,70,72,50,71,73,51,72,74,52,73,75,53,74,76,70,68,77,69,91,79
                ,70,78,80,73,71,79,74,72,80,73,81,83,76,74,82,75,83,85,76,84,86,64,62,85,64,87,89,65,88,90,66,89,77,67,90,91,84,105,92,85,106,93,87,93,95,88,94,96,89,95
                ,97,90,96,98,78,77,97,91,98,100,80,78,99,81,79,100,80,101,103,81,102,104,84,82,103,85,83,104,101,99,107,100,121,109,101,108,110,102,109,111,103,110,112,106,104,111,92,105,112,106
                ,113,115,93,115,117,94,116,118,95,117,119,96,118,120,99,97,119,100,98,120,117,115,124,116,122,126,117,125,127,118,126,128,107,119,127,120,128,130,107,129,131,121,130,132,110,108,131,109,132,134
                ,112,110,133,113,111,134,114,112,135,113,136,124,132,130,137,133,131,139,132,138,141,133,140,142,136,134,141,123,135,142,136,143,145,124,145,147,126,122,146,125,147,149,126,148,150,129,127,149,128,150
                ,137,129,151,139,145,165,152,146,166,153,147,152,154,150,148,153,151,149,154,150,155,157,151,156,158,137,157,159,139,158,160,138,159,161,142,140,160,143,141,161,142,162,164,143,163,165,160,158,167,159
                ,181,169,160,168,170,163,161,169,162,170,172,163,171,173,152,165,173,166,174,176,152,175,177,153,176,178,156,154,177,155,178,180,156,179,167,159,157,180,174,195,182,175,196,183,176,182,184,177,183,185
                ,178,184,186,179,185,187,180,186,188,168,167,187,181,188,190,168,189,191,171,169,190,172,170,191,171,192,194,173,194,196,188,210,197,189,211,198,192,190,197,193,191,198,192,199,201,196,194,201,195,202
                ,204,196,203,205,182,204,206,185,183,205,186,184,206,185,207,209,188,186,208,189,187,209,203,226,212,206,204,213,207,205,212,206,214,216,207,215,217,208,216,218,211,209,217,210,218,220,211,219,221,199
                ,197,220,198,221,223,199,222,224,201,224,226,202,225,213,219,241,227,222,220,228,223,221,227,222,229,231,224,231,233,225,232,234,226,233,235,213,234,236,215,212,235,214,236,238,215,237,239,216,238,240
                ,217,239,241,218,240,228,237,235,242,238,236,244,237,243,246,238,245,247,241,239,246,240,247,249,241,248,250,229,228,249,230,227,250,229,251,253,231,253,255,232,254,256,233,255,242,236,234,256,250,270
                ,257,251,271,258,253,258,260,254,259,261,255,260,262,256,261,263,243,242,262,245,244,263,243,264,266,247,245,265,246,266,268,247,267,269,248,268,270,251,249,269,265,263,272,264,286,274,267,265,273,266
                ,274,276,267,275,277,270,268,276,271,269,277,257,270,278,271,279,281,260,258,281,259,282,284,260,283,285,261,284,272,264,262,285,279,301,287,281,287,290,282,288,291,283,290,292,284,291,293,286,285,292
                ,272,293,295,286,294,296,275,273,295,276,274,296,275,297,299,276,298,300,279,277,299,280,278,300,294,316,302,297,295,303,296,302,305,297,304,306,298,305,307,301,299,306,300,307,309,287,301,308,287,310
                ,312,288,311,313,290,312,314,291,313,315,294,292,314,295,293,315,310,331,319,311,317,320,312,319,321,313,320,322,316,314,321,303,315,322,316,323,325,304,303,324,302,325,327,304,326,328,307,305,327,308
                ,306,328,307,329,318,308,330,331,326,324,332,325,346,334,326,333,335,329,327,334,330,328,335,318,329,336,330,337,339,331,339,341,317,340,342,319,341,343,320,342,344,323,321,343,324,322,344,325,323,345
                ,339,361,347,342,340,348,341,347,350,342,349,351,345,343,350,332,344,351,345,352,354,333,332,353,346,354,356,333,355,357,336,334,356,337,335,357,336,358,360,337,359,361,356,354,362,355,376,364,358,356
                ,363,359,357,364,358,365,367,359,366,368,347,361,368,349,348,369,347,370,372,349,371,373,352,350,372,353,351,373,352,374,362,353,375,376,370,390,377,371,391,378,374,372,377,375,373,378,374,379,381,376
                ,375,380,362,381,383,376,382,384,365,363,383,366,364,384,365,385,387,366,386,388,370,368,388,371,369,389,385,383,392,386,384,394,385,393,396,386,395,397,388,397,399,389,398,400,390,399,401,391,400,402
                ,379,377,401,380,378,402,379,403,405,380,404,406,381,405,392,382,406,394,402,400,407,403,401,409,404,402,408,403,410,412,406,404,411,405,412,414,406,413,415,393,392,414,395,394,415,393,416,418,395,417
                ,419,399,397,419,398,420,407,399,421,409,417,415,422,416,436,424,417,423,425,421,419,425,420,426,428,421,427,429,407,428,430,410,409,429,408,430,432,410,431,433,413,411,432,412,433,435,413,434,422,414
                ,435,436,431,429,437,430,451,439,431,438,440,434,432,439,435,433,440,434,441,443,435,442,444,423,422,443,436,444,446,425,423,445,425,447,449,426,448,450,427,449,437,428,450,451,444,465,452,445,466,453
                ,447,453,455,450,448,454,449,455,457,451,450,456,438,437,457,439,451,458,438,459,461,441,439,460,440,461,463,441,462,464,442,463,465,445,443,464,458,480,467,459,481,468,462,460,467,461,468,470,462,469
                ,471,463,470,472,466,464,471,452,465,472,466,473,475,453,475,477,454,476,478,455,477,479,456,478,480,459,457,479,473,31,3,475,3,11,478,476,6,477,11,15,478,12,16,481,479,15,480,16,20,481
                ,19,23,469,467,20,468,23,27,469,24,28,470,27,0,473,471,28,472,0,2], 10);
                this.setIndices(_i);

                this.setVerticesData(_B.VertexBuffer.NormalKind, new Float32Array([
                    0,-.9217,.3879,.0392,-.9796,.1971,0,-.9796,.201,0,0,1,.1914,.1939,.9622,.1951,0,.9808,0,.9796,.201,0,1,0,.0392,.9796,.1971,0,-1,0,.1914,-.1939,.9622,0,-.1939,.981,0,.9217,.3879,.0757,.9217,.3804,.1804,-.3805,.907,0,-.3805,.9247,0,.8286,.5598
                    ,.1092,.8286,.549,.1626,-.5528,.8173,0,-.5528,.8333,0,.704,.7101,.1385,.704,.6965,.1385,-.704,.6965,0,-.704,.7101,0,.5528,.8333,.1626,.5528,.8173,.1092,-.8286,.549,0,-.8286,.5598,0,.3805,.9247,.1804,.3805,.907,.0757,-.9217,.3804,0,.1939,.981,.1484,-.9217,.3583,.3754,.1939,.9063
                    ,.0769,-.9796,.1856,.3827,0,.9239,.0769,.9796,.1856,.3754,-.1939,.9063,.1484,.9217,.3583,.3539,-.3805,.8544,.2142,.8286,.5171,.3189,-.5528,.7699,.2717,.704,.6561,.2717,-.704,.6561,.3189,.5528,.7699,.2142,-.8286,.5171,.3539,.3805,.8544,.311,.8286,.4654,.5137,-.3805,.7689,.463,-.5528,.6929,.3945,.704,.5904
                    ,.3945,-.704,.5904,.463,.5528,.6929,.311,-.8286,.4654,.5137,.3805,.7689,.2155,-.9217,.3225,.545,.1939,.8157,.1116,-.9796,.1671,.5556,0,.8314,.1116,.9796,.1671,.545,-.1939,.8157,.2155,.9217,.3225,.6937,.1939,.6937,.1421,-.9796,.1421,.7071,0,.7071,.1421,.9796,.1421,.6937,-.1939,.6937,.2743,.9217,.2743
                    ,.6539,-.3805,.6539,.3958,.8286,.3958,.5893,-.5528,.5893,.5021,.704,.5021,.5021,-.704,.5021,.5893,.5528,.5893,.3958,-.8286,.3958,.6539,.3805,.6539,.2743,-.9217,.2743,.7689,-.3805,.5137,.6929,-.5528,.463,.5904,.704,.3945,.5904,-.704,.3945,.6929,.5528,.463,.4654,-.8286,.311,.7689,.3805,.5137,.3225,-.9217,.2155
                    ,.8157,.1939,.545,.1671,-.9796,.1116,.8314,0,.5556,.1671,.9796,.1116,.8157,-.1939,.545,.3225,.9217,.2155,.4654,.8286,.311,.1856,-.9796,.0769,.9239,0,.3827,.1856,.9796,.0769,.9063,-.1939,.3754,.3583,.9217,.1484,.8544,-.3805,.3539,.5171,.8286,.2142,.7699,-.5528,.3189,.6561,.704,.2717,.6561,-.704,.2717
                    ,.7699,.5528,.3189,.5171,-.8286,.2142,.8544,.3805,.3539,.3583,-.9217,.1484,.9063,.1939,.3754,.8173,-.5528,.1626,.6965,-.704,.1385,.8173,.5528,.1626,.549,-.8286,.1092,.907,.3805,.1804,.3804,-.9217,.0757,.9622,.1939,.1914,.1971,-.9796,.0392,.9808,0,.1951,.1971,.9796,.0392,.9622,-.1939,.1914,.3804,.9217,.0757
                    ,.907,-.3805,.1804,.549,.8286,.1092,.6965,.704,.1385,.201,.9796,0,.201,-.9796,0,1,0,0,.981,-.1939,0,.3879,.9217,0,.9247,-.3805,0,.5598,.8286,0,.8333,-.5528,0,.7101,.704,0,.7101,-.704,0,.8333,.5528,0,.5598,-.8286,0,.9247,.3805,0,.3879,-.9217,0
                    ,.981,.1939,0,.6965,.704,-.1385,.8173,.5528,-.1626,.6965,-.704,-.1385,.549,-.8286,-.1092,.907,.3805,-.1804,.3804,-.9217,-.0757,.9622,.1939,-.1914,.1971,-.9796,-.0392,.9808,0,-.1951,.1971,.9796,-.0392,.9622,-.1939,-.1914,.3804,.9217,-.0757,.907,-.3805,-.1804,.549,.8286,-.1092,.8173,-.5528,-.1626,.9063,-.1939,-.3754
                    ,.3583,.9217,-.1484,.8544,-.3805,-.3539,.5171,.8286,-.2142,.7699,-.5528,-.3189,.6561,.704,-.2717,.6561,-.704,-.2717,.7699,.5528,-.3189,.5171,-.8286,-.2142,.8544,.3805,-.3539,.3583,-.9217,-.1484,.9063,.1939,-.3754,.1856,-.9796,-.0769,.9239,0,-.3827,.1856,.9796,-.0769,.5904,-.704,-.3945,.4654,-.8286,-.311,.7689,.3805,-.5137
                    ,.3225,-.9217,-.2155,.8157,.1939,-.545,.1671,-.9796,-.1116,.8314,0,-.5556,.1671,.9796,-.1116,.8157,-.1939,-.545,.3225,.9217,-.2155,.7689,-.3805,-.5137,.4654,.8286,-.311,.6929,-.5528,-.463,.5904,.704,-.3945,.6929,.5528,-.463,.2743,.9217,-.2743,.6539,-.3805,-.6539,.3958,.8286,-.3958,.5893,-.5528,-.5893,.5021,.704,-.5021
                    ,.5021,-.704,-.5021,.5893,.5528,-.5893,.3958,-.8286,-.3958,.6539,.3805,-.6539,.2743,-.9217,-.2743,.6937,.1939,-.6937,.1421,-.9796,-.1421,.7071,0,-.7071,.1421,.9796,-.1421,.6937,-.1939,-.6937,.5137,.3805,-.7689,.2155,-.9217,-.3225,.545,.1939,-.8157,.1116,-.9796,-.1671,.5556,0,-.8314,.1116,.9796,-.1671,.545,-.1939,-.8157
                    ,.2155,.9217,-.3225,.5137,-.3805,-.7689,.311,.8286,-.4654,.463,-.5528,-.6929,.3945,.704,-.5904,.3945,-.704,-.5904,.463,.5528,-.6929,.311,-.8286,-.4654,.3539,-.3805,-.8544,.1484,.9217,-.3583,.2142,.8286,-.5171,.3189,-.5528,-.7699,.2717,.704,-.6561,.2717,-.704,-.6561,.3189,.5528,-.7699,.2142,-.8286,-.5171,.3539,.3805,-.8544
                    ,.1484,-.9217,-.3583,.3754,.1939,-.9063,.0769,-.9796,-.1856,.3827,0,-.9239,.0769,.9796,-.1856,.3754,-.1939,-.9063,.0757,-.9217,-.3804,.1804,.3805,-.907,.1914,.1939,-.9622,.0392,-.9796,-.1971,.1951,0,-.9808,.0392,.9796,-.1971,.1914,-.1939,-.9622,.0757,.9217,-.3804,.1804,-.3805,-.907,.1092,.8286,-.549,.1626,-.5528,-.8173
                    ,.1385,.704,-.6965,.1385,-.704,-.6965,.1626,.5528,-.8173,.1092,-.8286,-.549,0,-.3805,-.9247,0,-.5528,-.8333,0,.8286,-.5598,0,.704,-.7101,0,-.704,-.7101,0,.5528,-.8333,0,-.8286,-.5598,0,.3805,-.9247,0,-.9217,-.3879,0,.1939,-.981,0,-.9796,-.201,0,0,-1,0,.9796,-.201
                    ,0,-.1939,-.981,0,.9217,-.3879,-.0392,-.9796,-.1971,-.1951,0,-.9808,-.0392,.9796,-.1971,-.1914,-.1939,-.9622,-.0757,.9217,-.3804,-.1804,-.3805,-.907,-.1092,.8286,-.549,-.1626,-.5528,-.8173,-.1385,.704,-.6965,-.1385,-.704,-.6965,-.1626,.5528,-.8173,-.1092,-.8286,-.549,-.1804,.3805,-.907,-.0757,-.9217,-.3804,-.1914,.1939,-.9622
                    ,-.2142,.8286,-.5171,-.2717,.704,-.6561,-.2717,-.704,-.6561,-.3189,.5528,-.7699,-.2142,-.8286,-.5171,-.3539,.3805,-.8544,-.1484,-.9217,-.3583,-.3754,.1939,-.9063,-.0769,-.9796,-.1856,-.3827,0,-.9239,-.0769,.9796,-.1856,-.3754,-.1939,-.9063,-.1484,.9217,-.3583,-.3539,-.3805,-.8544,-.3189,-.5528,-.7699,-.5556,0,-.8314,-.1116,.9796,-.1671
                    ,-.1116,-.9796,-.1671,-.545,-.1939,-.8157,-.2155,.9217,-.3225,-.5137,-.3805,-.7689,-.311,.8286,-.4654,-.463,-.5528,-.6929,-.3945,.704,-.5904,-.3945,-.704,-.5904,-.463,.5528,-.6929,-.311,-.8286,-.4654,-.5137,.3805,-.7689,-.2155,-.9217,-.3225,-.545,.1939,-.8157,-.5021,-.704,-.5021,-.5021,.704,-.5021,-.5893,.5528,-.5893,-.3958,-.8286,-.3958
                    ,-.6539,.3805,-.6539,-.2743,-.9217,-.2743,-.6937,.1939,-.6937,-.1421,-.9796,-.1421,-.7071,0,-.7071,-.1421,.9796,-.1421,-.6937,-.1939,-.6937,-.2743,.9217,-.2743,-.6539,-.3805,-.6539,-.3958,.8286,-.3958,-.5893,-.5528,-.5893,-.1671,.9796,-.1116,-.1671,-.9796,-.1116,-.8157,-.1939,-.545,-.3225,.9217,-.2155,-.7689,-.3805,-.5137,-.4654,.8286,-.311
                    ,-.6929,-.5528,-.463,-.5904,.704,-.3945,-.5904,-.704,-.3945,-.6929,.5528,-.463,-.4654,-.8286,-.311,-.7689,.3805,-.5137,-.3225,-.9217,-.2155,-.8157,.1939,-.545,-.8314,0,-.5556,-.6561,.704,-.2717,-.7699,.5528,-.3189,-.5171,-.8286,-.2142,-.8544,.3805,-.3539,-.3583,-.9217,-.1484,-.9063,.1939,-.3754,-.1856,-.9796,-.0769,-.9239,0,-.3827
                    ,-.1856,.9796,-.0769,-.9063,-.1939,-.3754,-.3583,.9217,-.1484,-.8544,-.3805,-.3539,-.5171,.8286,-.2142,-.7699,-.5528,-.3189,-.6561,-.704,-.2717,-.9622,-.1939,-.1914,-.1971,.9796,-.0392,-.3804,.9217,-.0757,-.907,-.3805,-.1804,-.549,.8286,-.1092,-.8173,-.5528,-.1626,-.6965,.704,-.1385,-.6965,-.704,-.1385,-.8173,.5528,-.1626,-.549,-.8286,-.1092
                    ,-.907,.3805,-.1804,-.3804,-.9217,-.0757,-.9622,.1939,-.1914,-.1971,-.9796,-.0392,-.9808,0,-.1951,-.7101,-.704,0,-.5598,-.8286,0,-.9247,.3805,0,-.3879,-.9217,0,-.981,.1939,0,-.201,-.9796,0,-1,0,0,-.201,.9796,0,-.981,-.1939,0,-.3879,.9217,0,-.9247,-.3805,0,-.5598,.8286,0
                    ,-.8333,-.5528,0,-.7101,.704,0,-.8333,.5528,0,-.907,-.3805,.1804,-.549,.8286,.1092,-.8173,-.5528,.1626,-.6965,.704,.1385,-.6965,-.704,.1385,-.8173,.5528,.1626,-.549,-.8286,.1092,-.907,.3805,.1804,-.3804,-.9217,.0757,-.9622,.1939,.1914,-.1971,-.9796,.0392,-.9808,0,.1951,-.1971,.9796,.0392,-.9622,-.1939,.1914
                    ,-.3804,.9217,.0757,-.5171,-.8286,.2142,-.3583,-.9217,.1484,-.8544,.3805,.3539,-.9063,.1939,.3754,-.1856,-.9796,.0769,-.9239,0,.3827,-.1856,.9796,.0769,-.9063,-.1939,.3754,-.3583,.9217,.1484,-.8544,-.3805,.3539,-.5171,.8286,.2142,-.7699,-.5528,.3189,-.6561,.704,.2717,-.6561,-.704,.2717,-.7699,.5528,.3189,-.3225,.9217,.2155
                    ,-.4654,.8286,.311,-.7689,-.3805,.5137,-.6929,-.5528,.463,-.5904,.704,.3945,-.5904,-.704,.3945,-.6929,.5528,.463,-.4654,-.8286,.311,-.7689,.3805,.5137,-.3225,-.9217,.2155,-.8157,.1939,.545,-.1671,-.9796,.1116,-.8314,0,.5556,-.1671,.9796,.1116,-.8157,-.1939,.545,-.6539,.3805,.6539,-.6937,.1939,.6937,-.1421,-.9796,.1421
                    ,-.7071,0,.7071,-.1421,.9796,.1421,-.6937,-.1939,.6937,-.2743,.9217,.2743,-.6539,-.3805,.6539,-.3958,.8286,.3958,-.5893,-.5528,.5893,-.5021,.704,.5021,-.5021,-.704,.5021,-.5893,.5528,.5893,-.3958,-.8286,.3958,-.2743,-.9217,.2743,-.5137,-.3805,.7689,-.463,-.5528,.6929,-.3945,.704,.5904,-.3945,-.704,.5904,-.463,.5528,.6929
                    ,-.311,-.8286,.4654,-.5137,.3805,.7689,-.2155,-.9217,.3225,-.545,.1939,.8157,-.1116,-.9796,.1671,-.5556,0,.8314,-.1116,.9796,.1671,-.545,-.1939,.8157,-.2155,.9217,.3225,-.311,.8286,.4654,-.0769,-.9796,.1856,-.3827,0,.9239,-.0769,.9796,.1856,-.3754,-.1939,.9063,-.1484,.9217,.3583,-.3539,-.3805,.8544,-.2142,.8286,.5171
                    ,-.3189,-.5528,.7699,-.2717,.704,.6561,-.2717,-.704,.6561,-.3189,.5528,.7699,-.2142,-.8286,.5171,-.3539,.3805,.8544,-.1484,-.9217,.3583,-.3754,.1939,.9063,-.1385,.704,.6965,-.1385,-.704,.6965,-.1626,.5528,.8173,-.1092,-.8286,.549,-.1804,.3805,.907,-.0757,-.9217,.3804,-.1914,.1939,.9622,-.0392,-.9796,.1971,-.1951,0,.9808
                    ,-.0392,.9796,.1971,-.1914,-.1939,.9622,-.0757,.9217,.3804,-.1804,-.3805,.907,-.1092,.8286,.549,-.1626,-.5528,.8173
                ]),
                false);

                geo = (_B.Tools.Now - geo) / 1000;
                this.subMeshes = [];
                new _B.SubMesh(0, 0, 482, 0, 2880, this);
                if (scene._selectionOctree) {
                    scene.createOrUpdateSelectionOctree();
                }
            }
            
            this.physicsImpostor = new _B.PhysicsImpostor(this, 1, { mass: 1, friction: .5, restitution: 0}, scene);



 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...