Beispiel #1
0
        public void AddCube(List <TextureTile> textureSet, Vector3 position, bool addToBuffer = true)
        {
            var cube    = new Cube(textureSet);
            var oVector = _dimension.AllocateNode(position, cube);

            //if (addToBuffer)
            ProcessBuffer((buffer) => cube.AddToBuffer(buffer, _dimension.ToWorldVector(oVector)));
        }
Beispiel #2
0
        protected override void ShowPointingLocation(Vector3 newPointingLocation)
        {
            base.ShowPointingLocation(newPointingLocation);
            PointCube = new Cube(_cube_rock);
            var oVector = new OctagonalVector(newPointingLocation);

            //PointCube.AddToBuffer(Buffers.GetBuffer(), oVector);
            ProcessBuffer((buffer) => PointCube.AddToBuffer(buffer, oVector));
        }