I heard jailbreak doesn’t use physics for their cars, they use raycasting, is this true? If so, can someone explain how this is done?
4 Likes
This is most likely about the car suspension.
Physics method: use Roblox spring objects.
Raycasting method: shoot rays down to get the floor height and use that to determine how a custom spring should behave.
Using Roblox springs is much easier for cars. For things like trail effects, raycasts can also be used.
I recommend using springs.
If you want a flying vehicle that is limited to float a certain height above the ground like one jailbreak vehicle, use raycasts to determine the current height.
3 Likes