Example #1
0
 public void Update(GameTime gameTime, Transform3D transform)
 {
     boundingBox.Max = originalBoundingBox.Max + transform.Translation;
     boundingBox.Min = originalBoundingBox.Min + transform.Translation;
 }
 public BoxCollisionPrimitive(Transform3D transform3D)
 {
     this.transform3D    = transform3D;
     boundingBox         = new BoundingBox(transform3D.Scale / 2 * min, transform3D.Scale / 2 * max);
     originalBoundingBox = boundingBox;
 }