Hello,
I searched a lot about my problem all i found issues were addressed in 2013 and fixed in unity v4.5, however my problem still exist.
I am doing a very simple 2 sprites (bullet and a spaceship) with 2Drigidbody (for velocity movement) (isKinmatic disabled on both) and with 2D polygon colliders marked both as triggers.
I used :
public void OnTriggrEnter2D(Collider2D collision)
{
Debug.Log(collision.gameObject.name);
// if (collision.gameObject.tag == "Enemy")
//{
//Instantiate(spark, transform.position, transform.rotation);
//}
// Destroy(this.gameObject);
}
I had high hopes to get it to work from the first time … but then I commented out all the action of sparks / explosions, yet not even debug.log is working
what am I doing wrong ?!