- Home /
Character Controller problem
Hello guys. I’m doing a 2d game where there are lot of boxes that collide with things using characterController and OnControllerColliderHit . The problem is: I don’t want that the boxes collide with each other.
Any help?
do the boxes have rigidbodies? you could mark them as is$$anonymous$$inematic, and then they won't 'collide' as I'm assu$$anonymous$$g you meant. Another thing you could try is Physics.IgnoreLayerCollision (or something like that) and then set the boxes to that layer, and have them ignore collisions with objects on the other layers.
they haven't rigidbodies just character Controller. What should i do?
Answer by Doireth · Jul 19, 2012 at 10:33 PM
Thought I posted this, oh well:
http://docs.unity3d.com/Documentation/Components/LayerBasedCollision.html
Answers and comments are moderated to cut down on spam, patience is appreciated.
WOoow i didn't know this. This is kinda handy, thanks ^^ you were a great help.
Your answer
Follow this Question
Related Questions
Collision on character controller (fps player) 0 Answers
Ceiling collision detection 0 Answers
character collider colliding with another character collider 1 Answer
OnControllerColliderHit -> GetComponent on collided object not working 1 Answer
OnControllerColliderHit won't trigger if not moving 2 Answers