Limiting Spring Joint 2D

Hi.

I’m creating a 2D motorcycle game. I have connected the wheels to the body with the Spring Joint 2Ds, and it works just fine.

But when dropping hard, bike’s body parts goes under the wheels. I replace my bad english with a picture.

Have you any ideas how to force the body points to the “upper” side of wheels, since Spring Joint 2D has not “Min distance”-attribute. Hope you understood at least something. Any help would be appreciated!

use a spring joint and a slider joint might work… good luck

1 Like

Thanks! That mostly solved the problem. I guess I can work with the rest of it :smile:

best of luck!