21 auto Player = GetOwningPlayerController();
22 if (Player ==
nullptr)
24 UE_LOG(LogCarla, Error, TEXT(
"Can't find player controller!"));
34 double Now = FPlatformTime::Seconds();
40 if (Player->ProjectWorldLocationToScreen(
StringList[i].Location, Screen,
true))
66 using namespace Chaos;
68 ensure(IsInGameThread());
71 UE_LOG(LogCarla, Log, TEXT(
"Invalid state"));
75 UFont* RenderFont = GEngine->GetMediumFont();
78 Canvas->SetDrawColor(FColor::White);
83 YPos += Canvas->DrawText(RenderFont, FString::Printf(TEXT(
"WheelLoad: [%d] %1.f N"), i, CmToM(
DebugVehicle->GetWheelState(i).SpringForce)), 4, YPos);
89 if (
DebugVehicle->GetWheelState(i).PhysMaterial.IsValid())
91 YPos += Canvas->DrawText(RenderFont, FString::Printf(TEXT(
"SurfaceFriction: [%d] %.2f"), i,
DebugVehicle->GetWheelState(i).PhysMaterial->Friction), 4, YPos);