Using AI path finding for player
by Netizen · in Technical Issues · 05/18/2008 (12:18 pm) · 0 replies
Hi, I'm trying to use the same function the AIPlayer uses to move the player to specific targets. For instance I've moved all the the approprate variables from AIPlayer to its parent Player and copied AIPlayer::getAIMove() to a new function in the player object getPlayerMove(). This works fine, the problem I have is the movement is 'choppy' and unpleasant to watch.
I've made a few changes in an attempt to solve the problem but so far nothing has worked. I call my getPlayerMove() right after the call to getAIMove() in the processtick function in the player object.
I assume that the Move structure this function makes is not to blame and that there is something else I am missing, possibly in the process tick.
any help?
I've made a few changes in an attempt to solve the problem but so far nothing has worked. I call my getPlayerMove() right after the call to getAIMove() in the processtick function in the player object.
I assume that the Move structure this function makes is not to blame and that there is something else I am missing, possibly in the process tick.
any help?