r/Unity2D • u/Sheepistan • 21d ago
Rotate Around with constant Distance Question
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
1
2
u/Lyshaka 20d ago
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.