OnCollision or OnTrigger?

Photo by Conor Samuel on Unsplash

To expand our physics abilities in Unity now that we have a Rigidbody and Collider on our objects we can use methods that allow us to deal with the results of those collisions.

The first is OnCollisionEnter(), this method provides information about where the collision occurred, the velocity of the impact. With this information we can deal with things like ricochets, knockbacks, or impact damage. Let’s look at the…

--

--

--

Turning my passion for video games and 11 years of software development experience into a focus on video game development using Unity3D.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

A Comparison of Database Drivers for MySQL

Refresh Power BI Dataset Using Rest API & PowerShell

Ways to Improve Performance Testing of E-Commerce Applications

How to Improve Performance Testing of E-Commerce Applications?

The Citizen Developer (R)evolution

Factor 3: Externalizing Configuration

Day 109: Show End Scene

State of Serverless

Setup modern Salesforce release management in 5 minutes.

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
James West

James West

Turning my passion for video games and 11 years of software development experience into a focus on video game development using Unity3D.

More from Medium

Light layers in Unity HDRP

Unity Interface Layout

Adding enemies to our greybox Prototype

Learn to code by making a 2D space shooter game.