Moving the Camera forward when colliding with a wall.

Hello, I have a camera that is attached to the player that moves around when the player walks, rotates etc. The only problem is, is when I get close to a wall the camera goes right behind the wall or an object. I have tried using a box collider on the camera however when it hit the wall it seemed to go into a spiraling state. I have viewed other tutorials as well however they are implementing the use of zoom, mouse clicks etc. (This is simply a mobile game using a virtual joystick.) Assistance would be much appreciated :slight_smile:

Try to use Rigidbody.MovePosition instead.