Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Where do some of these equations come from for the "Racing" example?

Asked by 5 years ago

I have recently been looking on how to make a car, and what better place to start then the roblox example. Then, I stumbled upon this line of code

bodyThrust.force = Vector3.new(0, ((stats.Height.Value - thrusterHeight)^2) * (force / stats.Height.Value^2), 0) local thrusterDamping = thruster.CFrame:toObjectSpace(CFrame.new(thruster.Velocity + thruster.Position)).p * damping bodyThrust.force = bodyThrust.force - Vector3.new(0, thrusterDamping.Y, 0)

and I have absolutely no clue where the numbers for the force come from, and what the thruster dampening does. Can someone help?

0
It's called comprehending what it is before trying it. DeceptiveCaster 3761 — 5y

Answer this question