How to Test if a POINT is inside a HEX! (No Raycasts, Just Simple Math)

Channel:
Subscribers:
566,000
Published on ● Video Link: https://www.youtube.com/watch?v=dqframYHfws



Category:
Tutorial
Duration: 19:47
15,267 views
567


✅ Get the Project files and Utilities at https://unitycodemonkey.com/video.php?v=dqframYHfws
🎮 Take your Skills to the NEXT LEVEL by making a Turn-Based Strategy game! https://unitycodemonkey.com/courses.php?c=turnbasedstrategy
🌍 Get my Complete Courses! ✅ https://unitycodemonkey.com/courses
👍 Learn to make awesome games step-by-step from start to finish.
👇 Click on Show More
🎮 Get my Steam Games https://unitycodemonkey.com/gamebundle

🔴 RELATED VIDEOS 🔴
Hex Pathfinding Unity Tutorial! (Hex Grid System) https://www.youtube.com/watch?v=XqEBu3un1ik
Awesome Hex Grid System Unity Tutorial! (Like Civilization, Opus Magnum, Gloomhaven) https://www.youtube.com/watch?v=0nXmuJuWS8I
Grid System in Unity (How to make it and where to use it) https://www.youtube.com/playlist?list=PLzDRvYVwl53uhO8yhqxcyjDImRjO9W722
Take your Skills to the NEXT LEVEL by making a Turn-Based Strategy game! (Unity Complete Course) https://www.youtube.com/watch?v=QDr_pjzedv0
How to get Mouse Position in 3D and 2D! https://www.youtube.com/watch?v=0jTPKz3ga4w
What is JSON? https://www.youtube.com/watch?v=4oRVMCRCvN0
How to do a BACKSTAB Mechanic! (Learn Vector3.Dot, Elden Ring, Dark Souls) https://www.youtube.com/watch?v=78J493qWfDI
Why you should NOT make everything PUBLIC! https://www.youtube.com/watch?v=pD27YuJG3L8

💬 Let's learn how to take a point and test if it's inside or outside of a Hex shape.
I first researched this because I thought it was necessary to implement a Hex grid, turns out it's not needed, just a simple distance check.
But still I kept researching this to improve my own math skills, it's actually based on some simple math and learning that will enable you to understand more complex math.

📝 Some Links are Affiliate links which means it costs the same to you and I get a nice commission.
🌍 Get Code Monkey on Steam!
👍 Interactive Tutorials, Complete Games and More!
https://store.steampowered.com/app/1294220/

If you have any questions post them in the comments and I'll do my best to answer them.

🔔 Subscribe for more Unity Tutorials https://www.youtube.com/channel/UCFK6NCbuCIVzA6Yj1G_ZqCg?sub_confirmation=1

See you next time!

📍 Support on Patreon https://www.patreon.com/unitycodemonkey
🎮 Grab the Game Bundle at https://unitycodemonkey.com/gameBundle.php
📝 Get the Code Monkey Utilities at https://unitycodemonkey.com/utils.php

#unitytutorial #unity3d #gamedev

--------------------------------------------------------------------
Hello and Welcome!
I'm your Code Monkey and here you will learn everything about Game Development in Unity using C#.

I've been developing games for several years with 8 published games on Steam and now I'm sharing my knowledge to help you on your own game development journey.

I do Unity Tutorials on just about every topic, Unity Tutorials for Beginners and Unity Tutorials for Advanced users.

You can see my games at www.endlessloopstudios.com
--------------------------------------------------------------------
- Other great Unity channels:
Unity - https://www.youtube.com/user/Unity3D
Brackeys - https://www.youtube.com/user/Brackeys
Dani - https://www.youtube.com/channel/UCIabPXjvT5BVTxRDPCBBOOQ
Jabrils - https://www.youtube.com/channel/UCQALLeQPoZdZC4JNUboVEUg
BlackthornProd - https://www.youtube.com/channel/UC9Z1XWw1kmnvOOFsj6Bzy2g
Sykoo - https://www.youtube.com/user/SykooTV
Jason Weimann - https://www.youtube.com/channel/UCX_b3NNQN5bzExm-22-NVVg
Jonas Tyroller - https://www.youtube.com/channel/UC_p_9arduPuxM8DHTGIuSOg
--------------------------------------------------------------------
- Website: https://unitycodemonkey.com/
- Twitter: https://twitter.com/UnityCodeMonkey
- Steam: https://store.steampowered.com/developer/EndlessLoopStudios




Other Videos By Code Monkey


2022-10-22TOP 10 NEW Systems and Tools OCTOBER 2022! | Unity Asset Store
2022-10-19How to use Addressables FASTER Loading FREE Memory SMALL Download
2022-10-18Making a Trailer for my SECRET project!
2022-10-15TOP 10 FREE NEW Assets OCTOBER 2022! | Unity Asset Store
2022-10-12How to Talk to NPCs! (or Interact with any Object, Open Doors, Push Buttons, Unity Tutorial)
2022-10-11Working on a SECRET project, don't tell anyone!
2022-10-08TOP 10 NEW Games, Made with Unity! (SEPTEMBER 2022)
2022-10-05Unity Pathfinding on a Hex Grid System!
2022-10-03How to make a Hex Grid System Unity Tutorial! (Like Civilization, Opus Magnum, Gloomhaven)
2022-10-02TOP 20 Animations, VFX, Models SEPTEMBER 2022! | Unity Asset Store
2022-09-30How to Test if a POINT is inside a HEX! (No Raycasts, Just Simple Math)
2022-09-26COMPLETE Unity Multiplayer Tutorial (Netcode for Game Objects)
2022-09-25TOP 10 NEW Systems and Tools SEPTEMBER 2022! | Unity Asset Store
2022-09-24Answering your Unity Multiplayer Questions (Netcode for Game Objects)
2022-09-23TOP 10 NEW Games, Made with Unity! (AUGUST 2022)
2022-09-20Unity OFFICIAL Multiplayer is FINALLY HERE!
2022-09-19I made an Awesome Artstyle! (with no Art skills!)
2022-09-17How to use Azure Functions with Storage (FREE Leaderboard Unity Tutorial, Learn Azure)
2022-09-14Does Unity care about Game Development?
2022-09-12Learn Azure Basics - Add CLOUD to your Games! Elden Ring, Dark Souls Messages Mechanic
2022-09-10Make your game LOOK AWESOME with this FREE Unity Official e-book!



Tags:
test point inside hex
unity hexagon
unity hex grid
unity hex
code monkey
unity hex grid system
unity hex pathfinding
unity civilization game
unity tutorial
unity game tutorial
unity tutorial for beginners
unity 2d tutorial
unity 3d
unity
game design
game development
game dev
game development unity
unity 2d
unity 3d tutorial
programming
coding
c#
code
software development
learn to code
learn programming
unity tutorials
how to make a game