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