MENU

Fun & Interesting

How Collision Works in Video Games (And Why You Need It)

Fishy Games 2,893 3 months ago
Video Not Working? Fix It Now

Wishlist Idle Fisher on Steam! https://store.steampowered.com/app/3613500/Idle_Fisher/ Turns out that video games need collision. The player could walk infinitely in any direction, phase through objects, and basically break the game. In this video, I dive into how collision works in video games, why it's so important, and how I implemented the Separating Axis Theorem (SAT) to fix my game. I also had to make sure fishing mechanics worked correctly—because obviously, trapping the player in a never-ending fishing prison is top priority. After a lot of trial and error (and some questionable coding decisions), I finally got collision working. Now my game actually makes sense! TIMESTAMPS 0:00 Intro 0:55 Collision 1:17 Separating Axis Theorem (SAT) 2:41 Back to Collision 3:17 Collision.col 4:11 Identifiers 5:56 Collision Engine 7:00 Outro

Comment