I have a player with mesh collider and a terrain with terrain collider.
My player has rigidbody attached wich is Kinematic. In the mech collider, the IsTrigger is checked. I have an other cube, with cube collider.
If i go through the cube, in the log i see “Colled”, but if i go through the terrain, i cant see anything.
My code is here:
void OnTriggerEnter(Collider col) {
Debug.Log("Colled");
}
void OnTriggerExit(Collider col) {
Debug.Log("Exit");
}
void OnTriggerStay(Collider col) {
Debug.Log("Stay");
}
I want to see Colled in my Log, if i go through the terrain. Thank you for the help!