So I am about 5 days in to learning now and it is a lot of fun. I created some walls and I an walking the camera through a maze. I have added ridgidbody and collide boxes to my camera and walls. I am experiencing a strange problem when the walls and camera meet. The camera seems to take on a life of its own and floats around automatically and rotate even though I have not buttons to make it rotate?
Where would I find the section to limit or fix this? is it with code or some check boxes? not sure where to start to look.
Edit: It appears addign a drag of 10 and locking the Y axis was that thing to do. Now it no longer floats when it collides. I hope this was the correct way to fix this.
I don’t know if that is it. I did turn them on for my walls because they first would fall over when the camera and the wall would collide. But when I crash against a wall the camera can rotate on the z axis, like a plane banking. So I frozze the Ridgidbody rotation which fixed that. But when I check off the postion X,Y,Z for the camera the camera can now passes through the walls? There is some secondary motion that is introduced to my camera after I collide with a ridgidbody that I can’t correct?
For your walls, you likely don’t need or want rigid bodies on them. Only if you need them to move.
About your camera, that sounds right…it’s going to react to a collission if it’s not kinematic. To perfect what you are trying to do, you probably want a raycasting solution instead.