calcBeamStats
Definition
-- @/=[C]:-1
function calcBeamStats(...)
Callers
@/lua/vehicle/controller/esc.lua
calculateAxleDistances()
local statsObj = obj:calcBeamStats()
mass = statsObj.total_weight --simply the mass of the car
@/lua/vehicle/extensions/vehiclePerformanceData.lua
local function getWeight()
local stats = obj:calcBeamStats()
return stats.total_weight
@/lua/vehicle/guistreams.lua
streamsHandlers.stats = function()
local stats = obj:calcBeamStats()
stats.tri_count = obj:getTriangleCount()
@/lua/vehicle/extensions/dynamicVehicleData.lua
local function getVehiclePerformanceData()
local stats = obj:calcBeamStats()
local weight = ceil(stats.total_weight / weightRoundValue) * weightRoundValue
wait(5)
local stats = obj:calcBeamStats()
local startingBrokenBeams = stats.beams_broken
distance = (endPosition - startingPosition):length()
stats = obj:calcBeamStats()
if not firstBeamBreakPosition and stats.beams_broken > startingBrokenBeams then