- Home /
3D box collider go through terrain
Hello,
ok, this is driving me crazy. I must be missing something really obvious here, but I can not seem to find it. I started playing with 3D in Unity (worked only with 2D until now). I am actually following this tutorial as an example: https://www.youtube.com/watch?v=c5Snsi68xzE
My problem is that whenever I use box colliders on the car, the car just falls and go through the terrain. Car has a rigidbody, and terrain have a terrain collider. I also tried placing a cube under the car(with box collider and rigidbody), but still the car just go through it. Nothing is set to IsTrigger. I can not make any object collide without them going though each other. What am I missing here?
Thanks Jack
have you placed the car ABOVE the terrain/box object to start with? its important that they are not touching when you start, or if they are that its dead on the money, any variation may cause this
yeah, the car is above the terrain and they are not touching each other.
Answer by unimechanic · Oct 01, 2014 at 04:20 PM
Attach a Rigidbody to the object, only move it applying forces to it (not MovePosition, that teleports it), and do it always inside FixedUpdate.
Your answer
Follow this Question
Related Questions
Collision not working 1 Answer
Colliding with Terrain and Destroying it 1 Answer
3D Model problems 1 Answer
Spawning Terrain Around The Player 0 Answers
Destroy Terrain Trees And They Collider 0 Answers