physics: fix velocity update