Hello. As a practice exercise, I’m remaking pong in Unity. I’ve been trying for the last couple of days to make the target swivel pointer. It shows were the ball/puck is going to launch and moves up and down. Its a rectangle where one end stays centered at (0,0) and the other end moves to point at the launch direction. I’ve tried using RotateAround and changing the pivot point of the sprite but neither seemed to work. Changing the pivot point didn’t change where the image rotated, just where the image was drawn. I’m now trying to do it via script and some trigonometry using the object’s rotation. Is there some easy way to do this that I’m not seeing?
Make an empty parent and rotate that. It will rotate around the parents pivot.
4 Likes
Victory! Thanks so much!
That is only for the editor widgedts, not runtime or editor scripts.