Hacker News new | ask | show | jobs
by TestTube_Andy 4106 days ago
Thanks for playing. It's an interesting question about the huge-and-instantaneous acceleration when the raptor stops. The way I treated it when making the game was that the spacebar is equivalent to applying an acceleration exactly equal to (minus) your speed divided by the timestep of the game. Which means from one frame to the next you'll go from moving to stopped.

So from a technical perspective, the acceleration isn't infinite, since it happens over the course of a single frame. Of course, that reveals one of the odd parts about having discrete time-steps (frame, frame, frame) instead of continuous time.

Practically, the acceleration it would take to stop you that suddenly would indeed be immense, and certainly the forces would be enough to tear a normal velociraptor's claws right off her feet. (Luckily, VR is no normal raptor)

If you do want to be able to see the acceleration, you can always use the arrow keys to slow down... or hold down an arrow key as you hit the spacebar (that decreases the 'braking' acceleration)