Before updating to Windows 10 you may need to return your Pro license. More information here

First Person Controller Collider

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?

more ▼

asked Aug 04, 2011 at 04:31 PM

avatar image

166 70 52 55

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered Aug 08, 2011 at 12:00 AM

avatar image

88 20 18 25

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!

Aug 08, 2011 at 01:45 PM Tim.Holman

No problem, good luck on your game.

Aug 08, 2011 at 07:06 PM MrcDesign
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments



asked: Aug 04, 2011 at 04:31 PM

Seen: 3576 times

Last Updated: Aug 08, 2011 at 07:06 PM