- Home /
Collider in controlled gameobject
Hello, i have a controlled sphere with wasd but it goes through terrain and normal colliders (non-triggers of course). How can i fix it?
Answer by Owen-Reynolds · Aug 04, 2013 at 03:56 PM
Only move it by pushing the rigidbody, with commands such as AddForce or velocity=. The built-in physics system will do the actual moving, and will also check for bouncing off of other colliders.
If you move using transform.translate, that's like dragging it in the Inspector.
characterController is a different system from rigidbodies -- it avoids objects, but is less "realistec." It uses only the builtin characterController.$$anonymous$$ove function.
Don't give it a rigidbody, or another collider beside the capsule it gives you. Otherwise the two ways to move fight each other.
Your answer
Follow this Question
Related Questions
change first person controller collider to cube 1 Answer
Detecting whole gameobject, not just its collider 1 Answer
Character Controller can pass through character controller after upgrade to 4.0 0 Answers
balancing board 2 Answers
Sinking Sand 2 Answers