How do you code friction for a raycast suspension vehicle?

Using f = -mv is basically the standard for drag for most video games. Real life aerodynamic drag is a bit more nuanced (nonlinear), but a simple linear model is suitable for almost every video-game use case.

Just a little physics terminology though; friction is usually a relatively constant force while drag is ‘proportional’ to velocity.

2 Likes