OnTriggerEnter not called

Posted by Lautaro on Game Development See other posts from Game Development or by Lautaro
Published on 2013-11-02T13:23:41Z Indexed on 2013/11/02 16:03 UTC
Read the original article Hit count: 315

Filed under:

I am working on a fight game with 3D models but played like a 2D game. So the player characters have swords. The Player GameObject has several body parts that are colider triggers. The sword is a rigidbody colider.

Ive had som problems with colisions not being detected. Ive added some Debug.Log and slowed downed the animations so what i can see is this:

When players are close to each other the sword connects from a different angle. The OnTriggerStay is called several times BEFORE OnTriggerEnter is called if players are too close. Sometimes if too close the OnTriggerStay is called several times but the OnTriggerEnter is NEVER called. Any ideas on why this is?

© Game Development or respective owner

Related posts about unity