My First Person Camera is not colliding with any objects. I have tried looking through some help pages and exploring different options with rigid-body,box-collider, etc. Nothing seems to work well. I’m fairly new to Unity 3D, but a fast learner. If someone has any simple, well explained solutions they would be greatly appreciated! P.S. I’ve tried adding a First Person Controller given by the Standard Assets, but I wanted to use my own script not that one which doesn’t fit my needs.
Thanks so much!
When dealing with input controlled movement using rigid bodies and colliders will not provide the desired result. You probably don’t want a rigid body on the walls or camera. I am thinking that instead you will have to to use either RayCast SphereCast or CapsuleCast to determine when you get too near to a collider (wall) and then handle this on your own.
links to those function documentation is in here.
http://unity3d.com/support/documentation/ScriptReference/Physics.html
Ok great thanks so much! This helps a lot.