// Cube contructor public Cube(GameObject parent, PlanetChunk owner, int currentX, int currentY, int currentZ, Material material, int terrainType, Vector3 cubePosition, string chunkName) { cubeLocation = cubePosition; this.parent = parent; this.owner = owner; cubePhysicalState = CubePhysicalState.SOLID; // default state cube = new GameObject(chunkName + "_" + "Cube_" + Universe.BuildPlanetChunkName(cubeLocation)); this.currentX = currentX; this.currentY = currentY; this.currentZ = currentZ; }
public void SetPhysicalState(CubePhysicalState physicalState) { cubePhysicalState = physicalState; }