diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-17 18:01:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-17 18:03:10 +0300 |
commit | 4be752a93cf37700668c604296f37ea08248f13b (patch) | |
tree | 0f838c87eaa6bf289b76f232e6b1571a28a55cba /source/gameengine/Ketsji/KX_SG_NodeRelationships.cpp | |
parent | 5513da65b24a3ce77b1709acea841475115f3a7a (diff) |
Cleanup: trailing space in source/gameengine/
Diffstat (limited to 'source/gameengine/Ketsji/KX_SG_NodeRelationships.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_SG_NodeRelationships.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/source/gameengine/Ketsji/KX_SG_NodeRelationships.cpp b/source/gameengine/Ketsji/KX_SG_NodeRelationships.cpp index e80de76861e..ea1c755b88e 100644 --- a/source/gameengine/Ketsji/KX_SG_NodeRelationships.cpp +++ b/source/gameengine/Ketsji/KX_SG_NodeRelationships.cpp @@ -36,7 +36,7 @@ * Implementation of classes defined in KX_SG_NodeRelationships.h */ -/** +/** * first of all KX_NormalParentRelation */ @@ -100,7 +100,7 @@ KX_NormalParentRelation( // nothing to do } -/** +/** * Next KX_VertexParentRelation */ @@ -111,8 +111,8 @@ New( ) { return new KX_VertexParentRelation(); } - -/** + +/** * Method inherited from KX_ParentRelation */ @@ -130,18 +130,18 @@ UpdateChildCoordinates( return false; child->SetWorldScale(child->GetLocalScale()); - + if (parent) child->SetWorldPosition(child->GetLocalPosition()+parent->GetWorldPosition()); else child->SetWorldPosition(child->GetLocalPosition()); - + child->SetWorldOrientation(child->GetLocalOrientation()); child->ClearModified(); return true; //parent != NULL; } -/** +/** * Method inherited from KX_ParentRelation */ @@ -178,7 +178,7 @@ New( return new KX_SlowParentRelation(relaxation); } -/** +/** * Method inherited from KX_ParentRelation */ @@ -199,11 +199,11 @@ UpdateChildCoordinates( const MT_Matrix3x3 & child_rotation = child->GetLocalOrientation(); // the childs world locations which we will update. - + MT_Vector3 child_w_scale; MT_Point3 child_w_pos; MT_Matrix3x3 child_w_rotation; - + if (parent) { // This is a slow parent relation @@ -220,7 +220,7 @@ UpdateChildCoordinates( child_n_scale = p_world_scale * child_scale; child_n_rotation = p_world_rotation * child_rotation; - child_n_pos = p_world_pos + p_world_scale * + child_n_pos = p_world_pos + p_world_scale * (p_world_rotation * child_pos); @@ -232,7 +232,7 @@ UpdateChildCoordinates( child_w_pos = child->GetWorldPosition(); child_w_rotation = child->GetWorldOrientation(); - // now 'interpolate' the normal coordinates with the last + // now 'interpolate' the normal coordinates with the last // world coordinates to get the new world coordinates. MT_Scalar weight = MT_Scalar(1)/(m_relax + 1); @@ -248,7 +248,7 @@ UpdateChildCoordinates( child_w_rotation = child_n_rotation; m_initialized = true; } - + } else { child_w_scale = child_scale; @@ -262,11 +262,11 @@ UpdateChildCoordinates( child->ClearModified(); // this node must always be updated, so reschedule it for next time child->ActivateRecheduleUpdateCallback(); - + return true; //parent != NULL; } -/** +/** * Method inherited from KX_ParentRelation */ |