You'll need to find the change in speed, not just the speed. If your speed changes, then you want to roll (I suppose).

my.roll = clamp( my.roll + changeOfSpeed * time_step, -20, 20 )


Click and join the 3dgs irc community!
Room: #3dgs