I have been working on Flash AS3 project. I am designing a 3D system.
Consider a MovieClip A which is at (0,0,0).
A contains B which is at (10,10,10). If I rotate A by 10 degrees then the position of B with respect to A remains the same but position of B with respect to the system changes.
To find Global X and Y of B, we have the function localToGlobal but it does not tell anything about the Z property. How to find that?
Please help! Thanks for considering this question.
I found out!
We can use myMovieClip.transform.getRelativeMatrix3d(root).position
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/geom/Transform.html
Thanks for all your help! This works fine.