Terrain and rigidbody not colliding - boat versus bank

Hi Unitarians,

I have a terrain and a rigidbody modelling a boat and a riverbank. The terrain has the standard collider, and the boat has a rigidbody with kinematic set, as the movement is controlled via script, not the physics engine.

The problem is the boat will simply sail through the terrain I have generated, when I want it to crash. I have tried swapping the terrain collider for a rigidbody collider, and also adding a character controller into the boat, in addition to the rigidbody. Nothing works.

The boat is limited to one plane of movement, and it will intersect a water plane as well for the illusion of flotation.

Do I need to somehow turn on collisions? I thought this was handled automagically by the physics colliders? Is kinematic the problem?

if I turn off kinematic, and turn on gravity the boat falls. It is above the base plane of the terrain mesh BTW. What gives?

Thanks in anticipation

Papa

First, you either need to add a collider or a CharacterController to get collisions. Best in your case is CharacterController, otherwise you need physics with kinematic OFF. If you have a charactercontroller added you can remove the rigidbody and all other colliders. Move the object using the Move methods in the charactercontroller instead directly on Transform. You can still rotate the normal way. The collisionflags of the charactercontroller can be used to determine collisions.