VE Lua Documentation

Press F to search!

getCenterPosition

Definition


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

Callers

@/lua/vehicle/scriptai.lua
local function getCenterPositionRelative()
  local vehCenterPosRel = obj:getCenterPosition() - obj:getPosition()
  -- vehicle center position relative to the refNode position in the vehicle reference frame [left, back, up]