Reputation: 9
i am currently working on a 2D project, i want to rotate an arm on my character, the arm is indeed a separate sprite, from the body of the player.
I have a working script the rotate the arm perfectly but, the whole arm is rotating around a point in the middle of the arm, i want to rotate the arm from the shoulder, any ideas on how to do that?
Upvotes: 0
Views: 120
Reputation: 56
The pivot point of your sprite is set to center rather than the end where the shoulder is located. You can use the sprite editor to change the pivot. Below is a quick step by step on editing the pivot. You can also find the information here -> https://docs.unity3d.com/Manual/SpriteEditor.html
Upvotes: 1