Beispiel #1
0
        /// <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);
        }
Beispiel #2
0
 public bool Overlaps(AeAABB otherHull)
 {
     if (!Collidable || !otherHull.Collidable)
     {
         return(false);
     }
     if (this._rect.Intersects(otherHull._rect))
     {
         return(true);
     }
     return(false);
 }
Beispiel #3
0
 public void SetHull(AeAABB hull)
 {
     _rect = hull._rect;
 }