2
$\begingroup$

I have a airplane model and it's controlled by moving the mouse. At the moment, when it turns it simple turns - that's it. What I want is for it to turn like a real plane - so rotating left/right when it turns left/right. How could I achieve this?

Images: my logic

As you can see the movement is simple and the turning is with the mouse - so how can I make it more like this: enter image description here

$\endgroup$
2
  • $\begingroup$ I'm not sure if I understand your problem correctly, but why not to use multiple axes for rotation? You didn't give us specifics on how you do the rotation, but if you're using simple motion actuator, you could just set the rotation values on another axis. Tho I think you should give us some more information on your current logic setup and on what exactly would you like to achive if this answer is not sufficient. $\endgroup$ Jun 22 '15 at 9:59
  • $\begingroup$ @Krzysztof Kansy ok, I've added a picture of my logic editor and what I want to happen when turning $\endgroup$
    – Jacob_
    Jun 22 '15 at 15:58
3
$\begingroup$

You are very close in your setup. you only need one more mouse look actuator.

The reason why you need another actuator is because you currently have nothing to make the airship rotate along the Y. Adding another mouse look actuator can fix that.

I have also changed the settings slightly from what you had, because I think it behaves better with these values.

enter image description here

The first mouse look actuator does the roll.

enter image description here

The second mouse look actuator does the pitch and yaw.

enter image description here

With both of them together, it behaves just like a flying fortress of total monkey awesomeness

enter image description here

With the actual mesh from the flying fortress only with BGE materials

enter image description here

$\endgroup$
3
  • $\begingroup$ I tried this, but it seem to stay rotated a certain way until I move far in the other direction @X-27 $\endgroup$
    – Jacob_
    Jun 22 '15 at 16:35
  • $\begingroup$ technically a real plane would stay banking until it's flight controls changed and it began flying differently. $\endgroup$ Jun 22 '15 at 17:01
  • $\begingroup$ but my game doesn't have realistic controls $\endgroup$
    – Jacob_
    Jun 22 '15 at 17:13

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.