GE Lua Documentation

Press F to search!

debugDrawTrajectory

Definition


-- @/lua/ge/map.lua:3226
local function debugDrawTrajectory(trajectory)
  if trajectory then
    drawTrajectory = trajectoryVisualDebug
    trajectoryToDraw = trajectory
  else
    drawTrajectory = nop
    trajectoryToDraw = nil
  end
end

Callers

@/lua/ge/extensions/gameplay/rally/geometry.lua
  local trajectory = map.optimizePath(path, settings) -- will run the optimization off-line
  --map.debugDrawTrajectory(trajectory)
  return trajectory