Sign in to follow this  

Hexagonal maps and fields of view

Recommended Posts

When using a hexagonal map system, is there a common method for calculating whether a target hex is in a given field of view when given the source hex, the direction the unit is facing and the bounds of the arc (e.g 30 degrees either side of the centreline of the unit)? I have implemented a method which converts hex coordinates into vectors, along with all the appropriate maths (angle between vectors etc) with a little margin for floating point error. I was curious if there was something more algorithmic rather than mathematical, similar to the method required to calculate range, before I do some more research into the error with unit tests. Thanks in advance.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this