Is there a way to rotate an object (plain graphic) around it's X axis using Starling (stage3D)? There was rotationXYZ in "standard" Flash (stage) to do this and I am looking for similar solution.
Asked
Active
Viewed 1,462 times
0

Ivan Chernykh
- 41,617
- 13
- 134
- 146

SzRaPnEL
- 171
- 3
- 17
-
well.. if you're using stage3D, have you actually looked into the api reference on rotations? an example of a google search http://stackoverflow.com/questions/8238061/how-do-you-combine-x-y-and-z-rotations-in-a-models-local-space-not-global – user151496 May 06 '13 at 15:32
-
@user1916182 - this is not it , because of Starling is a 2d framework – Ivan Chernykh May 06 '13 at 18:40
-
wait, then why do you mention stage3D in the post? :S by the way, look at the link that i've posted, you could still make use of the matrix provided in the answers – user151496 May 07 '13 at 09:41
1 Answers
1
At the moment, these features are not implemented (see forum page) .But, you can play with transformationMatrix
of Starling's DisplayObject
. Or if you are rendering your texture on runtime from ordinary Flash DisplayObject
you can first give rotation to DisplayObject
instance and then turn it into texture , very elegant..

Ivan Chernykh
- 41,617
- 13
- 134
- 146