UNSTBL - Refacto

+ Exit CaptureImage faster in case of problem
+ Register cameras manually in Episode SubSystem
+ Make FilePath optional to keep the correct default value in saved games
- Image capture doesn't work, image is empty
This commit is contained in:
Jb win
2025-05-06 16:23:17 +07:00
parent 022f7dd518
commit 42fc0e5b74
9 changed files with 107 additions and 95 deletions

View File

@ -54,11 +54,6 @@ FTransform URobotPilotSO100Component::GetReachableTransform()
RewardAxis.Z = 0; // Nullify Z to keep a 2D vector -> ensure the geometry roll/pitch are 0
const FRotator TowardPivotRotation = UKismetMathLibrary::MakeRotFromXZ(RewardAxis, FVector::UpVector);
// Debug
// DrawDebugLine(this->GetWorld(), ArmPivotLocation + ArmWorldRotation.GetForwardVector() * 70, ArmPivotLocation, FColor::Green, true);
// DrawDebugLine(this->GetWorld(), ArmPivotLocation + FVector::UpVector * 70, ArmPivotLocation, FColor::Red, true);
// DrawDebugLine(this->GetWorld(), RandomLocation, RandomLocation + TowardPivotRotation.Quaternion().GetForwardVector() * -50 , FColor::Blue, true);
// Return the Object Transform
return FTransform(TowardPivotRotation, RandomLocation);
}