|
Hey there! I have a gameobject and when i click on this object, it looks in the direction of the camera (with the function lookAt() ). Is there a way to save the 'old' direction, so when I click on the gameobject again, it looks in the old direction again? Thanks for your reply!
(comments are locked)
|
|
Sure just store the transform.rotation in a Quaternion variable and set it back on the second click Excellent! Thanks
Jun 16 '12 at 01:27 PM
NeverPanic
No problem - just mark it as answered and I'm a happy man :)
Jun 16 '12 at 01:28 PM
whydoidoit
(comments are locked)
|
