unity-game-engine

Unity 2D: Alter sprite anchor point


I've got a plain 2D Capsule Sprite. I want it to rotate around a specific point instead of its very centre. In other programs, this point is called the anchor point. For context, I'm making a paddle for my 2D pinball game so obviously the paddle needs to move when you press a button, but I can't have it moving around its very centre... Well, I could but I don't want to. So my questions are: Is anchor point the correct term for Unity? Can this be altered/moved and how?


Solution

  • So, I ended up getting an idea from a friend who does this stuff too. I made an empty game object. Made it the parent of my paddle. Moved the paddle to the point of the game object where I want the paddle to rotate around, and now when I rotate the game object, it rotates the paddle around the pivot point that I want it to have. Image of paddle, arrow pointing to the empty game object