Пример #1
0
 public void SetBlockAt(int row, int col, int stack, Block b)
 {
     blocks[(int)MathHelper.Clamp(row, 0, width-1), (int)MathHelper.Clamp(col, 0, height-1), (int)MathHelper.Clamp(stack, 0, depth-1)] = b;
 }
Пример #2
0
 public static Matrix GetInverseRotationMatrix(Block b)
 {
     return inverseRotations[b.RotationAxis, b.Rotation];
 }
Пример #3
0
 public static Matrix GetRotationMatrix(Block b)
 {
     return rotations[b.RotationAxis, b.Rotation];
 }
Пример #4
0
 public static RigidBody3D GetBlockBody(Block b)
 {
     return blockBodies[(int)b.Type];
 }