Mesh().worldBounds.overlaps(Mesh()) Problem

Software: Away3D 4.x

MichaelS, Newbie
Posted: 09 April 2015 12:45 PM   Total Posts: 8

It seems there might be a Problem or Bug with Mesh().worldBounds.overlaps(Mesh())

In my Case the width-value seems to be inverted with the depth-value which causes false results when checking for collisions. When setting showBounds = true; the bounds as displayed correctly.

Somebody already posted about the same / similar issue here: http://away3d.com/forum/viewthread/5134/

Am I doing it wrong? My Code is as simple as that:

var collision:Boolean = mesh1.worldBounds.overlaps(mesh2.worldBounds);

here is the unexpected result:

http://youtu.be/m4CjqKsBEWM

   

MichaelS, Newbie
Posted: 09 April 2015 01:45 PM   Total Posts: 8   [ # 1 ]

I isolated the problem to the bounds not being correctly translated to worldbounds if the mesh is a child of an objectContainer3D which has a rotation set.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X