- Home /
Character Controller Collision with terrain
im currently creating a game that is a sort of dune buggy game, and i'm using a character controller to control the car part and terrain as the ground. but when i test the game, the car just falls through, how can i mke the character controller collide with the terrain?
Answer by Dreamer · May 26, 2011 at 01:49 AM
This is usually because the controller capsule is already colliding "in" terrain already when object is instantiated. Try to raise the position higher, so that capsule is just above over the terrain.
Answer by tzy104 · Jan 15, 2012 at 04:08 PM
Dreamer is right in that your capsule is already interacting with the terrain. However, I've found just positioning the capsule higher sometimes breaks all connection, causing your capsule to never interact (depending on your gravity setting on the buggy here).
I've found the EASIEST solution, to usually be create a starting zone (usually I use a plane or cube component) that is hovering just above a spot on the terrain you want to spawn at. These are flat and will be very easy to position your capsule onto without going 'in' the terrain.
From there you should be able to drive off the plane or cube onto your terrain, and be good to go!
Your answer
![](https://koobas.hobune.stream/wayback/20220612085121im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Physics AddForce reduced when 3 objects are colliding 1 Answer
How to trigger different animations depending on where a gameobject collides? 1 Answer
Making Colliders/Triggers or Rigidbodies move a Character Controller 5 Answers
OnCollisionEnter not working with CharacterController 1 Answer
OnCollisionEnter Push Object Problem 0 Answers