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

@ -136,7 +136,8 @@ void plSwimCircularCurrentRegion::GetCurrent(plPhysicalControllerCore *physical,
}
hsPoint3 center, pos;
center.Set(&fCurrentSO->GetLocalToWorld().GetTranslate());
hsScalarTriple xlate = fCurrentSO->GetLocalToWorld().GetTranslate();
center.Set(&xlate);
plKey worldKey = physical->GetSubworld();
if (worldKey)
@ -254,7 +255,8 @@ void plSwimStraightCurrentRegion::GetCurrent(plPhysicalControllerCore *physical,
hsPoint3 center, pos;
hsVector3 current = fCurrentSO->GetLocalToWorld() * hsVector3(0.f, 1.f, 0.f);
center.Set(&fCurrentSO->GetLocalToWorld().GetTranslate());
hsScalarTriple xlate = fCurrentSO->GetLocalToWorld().GetTranslate();
center.Set(&xlate);
physical->GetPositionSim(pos);
plKey worldKey = physical->GetSubworld();