Exemple #1
0
        protected Vector3 GetFaceRotation(MainCubeFace face)
        {
            switch (face)
            {
            case MainCubeFace.Up:
                return(Vector3.Zero);

            case MainCubeFace.Down:
                return(new Vector3(MathHelper.Pi, 0, 0));

            case MainCubeFace.Left:
                return(new Vector3(0, 0, MathHelper.PiOver2));

            case MainCubeFace.Right:
                return(new Vector3(0, 0, -MathHelper.PiOver2));

            case MainCubeFace.Front:
                return(new Vector3(-MathHelper.PiOver2, 0, 0));

            case MainCubeFace.Back:
                return(new Vector3(MathHelper.PiOver2, 0, 0));
            }
            return(Vector3.Zero);
        }
Exemple #2
0
 public Cube[] GetFaceCubes(MainCubeFace face)
 {
     return(Cubes.Where(c => c.Landed && !c.IsInFormation && c.Face == face).ToArray());
 }