Войти
  • 395Просмотров
  • 2 месяца назадОпубликованоRalibytes

Learning Raylib in C — Making Two Circles Collide!

the Formula of Pythagorean theorem in the video is wrong at 1:43 the correct Formula : (x1-x2)² + (y1-y2)² for the second part with if : ((red_x - white_x)² + (red_y + white_y)²) less or = ((red_radi + white_radi)²) "angle brackets are not allowed in the description so 'less' as a substitute" Hello it's been a while. In this video, I’ll show you how I made two circles collide using Raylib and C. I'm currently exploring Raylib functions and testing them . links : MacroPixel : Programming With Nick : Raylib Cheat sheet : Stack Overflow : Time Stamp : 0:00 Disclaimer 0:10 Intro 0:21 Getting started 0:33 Getting a window 1:21 Variables 1.0 and circle 1:47 Movements 1.0 2:04 Wall Collision 1.0 3:04 Collision path 3:16 The hard way 4:00 New path ? 5:22 Next Day 5:51 Variables 2.0 5:59 Drawing Circle 2.0 6:38 Movements 2.0 7:00 Wall collision 2.0 7:07 CheckCollisionCircles() 7:40 Ending #raylib #learningc #devlog #gamedevelopment #collisiondetection