Update of bounds after scaling

Software: Away3D 4.x

aeki, Member
Posted: 11 March 2013 10:29 AM   Total Posts: 73

After scaling a Mesh by using scaleX propertu, why don’t i get MaxX and MinX updated, even if i call bakeTransformations() after scaling?

   

geekay, Jr. Member
Posted: 11 March 2013 07:36 PM   Total Posts: 40   [ # 1 ]

Does updateTransform() help update the values?

   

aeki, Member
Posted: 11 March 2013 10:36 PM   Total Posts: 73   [ # 2 ]

nope it doesn’t

To have the bounds updated, I had after a scaleX property setting, I had to call

bakeTransformations() and then updateBounds(); I haven’t understood why.

However, I’ve discovered the MeshHelper class which is more appropriated for what i need. I had a quick look at the code, and I realized that scaling an mesh is more complicated than just modifying its scaleX scaleY and scaleZ properties.

Thanks for helping !!

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X