currentTimeStep issues
Posted: Sun Jul 07, 2013 4:24 pm
from the name of the property, currentTimeStep suggests to me that one can use this as a way to keep track of how many steps have occurred in the simulation. this therefore suggests that this value will either be the same, or greater than any other point in your code you access it.
Have I misunderstood? How would I accomplish what I'm hoping to. i.e. 'simulated amount of time thus far' ??
Code: Select all
// update the timestamp
cpFloat timestamp = _space.currentTimeStep;
// check if anything is new
if(timestamp < _lastTimestamp)
return; // this should never happen, and yet it does...