Hello everyone, Almost a year ago I was trying to make my own raycast suspension system for a car chassis because I found that making vehicles with roblox physics is way to complicated so I opted to make my own raycast suspension system because it seemed to be faster and looked way cooler. However, I found it incredibly hard to code as there were not many resources on roblox about it. But after a lot of research and revisions I would finally like to present my module to you all.
Basically the car shoots a raycast down onto the floor and depending on how close that ray is to the floor the more suspension force is applied upwards. However this will make the car continuously oscillate, to prevent this I added damping to the system so that the forces even out. With all of this combined you will have what appears to be a floating platform, slap a car body and some tires on it and you will have yourself a car!
Here’s a video I made on the system
Some resources I used
These are just some videos, but there are some other resources I unfortunately don’t remember the links to
I tried using the module to rig a car up in my game, but I do not completely understand the documentation example. This is what the rig looks like
each wheel has the same attributes
and there is no errors
and I just copied and pasted the example code but nothing seems to happen:
do I need to set the parts in the motor6D object?
Yes, I did update the github repo and changed the instructions and documentation around. I was just stating before the known problems I can’t work out.