예제 #1
0
파일: Map.cs 프로젝트: bschwind/Sky-Slider
 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];
 }