diff options
Diffstat (limited to 'source/gameengine/Ketsji/KX_TrackToActuator.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_TrackToActuator.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/gameengine/Ketsji/KX_TrackToActuator.cpp b/source/gameengine/Ketsji/KX_TrackToActuator.cpp index a08e57c8d76..d1e0a74c8be 100644 --- a/source/gameengine/Ketsji/KX_TrackToActuator.cpp +++ b/source/gameengine/Ketsji/KX_TrackToActuator.cpp @@ -153,14 +153,14 @@ void compatible_eulFast(float *eul, float *oldrot) dy= eul[1] - oldrot[1]; dz= eul[2] - oldrot[2]; - if( fabs(dx) > MT_PI) { - if(dx > 0.0) eul[0] -= MT_2_PI; else eul[0]+= MT_2_PI; + if ( fabs(dx) > MT_PI) { + if (dx > 0.0) eul[0] -= MT_2_PI; else eul[0]+= MT_2_PI; } - if( fabs(dy) > MT_PI) { - if(dy > 0.0) eul[1] -= MT_2_PI; else eul[1]+= MT_2_PI; + if ( fabs(dy) > MT_PI) { + if (dy > 0.0) eul[1] -= MT_2_PI; else eul[1]+= MT_2_PI; } - if( fabs(dz) > MT_PI ) { - if(dz > 0.0) eul[2] -= MT_2_PI; else eul[2]+= MT_2_PI; + if ( fabs(dz) > MT_PI ) { + if (dz > 0.0) eul[2] -= MT_2_PI; else eul[2]+= MT_2_PI; } } @@ -391,7 +391,7 @@ bool KX_TrackToActuator::Update(double curtime, bool frame) mat= matrix3x3_interpol(oldmat, mat, m_time); - if(m_parentobj){ // check if the model is parented and calculate the child transform + if (m_parentobj){ // check if the model is parented and calculate the child transform MT_Point3 localpos; localpos = curobj->GetSGNode()->GetLocalPosition(); |