Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.

The C modest god

suspension of a car

This topic is 5510 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Well, if you're looking for an equation, you can simulate it fairly easily as a simple spring plus a rather large retardant force. Something like:

a = max(abs(k*y) - f, 0) * -sgn(y)

Where a is the acceleration, k is the spring coefficient (decrease for a car that tends to bottom out), f is the frictional constant (decrease to make the car bounce a lot), and y is the displacement from the car's resting position. You can throw in gravity, too, if you want, but alternatively you can just consider it as represented by an offset resting position.

How appropriate. You fight like a cow.

[edited by - sneftel on November 6, 2003 3:16:57 AM]

Share this post

Link to post
Share on other sites
You can model the suspension as a spring with a damper... The force exerted by the spring-damper on the car is:

F = k x + c dx/dt


k = the spring constant (higher value = stiffer spring)
c = the damping constant (higher value = more damping, will stop the car from bouncing up and down as much)

x = the distance from the equilibrium position
dx/dt = change in distance with respect to time (i.e. the velocity of the car relative to the wheel)

This is the most realistic way to do it as far as i know... The way i was taught to do it on my Mechanical Engineering course in any case.

once you have the force you''ll need to find the center of mass of the car, and figure out how that force is going to affect the car (i.e. make it rotate + move).

Share this post

Link to post
Share on other sites
hmm, the distance between one wheel and another wheel? or the distance between the wheel and the car?

the distance between the wheel and the car does change, thats the whole point of suspension... if the distance didn''t change then the wheel would be rigidly fixed to the car and you wouldn''t have any suspension at all...

you''ll want to model it as a simple up and down movement... i don''t know what u mean about a circular motion

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!