Sphere Displacement and Collision Avoidance - 3D Collisions in GameMaker
What if instead of moving a distance and checking for collision, you could instead implement a form of collision avoidance to figure out the nearest free space in the event of a collision? Let's talk about sphere displacement!
This video took about 50 years off my lifespan.
3D collisions in native GML are one of the more commonly requested tutorial subjects I get. This is a big subject and will require a long time to cover properly, but they can be done - no external DLLs required!
As always, you can find the GML code on my tutorial Github:
https://github.com/DragoniteSpam-GameMaker-Tutorials/3DCollisions
https://github.com/DragoniteSpam-GameMaker-Tutorials/3DCollisionTestWorld
3D collisions in GameMaker playlist:
https://www.youtube.com/playlist?list=PL_hT--4HOvrf_VYo26LNl3zN5uwfuC3CC
GameMaker 3D playlist:
https://www.youtube.com/playlist?list=PL_hT--4HOvrcML9uqHe4fwBVTm650Vy3V
GameMaker Studio 2 playlist:
https://www.youtube.com/playlist?list=PL_hT--4HOvrdAGC6YHCqn_VR69GlR_rQw
0:00 Introduction
0:34 What is sphere displacement good for?
4:21 A summary of the changes we're about to make
9:33 Displacing spheres from points
14:19 Displacing spheres from spheres
16:34 Displacing spheres from capsules
19:26 Displacing spheres from planes
24:06 Displacing spheres from triangles
29:38 Displacing spheres from AABBs, mostly
42:35 Displacing spheres from OBBs
43:41 The remaining shapes
46:01 Sphere displacement and the collision world
51:29 Displacement from multiple shapes at the same time
58:50 Showing this off in the 3D test world
1:07:21 The end
Thumbnail:
Sphere by Ates Evren Aydinel from the Noun Project
Trapezoid by Hasan from the Noun Project
#GameMaker3D
#GameMaker3DTutorial
#GameMaker3DCollisions
- - - - -
I've now made that Patreon:
https://www.patreon.com/wizardragon
That promised social media link spam.
https://twitter.com/DragoniteSpam
Transition / idle music is by my old friend Kamex:
https://www.youtube.com/user/GreatGabite/about
Rate, comment, subscribe, watch more, enjoy!
Other Videos By DragoniteSpam
Other Statistics
The Game Maker - The 18th Carol Reed Mystery Statistics For DragoniteSpam
At this time, DragoniteSpam has 607,547 views for The Game Maker - The 18th Carol Reed Mystery spread across 404 videos. The game makes up over 5 days of published video on his channel, or 11.07% of the total watchable video for The Game Maker - The 18th Carol Reed Mystery on DragoniteSpam's YouTube channel.