- Home /
Playing An Animation At A Certain Point Based On Mouse Position
I was wondering if this would be the best way to go about what I'm trying to do. Imagine you have a rocking chair. The rocking chair has an animation that makes it rock back and forth. I would like it so that every frame, it check your mouse position and plays the animation according to your mouse position. For example, if your mouse is towards the right of the screen, the rocking chair would rock almost fully, and if the mouse was all the way at 0, the rocking chair would rock back. Please let me know if this is the best way of going about this. Thanks!
Your answer
Follow this Question
Related Questions
Issue with mecanim playing an animation using setbool 1 Answer
Imported Blender Animations not Working 2 Answers
Unity Mechanim playing default layer state animation when gameObject is duplicated in the scene 0 Answers
How do I Change States in Animations? 1 Answer
how to solve MissingComponentException: There is no 'Animator' attached to the "Ethan 1" game object 1 Answer