- Home /
How can I create a normal TPS (third person shooter) camera orbit with collision ?
I want my camera not to go through walls and I created a box colider for my camera but still when I orbit my camera in game it goes inside the walls with and without the colider, I even tried to create another colider(have double colider) but still doesnt work, I dont want anythin else , just solving the colider problem is what I want from u guys, My code for orbit is «transform.Rotate» , and I gave the code to the parent of my camera, so when the parent of camera rotates, the camera orbits around it :) I cant use collider because of this code, because this code doesnt use physics, so collider is useless, I even tried another way to orbit with «rigidbody.addforce», the problem of going through walls is ok but it doesnt orbit like how «transform.Rotate» does... :( Could you please either find a way to stop going through walls with «transform.rotate» or find a way to orbit TPS ( third person shooter ) like with «rigidbody»?