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:

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.

  • $\begingroup$ use the parent logic brick with always sensor $\endgroup$ – Chebhou Jul 19 '15 at 18:49
  • $\begingroup$ @Chebhou This doesn't seem to work - can you explain it further? $\endgroup$ – Jacob_ Jul 19 '15 at 19:08

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.

| improve this answer | |
  • $\begingroup$ How do you "apply the scale and rotation"? @David $\endgroup$ – Jacob_ Jul 20 '15 at 17:58
  • $\begingroup$ @Jacob_ blender.stackexchange.com/a/6445/2217 $\endgroup$ – David Jul 20 '15 at 18:10
  • $\begingroup$ actually never mind, I managed :) $\endgroup$ – Jacob_ Jul 20 '15 at 18:16

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

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.