Spatial Hash Setup - 3D Collisions in GameMaker
Spatial hashes are an alternate way to optimize 3D collision worlds compared to quad or octrees. Let's have a look at getting them set up!
I wish I counted on doing this at the beginning of this series, because adding the relevant GetMin and GetMax() methods would have made a bit more sense to do earlier on in this project.
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
Each week is its own release tag:
https://github.com/DragoniteSpam-GameMaker-Tutorials/3DCollisions/releases/tag/0.32
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:26 What is a spatial hash?
1:37 Project maintenance
5:23 Spatial hash outline
12:39 Giving everything a GetMin() and GetMax() method
26:22 The end
#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 Spatials Statistics For DragoniteSpam
DragoniteSpam presently has 705 views for The Spatials across 2 videos, with his channel currently having around hour worth of content for The Spatials. This is less than 0.11% of the total video content that DragoniteSpam has uploaded to YouTube.