Searched refs:targetDirn (Results 1 – 2 of 2) sorted by relevance
667 int NPCSetVelocity(STRATEGYBLOCK *sbPtr, VECTORCH* targetDirn, int in_speed) in NPCSetVelocity() argument673 LOCALASSERT(targetDirn); in NPCSetVelocity()687 targetDirn->vy = 0; in NPCSetVelocity()690 if((targetDirn->vx==0)&&(targetDirn->vz==0)) in NPCSetVelocity()710 dotProduct = DotProduct(&yDirection,targetDirn); in NPCSetVelocity()779 targetDirn->vy = 0; in NPCSetVelocity()782 if((targetDirn->vx==0)&&(targetDirn->vz==0)) in NPCSetVelocity()798 dotProduct = DotProduct(&yDirection,targetDirn); in NPCSetVelocity()800 targetV.vx = targetDirn->vx - MUL_FIXED(yDirection.vx,dotProduct); in NPCSetVelocity()801 targetV.vy = targetDirn->vy - MUL_FIXED(yDirection.vy,dotProduct); in NPCSetVelocity()[all …]
166 extern int NPCSetVelocity(STRATEGYBLOCK *sbPtr, VECTORCH* targetDirn, int in_speed);