public Vector2 Update(Vehicle vehicle, GameTime gameTime)
        {
            // Todo:
            // Create a Vector2 instance that represents a steering vector in a direction away from the target. You can get the coordinates of
            //  the target from the _target.Position property. Return the new Vector2 instance.

            // Hint:
            // To calculate the desired velocity vector, create a vector pointing from the vehicle position to the target, normalize it, and
            //  multiply by the vehicle's max speed.

            return Vector2.Zero;
        }
示例#2
0
 public Entity(Game game, SpriteBatch spriteBatch, Vehicle vehicle)
     : base(game)
 {
     _spriteBatch = spriteBatch;
     _vehicle = vehicle;
 }