Fix UE 5.2 builds

This commit is contained in:
Steve Streeting 2024-09-16 15:05:20 +01:00
parent 09ed51c432
commit 2139e9d348
2 changed files with 3 additions and 0 deletions

View File

@ -118,7 +118,9 @@ void UStevesPooledActorSystem::DisableActor(AActor* Actor)
if (auto Prim = Cast<UPrimitiveComponent>(Actor->GetRootComponent()))
{
Prim->SetSimulatePhysics(false);
#if ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION >= 3
Prim->ResetSceneVelocity();
#endif
}
Actor->SetActorLocation(StorageLocation, false, nullptr, ETeleportType::ResetPhysics);

View File

@ -1,5 +1,6 @@

#include "StevesSpringArmComponent.h"
#include "VisualLogger/VisualLogger.h"
#include "StevesUEHelpers.h"