Problem understanding rotations in away3d

26 views
Skip to first unread message

Kostas Katsamakas

unread,
Mar 23, 2010, 8:24:55 PM3/23/10
to away3...@googlegroups.com
It seems that i can't get a good understanding of rotations
regarding an ObjectContainer3D object relatively to its scene coordinate system.

Let me explain what doesn't seem right.

According to the documentation of away3d

when someone uses rotationX, rotationY, rotationZ of an object then it
rotates relative to the local coordinates of the parent ObjectContainer3D.

In my example the parent is the scene, so it should rotate relative to the scene
coordinate system.
So when i change obj.rotationZ my ObjectContainer3D rotates as expected around the global
z axis, and around its own local x axis. (see attached picture)

When i change obj.rotationY my ObjectContainer3D rotates as expected around the global y axis and around its own local y axis also.

BUT when i change obj.rotationX my ObjContainer3D rotates as NOT expected around the global z axis and its own local x axis.....
I thought it should rotate around the global x axis and thus its own local z axis instead!

Is there something i'm missing? I'm really confused and about to forget what i already know...
Is it a bug?

Any help would be great

Thank you in advance!
away3d_problem_.png
Reply all
Reply to author
Forward
0 new messages