[Bf-blender-cvs] [dd3ade2] master: BGE: Fix for T43994 Steering actuator bug with Navmesh
Jorge Bernal
noreply at git.blender.org
Sun Mar 15 11:38:14 CET 2015
Commit: dd3ade250ded8c8bb86f68748b19cf5d4ab1b82a
Author: Jorge Bernal
Date: Sun Mar 15 11:38:04 2015 +0100
Branches: master
https://developer.blender.org/rBdd3ade250ded8c8bb86f68748b19cf5d4ab1b82a
BGE: Fix for T43994 Steering actuator bug with Navmesh
Now the facing option is taken into account as before
This is a regression and to be ported to the final release branch.
===================================================================
M source/gameengine/Ketsji/KX_SteeringActuator.cpp
===================================================================
diff --git a/source/gameengine/Ketsji/KX_SteeringActuator.cpp b/source/gameengine/Ketsji/KX_SteeringActuator.cpp
index 10d4273..f859b1c 100644
--- a/source/gameengine/Ketsji/KX_SteeringActuator.cpp
+++ b/source/gameengine/Ketsji/KX_SteeringActuator.cpp
@@ -281,7 +281,7 @@ bool KX_SteeringActuator::Update(double curtime, bool frame)
KX_RasterizerDrawDebugLine(mypos, mypos + newvel, MT_Vector3(0.0, 1.0, 0.0));
}
- HandleActorFace(newvel);
+ HandleActorFace(m_steerVec);
if (isdyna)
{
//TODO: Take into account angular velocity on turns
More information about the Bf-blender-cvs
mailing list