New answers tagged fixed-timestep
http://gafferongames.com/game-physics/fix-your-timestep/ The short version is that there can be a huge variation in frame rate due to a myriad of factors, many outside of the game's control. These variations can cause a lot of bugs and other gameplay oddities, especially in physics. Using a fixed timestep for updates avoids bugs.
How short is it compared to the real length? Does it happen if the ship is stationary? You're casting to int. Maybe you're accumulating rounding errors in the missile moving code, especially if you do it incrementally? Also, direction * scale * speed is missing lastTick, assuming the speed is not expressed as "distance per tick" but in terms of an actual ...
Top 50 recent answers are included