Live data from Hacker News

Doing Game Gravity Right

niksula.hut.fi

1–10 of 86 posts

Re: Doing Game Gravity Right

#4
Why does this even matter? If you have a large delta time then your game is fucked anyway. Collision detection will likely also be broken and the game is unplayably choppy anyway so it doesn't even matter.

Re: Doing Game Gravity Right

#5
post #4

Why does this even matter? If you have a large delta time then your game is fucked anyway. Collision detection will likely also be broken and the game is unplayably choppy anyway so it doesn't even matter.

You'll have small variations at higher framerates too. Why not just avoid variation in this altogether? It's almost no extra work, and it makes things more consistent.

Re: Doing Game Gravity Right

#6
post #5
post #4

Why does this even matter? If you have a large delta time then your game is fucked anyway. Collision detection will likely also be broken and the game is unplayably choppy anyway so it doesn't even matter.

You'll have small variations at higher framerates too. Why not just avoid variation in this altogether? It's almost no extra work, and it makes things more consistent.

You're also using floats to store the values. This seems silly and looks like it will be slightly slower to calculate.

Unless your game is running like garbage this will not matter. You are talking about a dt of something like 1/30 or 1/60

Re: Doing Game Gravity Right

#7
post #4

Why does this even matter? If you have a large delta time then your game is fucked anyway. Collision detection will likely also be broken and the game is unplayably choppy anyway so it doesn't even matter.

Drops in framerate happen. Why not make a best effort for accuracy? Also, it's interesting and insightful.

Re: Doing Game Gravity Right

#8
post #4

Why does this even matter? If you have a large delta time then your game is fucked anyway. Collision detection will likely also be broken and the game is unplayably choppy anyway so it doesn't even matter.

You wouldn't believe the amount of people who plays Sims 3 at 7 fps.

Re: Doing Game Gravity Right

#9
post #4

Why does this even matter? If you have a large delta time then your game is fucked anyway. Collision detection will likely also be broken and the game is unplayably choppy anyway so it doesn't even matter.

You wouldn't believe the amount of people who plays Sims 3 at 7 fps.

Does sims 3 even have gravity?

Re: Doing Game Gravity Right

#10
post #4

Why does this even matter? If you have a large delta time then your game is fucked anyway. Collision detection will likely also be broken and the game is unplayably choppy anyway so it doesn't even matter.

[deleted]
Post reply on HN