VE Lua Documentation

Press F to search!

getDistanceFromTerrainPoint

Definition


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

Callers

@/lua/vehicle/bdebugImpl.lua
    if playerInfo.firstPlayerSeated then
      obj.debugDrawProxy:drawText2D(vec3(viewportSizeX - 450 - 40, 100, 0), color(0, 0, 0, 255), "COG distance above ground: " .. string.format("%0.3f m", obj:getDistanceFromTerrainPoint(p)))
    end