BvhTriangleMesh of Maya Model not detecting collision

Software: Away3D 4.x

Durrab Khan, Newbie
Posted: 28 June 2013 07:54 AM   Total Posts: 2

I have obj file from Maya which has a pool table and balls with stick.

Pool table is based on separate meshes like floor pockets etc etc - I opened that obj file in prefab and exported as AWD2 which I can load without any problem

So when I load it then I get the table meshes and I make it as a static physics body using AWPBvhTriangleMesh - But when I make the balls dynamic and I am throwing those balls from top then then no collision happens and balls just go down and does not stay on the table. - here is the attachment of my table.

 

   

Avatar
GoroMatsumoto, Sr. Member
Posted: 29 June 2013 09:31 PM   Total Posts: 166   [ # 1 ]

Hi,
Try this before passing a geometry to BvhTriangleMesh.

_mesh.geometry.convertToSeparateBuffers(); 

In my case, this is the key to work with the class.
I guessed that BvhTriangleMesh class have not support CompactSubGeometry.
So, I tried above code for converting to SubGeometry.

Cheers.

   

Avatar
Léo Santana, Newbie
Posted: 14 July 2013 03:19 AM   Total Posts: 4   [ # 2 ]

thanks for the tip!

but I did the test with a cube and a sphere, used the triangle in two, the debug is perfect, however the collisão not work. what to do?

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X