I’m working on a game project in Unity where the player needs to progress up a tower but I want the player to always be at a set distance from an empty game object placed at the centre of the tower. I tried the 3rd person controller but the player always falls of the edge of the bricks around the tower. It is a 3D tower and a 3D character. I’m an absolute newb when it comes to coding and would really appreciate some help with this. Thanks in advance.
You don’t need an empty gameObject if you know the center position.
Try to do it with Mathf.Clamp.