+ 1

Would you like to share some collision detection algorithms with me?

I would appreciate it if you could recommend some levant books or tutorials Or websites.

31st May 2018, 3:51 AM
Gordon
Gordon - avatar
3 Antworten
+ 1
Read the top answer here. It's full of relevant info, how it's done, some math, by categories: https://gamedev.stackexchange.com/questions/26501/how-does-a-collision-engine-work?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa It is in fact so large that I did not read in-depth for this thing I know: Major game titles do NOT usually do strict collision detection -- if they did, you would hate their games as way too hard. Instead: 'friendly' interactions are slightly easier (getting powerups, or not falling off the cliff because you just missed the edge; the game "errs" in your favor) "enemy" interactions are slightly miss-ier (did you jump just a little too late? Wow, you *just* missed getting killed by the enemy!) Those two things (+others, if I find the source) make collisions much more enjoyable for players.
31st May 2018, 4:14 AM
Kirk Schafer
Kirk Schafer - avatar
+ 3
Also, some short javascript examples using Bounding Box, Circles, Convex Polygons ... for 2D. The next category in the left-side menu covers 3D. https://developer.mozilla.org/en-US/docs/Games/Techniques/2D_collision_detection
31st May 2018, 4:29 AM
Kirk Schafer
Kirk Schafer - avatar
+ 1
Thank you very much!@Kirk Schafer
31st May 2018, 4:35 AM
Gordon
Gordon - avatar