Jason Schneider
Jun 30, 2021

--

Introduction to physics in Unity.

How do we use physics in Unity?

In Unity we use physics through a combination of things called Rigid Body and Collider, these allow us to add physics properties to Game Objects which then allows those Game Objects to be controlled by virtual real world forces like gravity, velocity, acceleration, etc.

Shows a box collider on player object.

Colliders tell Unity when..Objects Collide! There are also two types of collisions. Hard Collisions and Trigger Collisions.

Hard Collisions are when two physical objects hit each other such as a ball hitting a bat or a car hitting a wall. Trigger collisions are things like when a player collects a coin, the coin isn’t going to stop the player, the player is just going to keep on going to collect more coins.

In order for Colliders to work, at least one of the Game Objects must have a Rigid Body.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response