Re:A chill driving game with procedurally generate scenic la...
by whoopdedo on Sunday October 23, 2022 @11:42AM
(#33307789)
Your description is that steering decays then has mouse impulse added, which makes sense to me. But the code decays the steering after adding the delta-X. Is there a reason for that?
[ Parent
| on HN ]
Re:A chill driving game with procedurally generate scenic la...
by xeonmc on Sunday October 23, 2022 @11:59AM
(#33307906)
As the discrete impulse is meant to approximate average derivative, applying decay after the impulse ensures that the value is always attenuated by decay (low frame rate underestimate the ground truth impulse, whereas the converse overestimates at low framerate).