VE Lua Documentation

Press F to search!

getStaticFrictionCoef

Definition


-- @/=[C]:-1
function getStaticFrictionCoef(...)

Callers

@/lua/vehicle/input.lua
local function getBestTurnRadius(vel)
  local accel = obj:getStaticFrictionCoef() * getTotalDownforceFactor()
  local radius = square(vel) / accel
    --,{"assistedSteering", abs(st), 1, "x"}
    --,{"static", obj:getStaticFrictionCoef(), 2, "x"}
    --,{"downforce", getTotalDownforceFactor(), 12, "x"}
@/lua/vehicle/ai.lua
  ego.length = ego.length or obj:getInitialLength()
  ego.staticFrictionCoef = parameters.staticFrictionCoefMult * obj:getStaticFrictionCoef() -- depends on ground model, tire and tire load