- Home /
Walking through walls
I used the GridMove script from the Wiki and put it on a capsule. It has a capsule collider, and the box it's supposed to go through also has a box collider. I know that the FPS Controller prefab in the standard assets naturally doesn't go through walls and such, how do I make it like that?
Answer by UdevMike · Mar 02, 2012 at 12:03 AM
You're gonna have to give us some more details about your set-up. Since I'd assume many people havent heard of the script. Do you have a rigidbody attached to the player? Is either collider set to be a trigger?
It's a capsule with a grid$$anonymous$$ove script (http://www.unifycommunity.com/wiki/index.php?title=Grid$$anonymous$$ove) It has a mesh, collider(trigger is not checked). It does not have a rigid body.
The wall is a box stretched 10x2x10, it has a mesh and a collider(trigger not checked).
Thanks for helping so far, If any more info is needed i'll reply asap!
Your answer
Follow this Question
Related Questions
Unity 3D Java - FPC Side Walking Through The Wall Problem 0 Answers
Collision Boxes Aren't Working 2 Answers
How to use lookAt() while my character walking on a wall ? 0 Answers
Walking through walls 1 Answer
Picked up Objects pass through walls 2 Answers