Distance Matching Locomotion : Giving it a shot!

The reason the calculation is not the same (and I totally forgot) it’s because when the while loop runs it only uses the value of one frame.

So, after the loop if the frame value changes, the actual deceleration values that CMC calculates will change, unless you’re using a fixed framerate or doing the math in real time.

Like this

LogTemp: Warning: Delta Seconds: 0.017827
LogTemp: Warning: Delta Seconds: 0.014507
LogTemp: Warning: Delta Seconds: 0.008334
LogTemp: Warning: Delta Seconds: 0.008334

I’m feeling dumb for not realizing this early :sweat_smile:

1 Like