Using Octrees and A* for Efficient Pathfinding @git-amend
Using Octrees and A* for Efficient Pathfinding  @git-amend
Uploaded September 2024 | Updated September 2026, 1 hour ago
Octrees in Unity offer an efficient way to optimize large 3D spaces, and in this video, we dive into implementing an Octree and using it in combination with the A* algorithm for pathfinding. We'll show how Octrees help divide space to manage objects and obstacles, making A* pathfinding more efficient in complex 3D environments. You’ll learn how to avoid obstacles, calculate the best routes, and leverage the power of Octrees to improve performance. Whether you're building a large open world or a detailed simulation, this tutorial will help you make the most of your spatial data in Unity.

Want to support me? 😀
Buy me a coffee! ko-fi.com/adammyhre

🔔 Subscribe for more Unity Tutorials youtube.com/@git-amend

Discord: discord.gg/FDRZGQBBUC

#unity3d #gamedev #indiedev

▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬

0:00 Octrees
11:25 A* Pathfinding
24:23 Mover

*Source code:* github.com/adammyhre/Unity-Octrees

More Useful Code:
github.com/adammyhre?tab=repositories
Unity Utility Library: github.com/adammyhre/Unity-Utils
Lock Inspector Hotkey: gist.github.com/adammyhre/4754f731a93bf1cab0d1385ccfa23642

Assets Shown In This Video (Affiliate Links)
Rocket FREE: assetstore.unity.com/packages/3d/vehicles/space/rocket-cartoon-capsule-196997?aid=1101lw3sv
Stylized Boost Trail Particles: assetstore.unity.com/packages/vfx/particles/fire-explosions/stylized-boost-trail-particles-246179?aid=1101lw3sv
Hot Reload: assetstore.unity.com/packages/tools/utilities/hot-reload-edit-code-without-compiling-254358?aid=1101lw3sv
Hierarchy Icons: assetstore.unity.com/packages/tools/utilities/better-hierarchy-272963?aid=1101lw3sv
Better Transform: assetstore.unity.com/packages/tools/utilities/better-transform-size-notes-global-local-workspace-child-parent--276554?aid=1101lw3sv
Better Mesh Filter: assetstore.unity.com/packages/tools/utilities/better-mesh-filter-266489?aid=1101lw3sv
Editor Console Pro: assetstore.unity.com/packages/tools/utilities/editor-console-pro-11889?aid=1101lw3sv
Any Object Finder: assetstore.unity.com/packages/tools/utilities/any-object-finder-286455?aid=1101lw3sv

*Follow me!*
https://linktr.ee/gitamend
Using Octrees and A* for Efficient PathfindingRadial Menu Systems in Unity | Shapes, Gradients & InteractionZLinq Revolutionizes Unity Game Development With ZERO ALLOCATIONSEASY Stats and Modifiers in Unity | Broker Chain PatternUnleashing the Power of Event Channels in UnityUnitys Experimental Profiler Tool Will CHANGE Your Multithreading GameUnlocking C# 10 in Unity: How to Use Records and Record StructsVisualizing Memory and Garbage Collection in UnityThis is How Professional Developers Clean Up Code5 Midjourney TIPS for Indie Game DevsThe Unity HACK that the PROS knowBuild a Rail Shooter in Unity: Spline Paths and Branches (Part 4)
git-amend |

Using Octrees and A* for Efficient Pathfinding

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER