- Home /
RigidBody Character Controller Sinking into Floor?
I've been using this script: http://wiki.unity3d.com/index.php?title=RigidbodyFPSWalker Everything works fine, but unfortunately the Controller sinks into the ground slightly and stays there. It would be great if someone could help me (and no, the Character Controller IS over the floor on the y Axis)! Thanks.
Answer by clunk47 · Jun 13, 2013 at 06:36 PM
Try adjusting the Skin Width of the controller to be bigger, or smaller. Experiment. Also take a look at the Docs.
Well not really sure if this really counts as a legit answer, but experimenting did it for me! :D I exchanged the normal character controller with a Capsule and then added the scripts and Camera. Works fine as far as I am concerned! I deleted the "Graphics" thing which was causing the problem. Will this be a great impact on my game?
You should be good. I misread your question at first, didn't realize the script you were using was a rigidbody controller. You usually don't want to use a rigidbody component AND a character controller, because they both have their own physics. Sorry I could have just told you to do what you already did to fix it lol, glad you were able to figure it out yourself though :)