draw trajectory script

This commit is contained in:
Mikulas Florek 2023-10-02 22:45:16 +02:00
parent 105f2325b6
commit 3a1706d77c
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
local points = {}
function update(time_delta)
if #points < 100 then
table.insert(points, this.position)
end
for i = 2, #points do
this.world.renderer:addDebugLine(points[i - 1], points[i], {1, 0, 0})
end
end