VE Lua Documentation

Press F to search!

getBeamRefLength

Definition


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

Callers

@/lua/vehicle/bdebugImpl.lua
        local beam = v.data.beams[i]
        local beamText = string.format("%d: %.3f m", beam.cid, obj:getBeamRefLength(beam.cid))
        text = k ~= tblSize and text .. beamText .. ', ' or text .. beamText
          local currLen = obj:getBeamLength(beam.cid)
          local restLen = obj:getBeamRefLength(beam.cid)
          local restLenHalf = restLen * 0.5
          local currLen = obj:getBeamLength(beam.cid)
          local restLen = obj:getBeamRefLength(beam.cid)
          local restLenHalf = restLen * 0.5
@/lua/vehicle/hydros.lua
      h.bcid = h.beamCID
      h.invFFBHydroRefL = 1 / obj:getBeamRefLength(h.bcid)
      h.center = 1