VE Lua Documentation

Press F to search!

getInitialWidth

Definition


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

Callers

@/lua/ge/extensions/editor/scriptAIEditor.lua
            if obj ~= nil then
              length, width, height = obj:getInitialLength(), obj:getInitialWidth(), obj:getInitialHeight()
            end
@/lua/vehicle/controller/tech/cosimulationCoupling.lua
  -- Cache some properties known at init, in state.
  initLength, initWidth, initHeight = obj:getInitialLength(), obj:getInitialWidth(), obj:getInitialHeight()
@/lua/vehicle/ai.lua
  ego.speed = ego.vel:length()
  ego.width = ego.width or obj:getInitialWidth()
  ego.length = ego.length or obj:getInitialLength()
      local speedProfile = table.new(0, scrCount)
      local radius = obj:getInitialWidth()