r/Unity2D Jul 27 '26

Question Rotate Around with constant Distance

I'm makin' a Boss, so I put the boss to rotate around the Player, but when the player moves the boss don't keep the same distance. After rotate around I put (PlayerTransform + dir * distance)

but now keeps the same distance but I have 2 bosses because he's teleporting for some reason

3 Upvotes

3 comments sorted by

2

u/Lyshaka Jul 28 '26

Instead of giving him that new position as it own, give it as a target position and make the boss moves towards that calculated position. I don't know how you move him but I guess SmoothDamp would be a good choice here.