separated loop and substepping calls to scripts
clamping requested movement to input acceleration