Example #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));
 }
Example #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));
 }