setMoveInput method

void setMoveInput(
  1. Vector2 move, {
  2. double elevate = 0.0,
  3. bool boost = false,
})

Sets movement intent from an input system, a gamepad, or touch controls.

move is -1..1 per axis with +X right and +Y forward, matching ThirdPersonControllerComponent.setMoveInput. elevate is -1..1 with +1 up and is ignored when moveVertical is false. boost applies boostMultiplier.

The intent holds until changed and adds to the built-in key handling. A partial push moves at partial speed; the combined direction is only shortened when it exceeds unit length.

Implementation

void setMoveInput(Vector2 move, {double elevate = 0.0, bool boost = false}) {
  _moveInput.setFrom(move);
  _elevateInput = elevate;
  _boostInput = boost;
}