Suspension issues

wawa.rbxm (182.3 KB)

For the past few days I’ve been trying to make a suspension system for a few vehicles i built, so i found this opensource plugin. I wanted to make it set up a suspension for vehicles with more than 4 wheels, but after a failure I’ve decided to just take the plugin’s suspension template itself and edit its scripts to allow it working with any amount of wheels. And it worked, so then i tried making a script to automatically create the suspension before unanchoring the vehicle. So, i ended up having 2 versions of 1 vehicle, one with a preinstalled suspension, and the other one with a suspension created by the script. Their structure is absolutely identical(as far as i can tell), their models are the same, everything about them is just the same, but the one created by the script has its wheels going through the hull and it doesn’t drive, i can only turn wheels left and right. The one created manually works, however. I’ve tried changing attachment properties, changing collisions, but nothing helped. So i thought that maybe someone from the devforum could help me?

2 Likes

perhaps you should pop a message to the github item owner.

1 Like

The vehicle might be too heavy for the constraint, there are a few ways you could fix this.
You could remove the effect of gravity like this
image
and then edit the body force to have the gravity you want it to have.

You could try turning on the Mass Less property.
image

You could even make your constraints stronger.

well, the exact same model works with the exact same suspension but preinstalled manually
Screenshot_20220315_140947

If you mess around with the model in the “Run” test mode by letting it slide down a wedge and flip over, are the wheels attached?

yup, i flinged it around for a while trying to think of anything, its all fine, they even turn when you hold a and d, and the fov changes when you hold w and s, but nothing else

What constraint are they using?

springs and cylindrical, as i said its the same as the working one but the working one was already installed before testing and the broken one is supposed to be installed in the game by a script, so I’m assuming its something to do with that, but idk what, the script method results in the same structure

Are the spring attachment positions in the correct position?

1 Like

yeah, they all are. its the same on both

Looks like it is a weight issue. Delete the NONSYSTEM during a test run and the suspension seems to work.
image


When you make the NONSYSTEM model mass less, it all goes up.
I had a look at the other model and it seems to have check Massless

wth damn I’ll try that when im on pc

1 Like

I hope this helps, good luck with your game. Nice model by the way, I love the tank.

3 Likes