- Home /
Character controller fall through terrain
HI,
I read lot of thing concerning collision detection between first person collider and ground which not work properly. It's seems to be simple, but each time i tried to drop a controller and then play, my controller fall through the ground. My ground is a terrain made with the terrain tool, and made no change to the standard asset controller. I read official documentation and there is no reason that my try work. I've already check position, so i'm sure that my controller is above the ground. I tried to affect terrain and controller on different layer and then edit physics properties to check if there are well collide together and it's the case. Please help to go forward on Unity by doing that controller collide properly with terrain. I'm using the last version of Unity. Thanks and regards Emmanuel
Answer by BigBlob · Jun 30, 2012 at 12:10 AM
Im guessing you have Trigger checked in your Terrain Component. If that's not the case try deleting the Terrain Folder and them Importing it back again from Assets>Import Package>Terrain. If that doesn't help either, then you should reimport the Character Controller too.
Felipe
How would I have the terrain set as a trigger without falling through? I have a game wherein I want an object to be destroyed when it hits terrain, and the only way I know is to set it as a trigger.
I can do this by copying the first terrain, and moving the second down very slightly, then setting the first as trigger. I think this may be making the game lag whenever I look down.
Answer by emmanuel · Jun 30, 2012 at 11:02 AM
Thanks a lot Felipe,
The problem was here. The "Is Trigger" checkbox of my terrain was checked. I don't understand yet what this checkbox is, but i'm happy to have my controller at the top of my ground. Thanks by taking time to answer. Regards Emmanuel
Answer by emmanuel · Jun 30, 2012 at 10:49 AM
Thanks a lot Felipe
The problem was here, that my terrain "Is Trigger" checkbox was checked. I don't understand yet the goal of this checkbox, but i'm happy to have my controller above my ground. Regards. Emmanuel
Your answer
Follow this Question
Related Questions
Can't crash airplane into ground 4 Answers
Camera Colliding with Terrain 1 Answer
Airplane - Collision With Terrain Problem 1 Answer
Stopping character from walking on grass 0 Answers