Detect Collision of non-trigger- and trigger-colliders
Hello everyone, How could I detect a collision of two objects. One has a trigger, another hasn't. I tried using this on the collider with only trigger
void OnCollisionEnter(Collision col)
{
Debug.Log("Collision");
}
but nothing happens. Has anyone an idea?
Comment
If one is a trigger you need to use the trigger functions and not the collision, as shown below by @tanoshimi.
Best Answer
Answer by tanoshimi · Aug 22, 2016 at 02:15 PM
void OnTriggerEnter(Collider col) {
Debug.Log("Collision");
}