2

I'm making (another) plane game but the propeller, which is parented to the plane, keeps moving weirdly.
Here is an image of the whole plane, before I go into the game: 3dview

Then, when I go into the game, it looks like this:
game1

Which is OK, so far. But now, when I move the mouse to rotate the plane, the propeller detaches from the plane:
game3 game2

Is there a way to keep the propeller attached in the same position on the plane?


If it helps, here is the blend file.

David
  • 49,291
  • 38
  • 159
  • 317
Jacob_
  • 612
  • 7
  • 18

2 Answers2

3

This was a simple case of unapplied scale and rotation. The odd thing is blender handles parents with different transforms just fine, but the game engine does not.
As a general rule everything in the BGE should have a scale of one, and no rotation.

All I did is apply the scale and rotation on both the plane and the propeller, then the normal object parent worked as expected in the BGE.

Here is your fixed blend with parent working, plus you had the normals on your plane reversed.

If you haven't seen my explanation on the parenting settings, go read it here.

David
  • 49,291
  • 38
  • 159
  • 317
1

Select two objects, press Ctrl + A and choose Rotation & Scale to apply it to object data.

Mr Zak
  • 10,848
  • 4
  • 28
  • 77