diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/InertialMeasurementUnit.cpp b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/InertialMeasurementUnit.cpp index dbf5256a5..2f2908d24 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/InertialMeasurementUnit.cpp +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/InertialMeasurementUnit.cpp @@ -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)