[Bf-blender-cvs] [931f876] blender-v2.74-release: BGE: Fix for T43994 Steering actuator bug with Navmesh

Jorge Bernal noreply at git.blender.org
Tue Mar 17 11:50:13 CET 2015


Commit: 931f876dddb6b284f3993567b05478e86df64b26
Author: Jorge Bernal
Date:   Sun Mar 15 11:38:04 2015 +0100
Branches: blender-v2.74-release
https://developer.blender.org/rB931f876dddb6b284f3993567b05478e86df64b26

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