0 votes

I would like to make a simple game in which you control a plane with a touch joystick.

I get the input in a normalized Vector2 (for example (-0.5, 1))

Now I would like to steer the plane in the direction of the input but I want to set a maximum angle it can turn.

Also, if the plane is going straight forward (0,1) and I "pull" the joystick all the way down (0,-1), I want the plane to make a big turn and not just change the direction instantly.

Any ideas?

Godot version 3.1.1.
in Engine by (20 points)

1 Answer

0 votes

Have you tried clamp?

by (755 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.