unity3d - onTriggerEnter not called -
in unity 5, having rigidbody , trigger , trigger has tag name "goal"
now on rigidbody class have script -
void ontriggerenter(collider other) { print ("test"); if(other.transform.tag == "goal") { print ("test"); } }
but in console not "test" printed
the sources here
the rigidbody properties-
the trigger properties-
that's because it's ontriggerenter, captial "o".
Comments
Post a Comment