Calculation of acceleration for tracks


#1

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.


#2

Because we want to counter it.

DeltaTime. Because we want the force that frame.


#3

thanks for answering i figured it out.


closed #4

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