In the lecture the way to retrieve the Tank Mass is:
// Calculate and apply sideways force F = m a
auto TankRoot = Cast<UStaticMeshComponent>(GetOwner()->GetRootComponent());
auto CorrectionForce = (TankRoot.GetMass() * CorrectionAcceleration) / 2; // Two tracks
TankRoot()->AddForce(CorrectionForce);
The way I suggest is:
// Calculate and apply sideways force F = m a
auto TankMass = GetOwner()->GetRootPrimitiveComponent()->GetMass();
auto CorrectionForce = (TankMass * CorrectionAcceleration) / 2; // Two tracks
GetOwner()->GetRootPrimitiveComponent()->AddForce(CorrectionForce);
Is the same thing⌠but maybe a little bit more clear
Cheers