You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---Reference to information about state of associated car. To access details at physics rate, use `ac.getCarPhysicsRate()`.
---@type ac.StateCar
car = nil
---Reference to information about state of simulation.
---@type ac.StateSim
sim = nil
function __script.__init__()
car = ac.getCar(__carindex__ - 1)
sim = ac.getSim()
end
-- script format:
---Note: joypad assist script runs from physics thread, so update rate is much higher. Please keep it in mind and keep
---code as fast as possible.
---@class ScriptData
---@field update fun(ffbValue: number, ffbDamper: number, steerInput: number, steerInputSpeed: number, dt: number): number, number @Called each physics frame. Takes original FFB force and damper as `ffbValue` and `ffbDamper`, expected to return new FFB force and damper values. Param `dt` is time since the last call of `.update()` in seconds, usually around 0.003.