beamIsBroken
Definition
-- @/=[C]:-1
function beamIsBroken(...)
Callers
@/lua/vehicle/bdebugImpl.lua
local beamBroken = obj:beamIsBroken(beam.cid)
if partsSelected[beam.partPath or v.config.partsTree.partPath] then
if beam.beamType == BEAM_SUPPORT and not obj:beamIsBroken(beam.cid) then
obj.debugDrawProxy:drawBeam3d(beam.cid, beamScale, color(r, g, b, a * alpha))
if partsSelected[beam.partPath or v.config.partsTree.partPath] then
if not obj:beamIsBroken(beam.cid) then
local absDeform = abs(deform)
for k, beam in ipairs(beams) do
if obj:beamIsBroken(beam.cid) then
brokenLinks[i] = true
local beam = v.data.beams[id]
if not beamsBroken[id] and obj:beamIsBroken(id) then
log("I", "bdebug.beamBroken", string.format("beam %d broke: %s [%d] -> %s [%d]", id, (v.data.nodes[beam.id1].name or "unnamed"), beam.id1, (v.data.nodes[beam.id2].name or "unnamed"), beam.id2))
@/lua/vehicle/beamstate.lua
obj:getBeamRestLength(beam.cid),
obj:beamIsBroken(beam.cid),
obj:getBeamDeformation(beam.cid)
@/lua/vehicle/fire.lua
if currentNode.containerBeam then
local containerBeamBroken = obj:beamIsBroken(currentNode.containerBeam)
if not currentNode.containerBeamBroken and containerBeamBroken then