getBeamStressDamp
Definition
-- @/=[C]:-1
function getBeamStressDamp(...)
Callers
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veJBeamPicker.lua
{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 = {}},
{name = "Stress", enabled = im.BoolPtr(false), units = "N", color = rainbowColor(8, 5, 1), data = function(id) getVELuaBeamData(id, "stress", "(select(1,obj:getBeamStressDamp(" .. id .. ")))") return M.beamDataFromVELua[id].stress end, plotData = {}},
{name = "Damping", enabled = im.BoolPtr(false), units = "N", color = rainbowColor(8, 6, 1), data = function(id) getVELuaBeamData(id, "damping", "(select(2,obj:getBeamStressDamp(" .. id .. ")))") return M.beamDataFromVELua[id].damping end, plotData = {}},
{name = "Stress", enabled = im.BoolPtr(false), units = "N", color = rainbowColor(8, 5, 1), data = function(id) getVELuaBeamData(id, "stress", "(select(1,obj:getBeamStressDamp(" .. id .. ")))") return M.beamDataFromVELua[id].stress end, plotData = {}},
{name = "Damping", enabled = im.BoolPtr(false), units = "N", color = rainbowColor(8, 6, 1), data = function(id) getVELuaBeamData(id, "damping", "(select(2,obj:getBeamStressDamp(" .. id .. ")))") return M.beamDataFromVELua[id].damping end, plotData = {}},
}
@/lua/vehicle/bdebugImpl.lua
if partsSelected[beam.partPath or v.config.partsTree.partPath] then
local stress = obj:getBeamStressDamp(beam.cid)
local absStress = abs(stress)