Esempio n. 1
0
        public override void Update(Microsoft.Xna.Framework.GameTime dt, Entity aiActor)
        {
            //Create an instance of move to point with the targets position as a parameter
            MoveToPointAI mtpAi = new MoveToPointAI(target.position, adjustLimit);
            //Update the move to point ai
            mtpAi.Update(dt, aiActor);

            this.lastDifference = mtpAi.lastDifference;
        }