VE Lua Documentation

Press F to search!

getBeamVelocity

Definition


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

Callers

@/lua/vehicle/sounds.lua
  for bi, snd in ipairs(beamSounds) do
    local beamVel = obj:getBeamVelocity(snd.beam)
@/lua/vehicle/controller/pneumatics.lua

      avgVelocity = avgVelocity + abs(obj:getBeamVelocity(v.cid))
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veJBeamPicker.lua
  {name = "Length",           enabled = im.BoolPtr(true),     units = "m",      color = rainbowColor(8, 2, 1),   data = function(id) return getBeamLength(id) end, plotData = {}},
  {name = "Speed",            enabled = im.BoolPtr(false),    units = "m/s",    color = rainbowColor(8, 3, 1),   data = function(id) getVELuaBeamData(id, "speed", "obj:getBeamVelocity(" .. id .. ")") return M.beamDataFromVELua[id].speed end, plotData = {}},
  {name = "Force",            enabled = im.BoolPtr(false),    units = "N",      color = rainbowColor(8, 4, 1),   data = function(id) getVELuaBeamData(id, "force", "obj:getBeamForce(" .. id .. ")") return M.beamDataFromVELua[id].force end, plotData = {}},