From 98ed707e6a0c60805705faf06b193a1d66d6d1b0 Mon Sep 17 00:00:00 2001 From: Samir Naik Date: Wed, 20 Oct 2004 00:26:32 +0000 Subject: [PATCH] *** empty log message *** --- direct/src/controls/BattleWalker.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/direct/src/controls/BattleWalker.py b/direct/src/controls/BattleWalker.py index e273785706..c2118c8b46 100755 --- a/direct/src/controls/BattleWalker.py +++ b/direct/src/controls/BattleWalker.py @@ -82,6 +82,10 @@ class BattleWalker(GravityWalker.GravityWalker): self.__oldDt = ClockObject.getGlobalClock().getDt() dt=self.__oldDt + # Before we do anything with position or orientation, make the avatar + # face it's target + self.avatarNodePath.headsUp(self.targetNp) + # Check to see if we're moving at all: self.moving = self.speed or self.slideSpeed or self.rotationSpeed or (self.priorParent!=Vec3.zero()) if self.moving: @@ -89,10 +93,6 @@ class BattleWalker(GravityWalker.GravityWalker): slideDistance = dt * self.slideSpeed rotation = dt * self.rotationSpeed - # Before we do anything with position or orientation, make the avatar - # face it's target - self.avatarNodePath.headsUp(self.targetNp) - # Take a step in the direction of our previous heading. self.vel=Vec3(Vec3.forward() * distance + Vec3.right() * slideDistance)