First of all there’s a similar topic here however my issue seems to be different because the topic didn’t help me. I’m working on a trial - style 2D vehicle system (one body, two wheels):
However I’m not using wheel colliders but actual rigidbodies with rotation and position constraints which are parented to the body. What I want is to use the configurable joint to simulate the suspension of the vehicle. The problem is that the configurable joint doesn’t seem to react to my settings. Now, here’s what I have:
- Chassis: Rigidbody with mass 200. Z movement restricted and X and Y rotation restricted.
- Wheels: Rigidbodies with mas each 75 with same restrictions as the chassis.
- Wheels are parented to the chassis
- Each wheel has a configurable joint connected to the chassis with the following settings:
X and Z Motion - Locked , YMotion limited
Angular motion - all free
Linear limit:
Limit 0.5
Bounciness 0.1
Spring 10
Damper 1
The above doesn’t do anything - there’s no suspension effect. However if I set the Anchor from 0, 0, 0 to 0, 1, 0 for example, the suspension starts to work but no matter how I set the Linear Limit the suspension stays the same. For example I want a bigger suspension effect but I also want it to be fast so the vehicle doesn’t look awfully heavy but I can’t set it up.
Can somebody guess what seems to be the problem ?
Also if there’s is a better way to achieve the suspension feel free to offer it. I tried it with a spring joint first but because of the lack of constraints I moved to configurable joints.