I’m currently trying to replicate some vehicle physics from Kevin Kart, specifically the gravity. The karts seem to “grapple” onto the things underneath them, but are also able to go off of ramps.
Here’s a video:
I’ve tried some things with VelocityForces, but I can never seem to get the effect quite right, as it either slams into the ground when falling off ramps due to them being too powerful, or isn’t able to get upside down since it isn’t strong enough.
the “grapple” effect can be recreated by casting a ray below the vehicle (using its cframe’s negated UpVector property), checking if there’s anything there and if there is (doesn’t return nil), using an AlignOrientation to match the vehicle’s orientation to the floor’s using the RaycastResult’s Normal vector