本文整理汇总了C#中Cube.rotateRightVert方法的典型用法代码示例。如果您正苦于以下问题:C# Cube.rotateRightVert方法的具体用法?C# Cube.rotateRightVert怎么用?C# Cube.rotateRightVert使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cube
的用法示例。
在下文中一共展示了Cube.rotateRightVert方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TriangulateCube
void TriangulateCube(Cube square)
{
switch (square.configuration)
{
case 0:
break;
case 255:
break;
// 1 points:
case 1:
Instantiate (oneMesh, square.topLeftFront.position, Quaternion.Euler(new Vector3(0, 270, 180)));
break;
case 2:
Instantiate (oneMesh, square.topLeftBack.position, Quaternion.Euler(new Vector3(0, 0, 0)));
break;
case 4:
Instantiate (oneMesh, square.topRightFront.position, Quaternion.Euler(new Vector3(0, 90, 270)));
break;
case 8:
Instantiate (oneMesh, square.topRightBack.position, Quaternion.Euler(new Vector3(0, 90, 0)));
break;
case 16:
Instantiate (oneMesh, square.bottomRightFront.position, Quaternion.Euler(new Vector3(270, 90, 90)));
break;
case 32:
Instantiate (oneMesh, square.bottomRightBack.position, Quaternion.Euler(new Vector3(0, 180, 0)));
break;
case 64:
Instantiate (oneMesh, square.bottomLeftFront.position, Quaternion.Euler(new Vector3(270, 0, 270)));
break;
case 128:
Instantiate (oneMesh, square.bottomLeftBack.position, Quaternion.Euler(new Vector3(0, 270, 0)));
break;
// 2 points
case 3:
Instantiate (threeMesh, square.topLeftFront.position, Quaternion.Euler(new Vector3(90, 270, 0)));
break;
case 5:
Instantiate (threeMesh, square.topLeftFront.position, Quaternion.Euler(new Vector3(0, 90, 90)));
break;
case 10:
Instantiate (threeMesh, square.topRightBack.position, Quaternion.Euler(new Vector3(0, 270, 270)));
break;
case 12:
Instantiate (threeMesh, square.topRightBack.position, Quaternion.Euler(new Vector3(270, 0, 270)));
break;
case 20:
Instantiate (threeMesh, square.bottomRightFront.position, Quaternion.Euler(new Vector3(0, 0, 0)));
break;
case 40:
Instantiate (threeMesh, square.topRightBack.position, Quaternion.Euler(new Vector3(180, 0, 0)));
break;
case 48:
Instantiate (threeMesh, square.bottomRightFront.position, Quaternion.Euler(new Vector3(90, 90, 0)));
break;
case 65:
Instantiate (threeMesh, square.topLeftFront.position, Quaternion.Euler(new Vector3(0, 180, 0)));
break;
case 80:
Instantiate (threeMesh, square.bottomRightFront.position, Quaternion.Euler(new Vector3(0, 270, 90)));
break;
case 130:
Instantiate (threeMesh, square.bottomLeftBack.position, Quaternion.Euler(new Vector3(0, 0, 180)));
break;
case 160:
Instantiate (threeMesh, square.bottomLeftBack.position, Quaternion.Euler(new Vector3(0, 90, 270)));
break;
case 192:
Instantiate (threeMesh, square.bottomLeftBack.position, Quaternion.Euler(new Vector3(270, 90, 0)));
break;
case 9:
Instantiate (nineMesh, square.topLeftFront.position, Quaternion.Euler(new Vector3(45, 180, 90)));
break;
case 6:
square.rotateRightHoriz();
MeshFromPoints(square.topLeftCenter, square.centerTopBack, square.topRightCenter, square.centerTopFront);
MeshFromPoints(square.centerLeftFront, square.centerTopFront, square.topRightCenter, square.centerRightBack, square.centerTopBack, square.topLeftCenter);
break;
case 17:
square.rotateRightHoriz();
square.rotateRightVert();
MeshFromPoints(square.topLeftCenter, square.centerTopBack, square.topRightCenter, square.centerTopFront);
MeshFromPoints(square.centerLeftFront, square.centerTopFront, square.topRightCenter, square.centerRightBack, square.centerTopBack, square.topLeftCenter);
break;
case 24:
square.rotateRightHoriz();
square.rotateRightVert();
square.rotateRightHoriz();
square.rotateRightVert();
MeshFromPoints(square.topLeftCenter, square.centerTopBack, square.topRightCenter, square.centerTopFront);
MeshFromPoints(square.centerLeftFront, square.centerTopFront, square.topRightCenter, square.centerRightBack, square.centerTopBack, square.topLeftCenter);
break;
case 34:
square.rotateRightHoriz();
square.rotateRightHoriz();
square.rotateRightVert();
square.rotateRightHoriz();
//.........这里部分代码省略.........