diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2008-05-02 21:22:28 +0400 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2008-05-02 21:22:28 +0400 |
commit | e7a106625c5c7d7d51ae9349055ca656d48c6f54 (patch) | |
tree | d652ad5ac74afcfcd502de89e373bbfb71719f8c /source/gameengine | |
parent | f0a41d9d976f84db5c2c7cd6f2b38f7ce09642bd (diff) |
BGE bug fix: set parent actuator change the orientation of object
Diffstat (limited to 'source/gameengine')
-rw-r--r-- | source/gameengine/Ketsji/KX_GameObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_GameObject.cpp b/source/gameengine/Ketsji/KX_GameObject.cpp index 301a1413bcd..4c6ba448ebf 100644 --- a/source/gameengine/Ketsji/KX_GameObject.cpp +++ b/source/gameengine/Ketsji/KX_GameObject.cpp @@ -229,7 +229,7 @@ void KX_GameObject::SetParent(KX_Scene *scene, KX_GameObject* obj) NodeSetLocalScale(scale1); NodeSetLocalPosition(MT_Point3(newpos[0],newpos[1],newpos[2])); - NodeSetLocalOrientation(NodeGetWorldOrientation()*invori); + NodeSetLocalOrientation(invori*NodeGetWorldOrientation()); NodeUpdateGS(0.f,true); // object will now be a child, it must be removed from the parent list CListValue* rootlist = scene->GetRootParentList(); |