At the moment, we are using the first person controller from the standard assets package. My problem is that the capsule collider on our character is not reacting to other colliders as it should. If you walk up to an object with a collider, it does in fact stop you're movement as it should. However, if you stand directly infront of the game object and look down (using the mouse), the player capsule rotates and breaks right through the game object collider. In other words, the colliders react properly when trying to move through a wall, but if you stand right up against the wall and look down, the capsule rotates forward and breaks right through the wall collider. Any suggestions as to how I can prevent this from happening?
Answer by MrcDesign
Aug 08, 2011 at 12:00 AM
Im not sure, but on what part of the first person controller do you have the capsule attached? Because if you put it on the controller itself, and NOT on the biped, then it should work fine. Else you could make the capsule bigger, but this will make you stand further from the objects, but the character itself wont touch them anymore.
You are correct Mrcdesign! The collider was being controlled through the variables of the controller script. I was simply applying a second collider to the capsule itself, which was being ignored. Once I expanded the radius of the collider through the character controller variables, it worked just as I desired. Thanks for the tip!
No problem, good luck on your game.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a user guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
Answers and Comments
3 People are following this question.
Can't change Y sensitivity with First Person Controller?
Move Object - doesn't work
First Person Controller gravity changing script.
Speedometer for a First Person Controller
Dual Joysticks in First Person Controller