Hexagonal maps and fields of view

Started by
-1 comments, last by playtime 16 years, 2 months ago
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.

This topic is closed to new replies.

Advertisement