Power Steering

Summary

The powersteering controller is used to simulate the effects of powersteering on the forces at the steering wheel.

It only affects the strenght of force feedback.

The controller is set-up to allow for feedback which varies with speed,


File Info

Filename powerSteering.lua
Path /lua/vehicle/controller/powerSteering.lua
Type Auxiliary
Usage type Single

JBeam Properties

number
type
1
default
Steering assistance at high speeds.
Lower values mean less force being transmitted to the wheel. 1 means the steering is essentially unassisted, while 0 means no forces are transmitted back.
number
type
1
default
Steering assistance at low speeds.
Lower values mean less force being transmitted to the wheel. 1 means the steering is essentially unassisted, while 0 means no forces are transmitted back.
number
type
0
default
The vehicle speed (m/s) at which the strengthSlow value is used.
Under this speed, strengthSlow is used. Between this speed and speedFast, the controller will interpolate a value between strengthFast and strengthSlow.
number
type
0
default
The vehicle speed (m/s) at which the strengthFast value is used.
Under this speed, speedFast is used. Between this speed and speedSlow, the controller will interpolate a value between strengthFast and strengthSlow.
number
type
-0.2
default
Constant modifier on the level of assistance.

Negative values means that the steering will substract a certain amount of force transmitted after the strenghtFast/Slow calculations are completed.

The game will always cap at a minimum of 0.


Example Usage


"controller": [
    ["fileName"],
    ["powerSteering", {"strengthFast":1, "strengthSlow": 0.10, "speedSlow": 2, "speedFast": 20, "constantOffset":-0.05}],
],
Last modified: December 18, 2021

Any further questions?

Join our discord
Our documentation is currently incomplete and undergoing active development. If you have any questions or feedback, please visit this forum thread.