Ejemplo n.º 1
0
 // Rect 2
 public BoxShape(Vector2 halfLengths)
 {
     m_halfLengths = halfLengths;
     m_AABB        = new AABB(new Vector2(-halfLengths.X, -halfLengths.Y), new Vector2(halfLengths.X, halfLengths.Y));
 }
Ejemplo n.º 2
0
 // Rect
 public BoxShape(float w, float l)
 {
     m_halfLengths = new Vector2(w, l);
     m_AABB        = new AABB(new Vector2(-w, -l), new Vector2(w, l));
 }