Hello. I'm scripting a hovercraft. I've got everything done, and it all works fine, but since I'm using a BodyThrust to move the vehicle, and a BodyPosition to keep it up (along with a BodyGyro and AngularVelocity, although those don't matter for this), it has no resistance, so it takes a very long time for velocity in certain directions to die down. So, when I turn, there's still velocity in my previous direction causing the vehicle to slide as if it's on ice.
EDIT: I now realize I need to apply a sideways force to the velocity, so my question now is: How do I get rid of the sliding, possibly by applying a sideways force to an object according to it's velocity?
Here's a game with my hovercraft for you to test:
(Ignore all the other assets & features) Hovercars
Thanks.
Use BodyVelocity
to move the hovercraft. This will provide two benefits over using BodyThrust
.
Vector3.new(0, 0, 0)
instead of having to calculate a thrust to negate the velocity when sliding.