Various suspension problems [fixed lol]

hey welcome, straight to the point.

I always wanted to create a functional bike that has decent suspension and a leaning system which I just achieved today but there is quite a few bugs and the most important ones are the suspension.

Suspension is literally so important if you wanna have a good bike for riding offroad and stuff.
So I thought I would fix it first but I had no idea why this occured.
(also the suspension is just a springConstraint and a prismaticConstraint)

The issue here is the suspension getting locked up, shown with an image below.
image
It gets stuck like that when you land a big jump. Then the bike gets much more slippery, but it would fix itself after some downward movement. However, sometimes things look like this:


And this is how it’s suppossed to look like:

I’ve tried increasing the damping and stiffness of the springs, but that just makes it barely work. I’ve also tried increasing the MotorMaxForce and (NOT the Velocity) property of the PrismaticConstraints which actually did partially fix the problem, but the problem still occurs, just not so commonly.

Also, if you’re gonna tell me to switch to raycast suspension, just click off.
And I think you don’t need any code for this to work. It’s just constraints.

Any help will be appreciated

1 Like

nevermind im just dumb i set the PrismaticConstraint.Velocity to 0 lol