I want to cause a car to keep its momentum and glide for a bit before stopping immediately right after the Throttle property becomes 0. I have tried keeping the Torque property and the MaxSpeed property at a high number, but the car still stops immediately after I release the “W” key. How can I fix this?
Check the MotorMaxAccleration number. The higher it is the quicker the Hinge gets up to full speed and down to 0 speed.
Change it to a lower number and you’ll see the car accelerate more realistically and coast more.
Also don’t have your MotorMaxTorque set to an insanely high number. Tune it so the car operates the way you want it to.
Momentum is
p = mv
if there’s change in momentum then it’s called as impulse
delta p = m.delta v
w.r.t law of conservation of momentum, for two or more bodies in an isolated system acting upon each other, their total momentum remains constant unless an external force is applied.
Use this formula and change your velocity script of car
Why are you using Motor6Ds? That’s a welded hinge.
A better way would be to try using HingeConstraints for wheels.
There’s a tutorial here about that:
https://www.youtube.com/watch?v=qBn0KmiFfQQ
Oh those are for the wheels steering. I was using “rotate” for wheels turning / rolling. Now I added vector force for manipulate realistic momentum with math formulae behind it.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.