My journey becoming a Unity game developer: OnCollisionEnter Vs. OnTriggerEnter — When to use them? Triple Shot Powerup Behavior implemented.

OnTriggerEnter() used for colliding.
Triple Shot PowerUp will move downward when activated.
Powerup collected using OnTriggerEnter2D.
Powerup collides with Player using OnTriggerEnter2D.
Colliders not touching using OnTriggerEnter2D.
Using OnCollisionEnter2D to collide with the player.
Using OnCollisionEnter2D to collide into the Player.
Enemy game object using OnColliderEnter2D.
Using OnCollisionEnter2D on Player, Enemies, and Powerup.
OnTriggerEnter() used for colliding.

--

--

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
Rhett Haynes

Rhett Haynes

Learning to become a Unity game developer.