Page 1 of 1

Changing variable every time step

Posted: Fri Jul 13, 2007 4:13 pm
by etano
What is the best way to change a variable with every time step, dt?

Right now I have:

Code: Select all

init()
...
set stuff
...
for loop over all steps
...
change some stuff
step()
end for loop
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)

Posted: Fri Jul 13, 2007 4:34 pm
by etano