#player trigger collision
1 messages · Page 1 of 1 (latest)
could you send screenshots of your player and the trigger in the inspector (all of their components)
could you send the trigger object as well?
okay the issue is just that your collider isn't a trigger
so ontriggerenter is never called - either change it to oncollisionenter or switch the collider to a trigger
np!
its not working
did you change the script or the collider?
script
so it's now in void OnCollisionEnter(collider other)?
ah my mistake
it needs to be OnCollisionEnter(Collision other) - collider only works for trigger enter
OnCollisionEnter is a Unity Event function, which means that it is called by unity and expects the syntax to be a certain wau
glad I could help :)
haha that's how it goes