Beispiel #1
0
        public CollideInfo GetCollideInfo(IReactiveDrawableCollideable other)
        {
            Rectangle otherPos = other.Bounds;

            return(new CollideInfo(Orientation.Horizontal, Math.Max(0, (otherPos.X + otherPos.Width / 2.0 - this.XPos) / this.Width)));
        }
 public CollideInfo GetCollideInfo(IReactiveDrawableCollideable other)
 {
     return(this.collideInfo);
 }