Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn the fundamentals of collision detection and resolution in game programming through this comprehensive lecture from Memorial University's Computer Science 4300 course. Explore the critical role of collisions in games and understand common collision detection problems that developers face. Master bounding shapes concepts, focusing specifically on bounding boxes and rectangles as foundational collision detection tools. Dive deep into Axis Aligned Bounding Boxes (AABB), learning how to detect points inside AABBs and implement AABB intersection detection algorithms. Understand horizontal and vertical overlap calculations for AABBs and develop skills in collision resolution techniques. Discover methods for detecting collision direction and handling top/bottom collision detection scenarios. Examine tricky resolution cases that commonly occur in game development and analyze practical applications through a Super Mario Bros example. Gain hands-on knowledge of vector math applications, collision detection algorithms, and game physics principles essential for creating fully functional games using ECS architecture in C++.
Syllabus
00:00 - Intro
00:25 - Collisions in Games
04:42 - Collision Detection Problems
06:48 - Bounding Shapes
11:21 - Bounding Box / Rectangle
16:27 - Axis Aligned Bounding Boxes AABB
18:15 - Point Inside AABB
20:58 - AABB Intersection Detection
22:39 - AABB Horizontal Overlap
24:17 - AABB Vertical Overlap
25:05 - AABB Overlap Calculation
31:56 - AABB Collision Resolution
39:05 - Detecting Collision Direction
42:12 - Top / Bottom Detection
43:07 - Tricky Resolution Cases
47:19 - Super Mario Bros Example
49:16 - Recommended Videos
Taught by
Dave Churchill