- Home /
Spin an object
Hi there, I'm totally new to Unity3D, so please forgive me if this is an obvious question :) I want to be able to to start the player, see a 3D object in front of me, and using the mouse, spin the object around freely on an axis located at the center of the object. Is this possible?
Thanks, Jeff
Thanks, tried Google, couldn't seem to home in on the answer, so that's why I'm asking here...
Answer by Steve_6 · Jun 22, 2011 at 08:38 PM
I'm new, too... but, I bet the general answer lies in writing a script that's attached to your object, whereby clicking it with your mouse rotates it around the axis that you need.
See Help > Scripting > Runtime Classes > Transform, where they've got several Javascript rotation code samples.
Your answer
Follow this Question
Related Questions
UnityException: Input Axis Rotate is not setup. 2 Answers
Rotate object on the Y axis 90 degrees every 5 minutes? 1 Answer
Rotate Texture 1 Answer