VE Lua Documentation

Press F to search!

velocityUpdate

Definition


-- @/lua/vehicle/powertrain/shaft.lua:12

local function updateVelocity(device, dt)
  device.inputAV = device[device.outputAVName] * device.gearRatio
  device.parent[device.parentOutputAVName] = device.inputAV
end

Callers

@/lua/vehicle/powertrain.lua
    --profilerPushEvent(orderedDevices[i].name .. ":velocityUpdate")
    orderedDevices[i]:velocityUpdate(dt)
    --profilerPopEvent(orderedDevices[i].name .. ":velocityUpdate")