rzsavilla / BlobsonicEngine

Group Project: 3D OpenGL Game Engine
GNU General Public License v3.0
2 stars 0 forks source link

Timestep for physics #52

Closed rzsavilla closed 7 years ago

rzsavilla commented 7 years ago

This may help fix or understand issues occurring when passing the dt.

http://gafferongames.com/game-physics/fix-your-timestep/

rzsavilla commented 7 years ago

The original time step while loop within the game engine run/gameloop. Works, which means that you shouldnt be using delta time in your phyics updates.

It will call a number of updates() depending on the setDeltaFPS/Desired Frame updates.