- Home /
Rotate back and forth around pivot
I have a piano in my game and if you click on a key it should rotate a little down and then back to the original position. It should not stay pressed as long as the mouse is clicked. The key must rotate around a pivot point. I've realized this with an empty GameObject as parent. But i don't get how i should realize the rotation.,In have a piano in my game. If i click on a key it should rotate a little down and up again. The key should not stay pressed as long as the mouse is clicked. it must rotate around a custom pivot. i realized that with a parent GameObject for every key.
But how to do the rotation?
Your answer
Follow this Question
Related Questions
Rotate an object (gun) around another (player) to always face the mouse position. 0 Answers
Smoothly rotating an object to a specific rotation. 1 Answer
How to rotate an object to "sit" on a sphere 1 Answer
The vision of a camera (displayed as a 3D Cone) needs to rotate towards the player 1 Answer
Model Viewer Camera Rotation 0 Answers