GridVids
Sign in with YouTube

Unity Collision Cheat-Sheet – Discrete vs Continuous

Tarodev Oct 17, 2022 01:36
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Don't Miss
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Mark watched
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Hide
Open in popup Open on YouTube
Share video

Share video

Copy the GridVids link or iframe code.

Video link
Iframe code
Iframe content

Chapters
Each collision mode offers a unique collision mechanic. Knowing which one to use is key for solid gameplay and performance. Discrete is the most performant option and should be used whenever possible. Calculations collisions each fixed step. Continuous uses a sweeping algorithm to guarantee collisions from a linear motion, but is quite a bit more expensive than discrete and only hits static colliders (no RB). Continuous dynamic is the same as continuous, but hits dynamic colliders (and is more expensive). Continuous speculative creates a bounding box around itself and its next projected frame position according to its current linear and angular motion. Anything caught within will collide. ❤️ Become a Tarobro on Patreon: https://www.patreon.com/tarodev ========= 🔔 SUBSCRIBE: https://bit.ly/3eqG1Z6 🗨️ DISCORD: https://discord.gg/tarodev ✅ MORE TUTORIALS: https://www.youtube.com/tarodev
Education
#collision #collisions #unity collision #discrete #continuous #continuous dynamic #continuous speculative #speculative #rigidbody #collision mode #collision detection #collision detection unity 3d #collision detection unity #collision detection discrete vs continuous #collision detection continuous speculative