private void Awake() { _cubicGrid = new SharedGraph(); _cubicGrid.Initialize(Graph.Factory.CreateCubicGrid(CountX, CountY, CountZ)); _cubicGrid.TensegrityObjects.AddRange(CreatTensegrityObjects()); transform.position = new Vector3(-CountX * 0.5f, -CountY * 0.5f, -CountZ * 0.5f); }
/// <summary> /// /// </summary> private void Awake() { _sharedGraph.Initialize(Graph.Factory.CreateTruncatedOctahedronGrid(_countX, _countY, _countZ)); _sharedGraph.VertexObjects.AddRange(CreateVertexObjects()); // center on world origin transform.position = new Vector3(-_countX * 0.5f, -_countY * 0.5f, -_countZ * 0.5f); }
/// <summary> /// /// </summary> private void Awake() { _grid.Initialize(Graph.Factory.CreateTruncatedOctahedronGrid(_countX, _countY, _countZ)); _grid.VertexObjects.AddRange(CreateVertexObjects()); }