VE Lua Documentation

Press F to search!

getPropulsionDeviceForWheel

Definition


-- @/lua/vehicle/powertrain.lua:934

local function getPropulsionDeviceForWheel(wheelName)
  return wheelPropulsionDevices[wheelName]
end

Callers

@/lua/vehicle/powertrain.lua
  for _, wheel in pairs(wheels.wheels) do
    local propulsionDevice = powertrain.getPropulsionDeviceForWheel(wheel.name)
    if propulsionDevice then
  for _, wheel in pairs(wheels.wheels) do
    local propulsionDevice = powertrain.getPropulsionDeviceForWheel(wheel.name)
    if propulsionDevice then
@/lua/vehicle/controller/drivingDynamics/sensors/virtualSensors.lua
    end
    local wheelPropulsionDevice = powertrain.getPropulsionDeviceForWheel(wd.name)
    local propulsionTorque = wheelPropulsionDevice and wheelPropulsionDevice.outputTorque1 or 0