Cube is falling through Terrain - Unity3D
I have a terrain and Cube. Terrain has terrain collider attached and cube has box collider on it. But still cube is falling through the terrain. I tried lot of things explained in other question but none of them has fixed the issue. Screenshot of both cube and terrain setting is attached below.
Cube Settings:
Terrain Settings
Answer by sthekken · Nov 25, 2018 at 08:16 AM
It looks like neither the terrain nor the box have a RigidBody component. As explained in the collision matrix here at least one of the bodies must have a RigidBody component for the collision to register. In this case, you should add the RigidBody component to the box GameObject (since your terrain shouldn't move around). You can set the mass, gravity, etc. as you see fit. Then your box should stop falling through the terrain.
Your answer
Follow this Question
Related Questions
All rigidbodies fall through terrain 1 Answer
Box Collider for animating characters. 0 Answers
How to use Animation Event in this case ? 1 Answer
How do I make onCollisionStay work? 1 Answer
Trigger Collider is Triggering? 0 Answers