This is actually something that I have no idea at all what it’s causing it. It seems that I can’t even control it either.
Here’s my setup:
An empty parented to an object. The parent object has a script, that doesn’t involve the movement of the empty.
Now you’re asking… What could be wrong with that setup? It’s so simple, and it basically doesn’t do anything.
I go into the game engine, the empty is in it’s proper position. The place where I specifically put it. The problem occurs when I rotate my parent object. The rotation works fine in the 3D view, both the object and the parented object rotate but when I go into the game engine to test out the game now, the empty moves. It moves noticeably, too. To test it, I got a cube and parented to the empty. The cube moved, so the empty moved.
Why did it do this? I don’t know.
My setup is so simple that I don’t understand why it’s happening. When I parent the empty to the original orientation of the parent object, it works fine and the empty doesn’t move, when I rotate the parent object, the empty moves for some reason. If a unparent the empty, rotate both objects manually, then parent them together again, it works. The empty doesn’t move…
This tells me that it’s a parenting problem or the parent object has a problem? I not even sure of that, because the why does it move in the game engine and not the 3D view?