Use the center of the square (xc, yc) as reference and check if(xc, yc)is inside a hexagon.
Use this feature to update the bee.currentHexagon property.
Later on, we will check collisions, looking for each hexagon and for the bees inside each hexagon (this will be more efficient)
Use the center of the square
(xc, yc)
as reference and check if(xc, yc)
is inside a hexagon. Use this feature to update thebee.currentHexagon
property. Later on, we will check collisions, looking for each hexagon and for the bees inside each hexagon (this will be more efficient)