i changed
xpos += (float)sin(heading*piover180) * 0.05f;
zpos += (float)cos(heading*piover180) * 0.05f;
into
xpos += (float)sin(heading*piover180) * 0.0005f;
zpos += (float)cos(heading*piover180) * 0.0005f;
then i run the program finding the scene shakes when i press UP or DOWN to move,
it doesn't move in a smooth way, can anyone tell how to solve this?
🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
problem about lesson 10
It's most likely because the lesson doesn't use a delta time value, instead movement is based on how many frames are rendered, so any inconsistencies in the frame rate show up as shaking or stuttering in the movements, adding delta time compensates for that, so do skip ahead to lesson 32 an learn how to implement it.
It's most likely because the lesson doesn't use a delta time value, instead movement is based on how many frames are rendered, so any inconsistencies in the frame rate show up as shaking or stuttering in the movements, adding delta time compensates for that, so do skip ahead to lesson 32 an learn how to implement it.
thank you
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement