- Home /
Question by
Devision4 · Jan 16, 2013 at 05:00 PM ·
animationrotationjavascriptitem
How to make a animation rotation js.script?
Hello, I have a apple.fbx and want that the apple auto-rotate 360° in my game. The game is a platformer and the apple is a collectable item. How can I make the apple rotate around his axis? Thank you!
Comment
Best Answer
Answer by Lovrenc · Jan 16, 2013 at 05:01 PM
transform.RotateAround(transform.position, transform.up, Time.deltaTime * 45f);
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Gun Rotation 2 Answers
How to fix Animation 1 Answer
Why won't it run 1 Answer
I'm confused with the animator 1 Answer