btGeneric6DofSpringConstraint usage questions

RJNelson68
Posts: 73
Joined: Tue Oct 06, 2009 3:19 pm

btGeneric6DofSpringConstraint usage questions

Post by RJNelson68 »

I'm trying to use a btGeneric6DofSpringConstraint as a form of vehicle suspension. With the game I'm using them in, the desired effect is to fully extend the springs, especially when there is no wheel to surface contact.

I've been trying several configurations and it seems I'm not understanding the operation of the btGeneric6DofSpringConstraint to get a good combination.

First, when setting the initial position of the wheel, should it be at the fully extended position to allow the spring to compress, or can the spring be set to constantly try to force itself to the max spring length?

Second, when using the vertical linear axis, #2, which is up and down, the minimum or maximum value? What I'm getting at is if you set the minimum value to 0.0 and the maximum to some other positive number, will the spring attempt to travel upwards or downwards, or am I completely misunderstanding the usage?

Thank you in advance.
RJNelson68
Posts: 73
Joined: Tue Oct 06, 2009 3:19 pm

Re: btGeneric6DofSpringConstraint usage questions

Post by RJNelson68 »

Yeah I can see now that set of questions warranted a good old fashioned "RTFM!". Read the documentation, it is all clear now.