示例#1
0
文件: Hex.cs 项目: R3dNW/UltimaHex
 public Hex()
 {
     this.position = new CubeCoord(0, 0);
 }
示例#2
0
文件: Hex.cs 项目: R3dNW/UltimaHex
 public Hex(int q, int r)
 {
     this.position = new CubeCoord(q, r);
 }
示例#3
0
 public static Vector3 ToWorldSpace(this CubeCoord cubeCoord)
 {
     return(new Vector3(sqrt_3 * (cubeCoord.Q + cubeCoord.R / 2), 0, 1.5f * cubeCoord.R));
 }