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 ); }
/// <summary> /// Collision Test /// </summary> /// <param name="box"></param> /// <returns></returns> public bool IsCollid(Physics.BoundingBox box) { return(box.Boundingbox.Intersects(this._boundingbox)); }