Beispiel #1
0
        public override void Fall(Bomb pBomb)
        {
            Debug.Assert(pBomb != null);
            float targetY = this.oldY - 1.0f * pBomb.GetBoundingBoxHeight();

            if (pBomb.y < targetY)
            {
                pBomb.MultiplyScale(-1.0f, 1.0f);
                this.oldY = targetY;
            }
        }
Beispiel #2
0
        public override void Fall(Bomb pBomb)
        {
            Debug.Assert(pBomb != null);

            float targetY = oldPosY - 1.0f * pBomb.GetBoundingBoxHeight();

            if (pBomb.GetY() < targetY)
            {
                pBomb.MultiplyScale(1.0f, -1.0f);
                oldPosY = targetY;
            }
        }