VE Lua Documentation

Press F to search!

getBeamCurLengthRefRatio

Definition


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

Callers

@/lua/vehicle/controller/hydraulicSuspension.lua
    if beam.bleedCoef > 0 then
      local currentLength = math.floor(obj:getBeamCurLengthRefRatio(beam.cid) * 100) / 100
      if currentLength < lastFrameBeamLengths[beam.cid] then
    elseif beam.bleedCoef > 0 then
      beam.currentPosition = obj:getBeamCurLengthRefRatio(beam.cid)
      beam.targetPosition = beam.currentPosition