|
Post by MrNop on Mar 19, 2015 20:28:35 GMT
Hi and thanks for the great asset.
I have a few questions: 1) Is there a function to get the world coordinate of the hexagon corners (I did browse the code looking for cos or sin call with no luck).
2) Is there a simple function to get the height (and width) of an hex?
3) Could you explain the relationship between hex vector3i and world coordinates? (For instance, if I had only one Hex where would it appears? At Vector3(0, 0, 0) ?
4) Where do I have to look for the part baking the coastline?
5) Are you going to update the fog from the asset?
6) Are you going to update AStar? It currently does not seems to cleanly update
thanks and sorry for delivering all my questions in one batch ;-)
|
|
|
Post by khash on Mar 20, 2015 0:01:25 GMT
Hi! 1) no there is no code to directly take it. But river code is playing with this data a lot so look for RiverFactory 2) Hex radius is 1. so distance to the corner is exactly 1. Which gives you H = Sqrt(1^2 - (1/2)^2) = Sqrt(3/4) this is distance from hex center to the middle between two corners 3) yes it starts in (0,0,0) but Vector3i is not world coordinates. Feel free to investigate HexCoordinates class and pdf document for some more details about those two coordinate systems 4) WorldOven coastline is simply streached water texture (before rendering its moved closer to ortographic camera and scaled up. this way it does not change world shape but it does change it color next to "Sea" hexes 5) Yes but only after we finish Honey2 6) yes, for Honey2 Honey2 woudl be an upgrade of the Honey1 so no cost involved from your side, but it takes time to develop
|
|