FVector Vect;
FString ObjectPosition = GetOwner()->GetTransform().TransformPosition(Vect).ToString();
UE_LOG(LogTemp, Warning, TEXT("Object %s Coordinates %s"), *GetOwner()->GetName(), *ObjectPosition);
Returns a huge number for Cube_5 when its location is actually -70 -250 70. So what’s happening? Looks like the negative numbers are being misinterpreted…:
LogTemp: Warning: This component is attached to Sphere_2
LogTemp: Warning: Object Sphere_2 Coordinates X=190.000 Y=250.000 Z=60.000
LogTemp: Warning: This component is attached to Cube_5
LogTemp: Warning: Object Cube_5 Coordinates X=10360576915510822246023168.000 Y=10360576915510822246023168.000 Z=10360576915510822246023168.000