Hi,
i have an airplane which can fly through a world with a terrain.
My airplane has a Box Collider and a Rigidbody Component. My terrain has a Terrain Collider attached.
Now if i dont check to use either the airplane or the terrain as trigger, the airplane collides automatically with the terrain.
But i want to do something within a script on collision. So i tried using the OnTriggerEnter function in my script. This function is only called if i use either the airplane or the spaceship as trigger.
The OnTriggerEnter function is now called as i want it to. But my problem is that in this case the collision is not handled automatically anymore.
Is there a way to let the collision be handled automatically and at the same time use the OnTriggerEnter function?
If not, is there an easy way to handle the collision for myself?
Greetz.