Dear Developer. Through testing, it was revealed that the set of keys and the control parameters that you offer are a little inconvenient.
Here is my version of your code changes for comfortable drone control.
The"hang" button is also added to the configuration.
Here is a code snippet that should be changed.
Control:
w\s\a\d-old (changed increment and converted to floating point)
jump - climb
duck- decrease height
use-exit control
reload - hold height
Code:
float forward = (inputState.IsDown(BUTTON.FORWARD) ? 0.3f : 0) + (inputState.IsDown(BUTTON.BACKWARD) ? -0.3f : 0);
float sideways = (inputState.IsDown(BUTTON.RIGHT) ? 0.3f : 0) + (inputState.IsDown(BUTTON.LEFT) ? -0.3f : 0);
_currentInput.movement = new Vector3(sideways, 0f, forward).normalized;
_currentInput.throttle = ((inputState.IsDown(BUTTON.JUMP) ? 0.4f : 0) + (inputState.IsDown(BUTTON.DUCK) ? -0.4f : 0) + (inputState.IsDown(BUTTON.RELOAD) ? 0.005f : 0));
With these parameters, the control is much more pleasant.
thank you for work! Great!!!