Added inertia for random walk demo to improve jerkiness and emulate
real-world physics.