Unity: OnTriggerEnter vs OnCollisionEnter

Notable rigidbody & collider events: 1) Event trigger on kinematic cube, turns yellow on trigger. 2) Event trigger on non-kinematic cube falls through floor. 3) No event trigger on kinematic static cube, turns red on collision . 4) No event trigger on non-kinematic cube is moved by physics, turns red on collision.
Cube and sphere have collider and rigidbody with gravity. Falls indicates object falls through floor. Floating indicates sphere cannot move. Yellow indicates a trigger event and red is a collision event.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store