spring for a vehicle model

Hi,

I'm preparing a vehicle model (based on a Car Test in Box2d). I've added two b2SpringControllers but they don't work realistic in this case. (Fig. 1)
Attachment:
File comment: Figure 1
auto_1.png
auto_1.png [ 10.86 KiB | Viewed 321 times ]

Attachment:
File comment: a movie for model in fig. 1
movie7.gif
movie7.gif [ 221.13 KiB | Viewed 316 times ]


I'm looking for a spring which can go only up and down. (Fig. 2)
Attachment:
File comment: Figure 2
auto_2.png
auto_2.png [ 7.8 KiB | Viewed 321 times ]


Could you help me?
I've added two more springs for a wheel and it looks a little bit better now...
Attachment:
movie9.gif
movie9.gif [ 199.17 KiB | Viewed 298 times ]

... but it's not what I really wanted to make.
Wouldn't a joint + spring limit the direction of travel of the spring?
jacekm: Look at the prismatic joint, that is essentially like a shock absorber.
Thanks, prismatic joint with one b2SpringController for a wheel gives good result:
Attachment:
movie14.gif
movie14.gif [ 161.89 KiB | Viewed 262 times ]
Why you don't like a REAL car model?
Neosano wrote:
Why you don't like a REAL car model?

What do you mean?

Original thread: https://box2d.org/forum/viewtopic.php?t=4100