/physic-materials-explained

This repository is intended to be a playground to see the impacts of changes to Physic Materials in Unity

Primary LanguageMathematicaMIT LicenseMIT

Physic Materials, Explained

This repository is intended to be a playground to see the impacts of changes to Physic Materials in Unity. It was implemented in support of this tutorial video explaining Physic Materials.

Youtube Tutorial

Quickstart

In the demo scene there are two "scenarios" - balls on a flat plane, and boxes on a sloped plane. You can mostly toggle between these at runtime without consequence.

On the "Canvas" object there is a "Main Menu" script that references all colliders and rigidbodies in the scene. You can add new objects, just be sure to register them on this object. The runtime UI controls will expand based on the available rigidbodies. However, I haven't tested what happens if scrolling is required on this UI.

Click play and you can manipulate the Physic Materials at runtime, reset the scenario, then apply forces to the active rigidbodies.

Supporters

Have you been getting value out of these tutorials? Do you believe in LlamAcademy's mission of helping everyone make their game dev dream become a reality? Consider becoming a Patreon supporter and get your name added to this list, as well as other cool perks. Head over to the LlamAcademy Patreon Page, join as a YouTube Member, or even become a GitHub Sponsor to show your support.

Phenomenal Supporter Tier

  • YOUR NAME HERE!

Tremendous Supporter Tier

  • YOUR NAME HERE!

Awesome Supporter Tier

  • Ivan
  • Reulan
  • Iffy Obelus
  • Perry
  • Mustafa
  • Jerematic
  • YOUR NAME HERE!

Supporters

  • Trey Briggs
  • Matt Sponholz
  • Dr Bash
  • Tarik
  • Sean
  • Elijah Singer
  • Bruno Bozic
  • Josh Meyer
  • Ewald Schulte
  • Andrew Allbright
  • AudemKay x2
  • Claduiu Barsan-Pipu
  • Ben
  • Christian Van Sttenwijk
  • Joseph Janosko
  • Chimera Dev
  • Wendy Whitner
  • Lukas Wolfe
  • YOUR NAME HERE!

Other Projects

Interested in other Topics in Unity?

Requirements

  • Requires Unity 2022.3 LTS or higher.
  • Universal Render Pipeline (added as package dependency)
  • UI Toolkit for Runtime UI (added as package dependency)

Disclaimers

Some links in this readme may contain affiliate links which, at the time of purchase, at no additional cost to you, gives me a small portion of the purchase.