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

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

python - Pygame screen.blit not working -

c# - Web API response xml language -