private CylinderPoint GetPoint(int section, int point) { CylinderPoint pt = new CylinderPoint(); float angle = Mathf.Deg2Rad * ((360f / points) * point); pt.position = new Vector3( Mathf.Cos(angle) * radius, (height / sections) * section, Mathf.Sin(angle) * radius ); pt.scale = farScale; pt.obstacleCount = scalers.Length; return(pt); }
public void SetCylinderPoint(int xIndex, int yIndex, Vector2 xy, Vector2 uv) { points[yIndex * (gridWidth + 1) + xIndex] = new CylinderPoint(xy, uv); }
public void SetCylinderPoint(int xIndex, int yIndex, Vector2 xy, Vector2 uv) { points[yIndex * (gridWidth + 1) + xIndex] = new CylinderPoint(xy, uv); }