VE Lua Documentation

Press F to search!

getInitialHeight

Definition


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

Callers

@/lua/vehicle/scriptai.lua
  avgWheelNodePos:setAdd(pos)
  local vehHeight = obj:getInitialHeight()
  -- Raise the point by vehHeight (it might be below ground) and cast a ray to gauge distance to ground
@/lua/vehicle/controller/tech/cosimulationCoupling.lua
  -- Cache some properties known at init, in state.
  initLength, initWidth, initHeight = obj:getInitialLength(), obj:getInitialWidth(), obj:getInitialHeight()
@/lua/ge/extensions/editor/scriptAIEditor.lua
            if obj ~= nil then
              length, width, height = obj:getInitialLength(), obj:getInitialWidth(), obj:getInitialHeight()
            end