//********************************************************************************************************************************************* // // Method Name: UpdateBall // // Description: // Update the ball X-Coordinate and Y-Coordinate based on the ball velocity vector. // // Arguments: // N/A // // Return: // N/A // //********************************************************************************************************************************************* public override void Update() { mHitBox.X += Vector.GetNormalizedComponentX(); mHitBox.Y += Vector.GetNormalizedComponentY(); mInnerHitDetection.X += Vector.GetNormalizedComponentX(); mInnerHitDetection.Y += Vector.GetNormalizedComponentY(); }
//********************************************************************************************************************************************* // // Method Name: Update // // Description: // Update the bullet to head towards the top of the screen. // // Arguments: // N/A // // Return: // N/A // //********************************************************************************************************************************************* public override void Update() { mHitBox.Y += Vector.GetNormalizedComponentY(); }