Calculation of acceleration for tracks

hey guys, im a little bit confused about how to calculate the acceleration of sideways friction for tracks.
ben used this code for calculating acceleration!

auto SlippageSpeed  = FVector::DotProduct(GetRightVector(), GetComponentVelocity());
auto CorrectionForce = - SlippageSpeed  / DataTime * GetRightVector();

what i really dont underestand is the way of Calculating CorrectionForce.
why we assign the minus(-) sign to the calculation process?
why even we multiple DataTime to a Vector?
i will be very thankful if someone explain these two questions.

Because we want to counter it.

DeltaTime. Because we want the force that frame.

1 Like

thanks for answering i figured it out.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms