- Home /
Question by
Brewskii187 · Feb 08, 2013 at 03:50 PM ·
rotationposition
How do I get the Rotation postition of a gameobject
I have a cube rotating every 90 degrees on a left mouse click and a -90 on a right mouse click. How do I get the rotation position of the gameObject (0, 90, 180, 270)?
Comment
Answer by Dave-Carlile · Feb 08, 2013 at 03:52 PM
GameObject has a transform property that contains properties for rotation and position, among other things.