My Project
BlockDirection.h
1 #pragma once
2 #include "BlockCoordinate.h"
3 
4 namespace ParaEngine
5 {
10  {
11  public:
12  enum Side
13  {
14  left, right, front, back, top, bottom, none
15  };
17  ~BlockDirection();
18 
19  static Int32x3 GetOffsetBySide(Side side);
20  static Side GetBlockSide(int v);
21  static Side GetOpSide(Side side);
22  public:
23  static const int s_oppositeDirection[none+1];
24  };
25 }
different physics engine has different winding order.
Definition: EventBinding.h:32
helper functions for directions
Definition: BlockDirection.h:9
for block or chunk location that does not has boundary check.
Definition: BlockCoordinate.h:123