Spatial Hash Setup - 3D Collisions in GameMaker

Опубликовано: 08 Ноябрь 2024
на канале: DragoniteSpam
765
25

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-Game...
Each week is its own release tag:
https://github.com/DragoniteSpam-Game...
https://github.com/DragoniteSpam-Game...

3D collisions in GameMaker playlist:
   • 3D Collisions in GameMaker  
GameMaker 3D playlist:
   • 3D in Game Maker Studio 2  
GameMaker Studio 2 playlist:
   • Game Maker Studio 2 - General Tutorials  

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:
  / wizardragon  
That promised social media link spam.
  / dragonitespam  
Transition / idle music is by my old friend Kamex:
   / greatgabite  

Rate, comment, subscribe, watch more, enjoy!