Changing variable every time step
Posted: Fri Jul 13, 2007 4:13 pm
What is the best way to change a variable with every time step, dt?
Right now I have:
Is there a better way of doing this? (I'm pretty sure there is, but I'm having trouble finding good examples in the forums)
Right now I have:
Code: Select all
init()
...
set stuff
...
for loop over all steps
...
change some stuff
step()
end for loop