public void Draw(Physics.BoundingBox box)
 {
     _textureRenderer.Draw(
         _dummyTexture,
         new Vector2(box.XMin + box.Width / 2.0f, box.YMin + box.Height / 2.0f),
         rotation: 0,
         textureScale: new Vector2(box.Width, box.Height) * Constants.PixelSize
         );
 }
Пример #2
0
 /// <summary>
 /// Collision Test
 /// </summary>
 /// <param name="box"></param>
 /// <returns></returns>
 public bool IsCollid(Physics.BoundingBox box)
 {
     return(box.Boundingbox.Intersects(this._boundingbox));
 }