Merge pull request #94 from leif81/resetmovetarget
reset agent desired velocity in resetMoveTarget
This commit is contained in:
commit
cadc3b0b14
@ -653,6 +653,7 @@ bool dtCrowd::resetMoveTarget(const int idx)
|
||||
// Initialize request.
|
||||
ag->targetRef = 0;
|
||||
dtVset(ag->targetPos, 0,0,0);
|
||||
dtVset(ag->dvel, 0,0,0);
|
||||
ag->targetPathqRef = DT_PATHQ_INVALID;
|
||||
ag->targetReplan = false;
|
||||
ag->targetState = DT_CROWDAGENT_TARGET_NONE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user