FGear Vehicle Physics (v1.4)

there are 2 ways to inject input and both works.

1-Inject inputs to standard input, this is the one used in Mobile sample:

  • Disable input reading : StandardInput.SetReadInputs(false)
  • Provide inputs : StandardInput.SetInputs

2-Inject inputs directly to vehicle components, this is used in auto drive component:

  • Engine.SetThrottle
  • Transmission.SetThrottleState (1 for forward axis, -1 for backward axis, else 0)
  • Vehicle.SetBraking
  • Vehicle.SetSteering

the first approach has the advantage of benefiting from the filters/assists of the standard input component like dead zones/steering sensitivity curve/steering assist etc.

if it doesn’t work you must be doing sth. wrong, double check everything, we’ve done this multiple times before and there are no known issues.

1 Like