Minor fix

This commit is contained in:
Daniel Santos-Olivan 2021-04-23 16:49:57 +02:00 committed by DSantosO
parent 2ebcc0babd
commit 144b7417af
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ float AInertialMeasurementUnit::ComputeCompass()
{
// Magnetometer: orientation with respect to the North in rad
const FVector ForwVect = GetActorForwardVector().GetSafeNormal2D();
const float DotProd = FVector::DotProduct(CarlaNorthVector, ForwVect)
const float DotProd = FVector::DotProduct(CarlaNorthVector, ForwVect);
// We check if the dot product is higher than 1.0 due to numerical error
if (DotProd >= 1.00f)