Adding Objects to Spatial Hashes - 3D Collisions in GameMaker

Channel:
Subscribers:
10,900
Published on ● Video Link: https://www.youtube.com/watch?v=3qIP92sDZJI



Duration: 32:04
249 views
11


Let's write some code to add objects to spatial hashes! There's a lot more involved here than there was to adding objects to trees, but it'll be worth it when we're finished, I promise.

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.33
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:58 SpatialHashNode Add and Remove
3:03 The hash function
5:53 Getting an object's bounding chunk
11:40 SpatialHash Add (the normal cases)
25:27 SpatialHash Add (the special cases)
30:40 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!







Tags:
game maker studio 2 3D
game maker studio 2 using 3D
game maker studio 2 3d games
game maker studio 2 3D collision
game maker studio 2 native 3D collision
game maker studio 2 3d tutorial
3d collisions in gml
gamemaker spatial hash



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.