/// <summary> /// NOTE doesnt take into account scale yet /// </summary> /// <returns></returns> public AeAABB GetBoundingBox() { AeAABB boundingBox = new AeAABB(); boundingBox.SetPosition((int)Transform.X, (int)Transform.Y); boundingBox.SetSize(Engine.Graphics.GraphicsSettings.GameResolutionWidth, Engine.Graphics.GraphicsSettings.GameResolutionHeight); return(boundingBox); }
public bool Overlaps(AeAABB otherHull) { if (!Collidable || !otherHull.Collidable) { return(false); } if (this._rect.Intersects(otherHull._rect)) { return(true); } return(false); }
public void SetHull(AeAABB hull) { _rect = hull._rect; }