1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-20 04:09:16 +00:00

Fix plAvatar.

This commit is contained in:
Darryl Pogue
2012-01-29 01:46:06 -08:00
parent b1fb2e6dd0
commit 745378f9be
14 changed files with 28 additions and 25 deletions

View File

@ -314,7 +314,8 @@ void plAvTaskSeek::LeaveAge(plArmatureMod *avatar)
hsBool plAvTaskSeek::IAnalyze(plArmatureMod *avatar)
{
avatar->GetPositionAndRotationSim(&fPosition, &fRotation);
fGoalVec.Set(&(hsScalarTriple)(fSeekPos - fPosition));
hsScalarTriple tmp(fSeekPos - fPosition);
fGoalVec.Set(&tmp);
hsVector3 normalizedGoalVec(fGoalVec);
normalizedGoalVec.Normalize();