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-

enter image description here

the trigger properties-

enter image description here

that's because it's ontriggerenter, captial "o".


Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

Python Error - TypeError: input expected at most 1 arguments, got 3 -

dns - How To Use Custom Nameserver On Free Cloudflare? -