draw trajectory script
This commit is contained in:
parent
105f2325b6
commit
3a1706d77c
|
@ -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
|
Loading…
Reference in New Issue