collider question

hi all, im wanting to know how i would go about having a boat collide with water but still at the same time act as a trigger for swimming. i have the water and colider figgured but when i click istrigger the boat sinks lol. i was thinking about keeping it as trigger but adding force. i messed around with the collision matrix but couldnt realy get it working.

sorry for the bad spelling and grammar its too late at night for that.

you could either make it so that when you are in your boat the collider is a solid and when out/swimming it is trigger, but this would present other problems.

or… Don’t use a collider for the boat and instead use a rigidbody with no gravity (you will need this for buoyancy anyway)

When you click the isTrigger, you’re turning the collider into a trigger volume (an invisible box that registers touches but doesn’t prevent penetration). Try adding the function OnCollisionEnter to your boat (an unchecking isTrigger), which should get called when it hits the water. See the collider documentation here.