Skip to content

Commit

Permalink
Render debug data and visuals after actor's pose is updated (#1161)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcleod authored Sep 28, 2024
1 parent 8e4803b commit 65618e8
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,13 +291,6 @@ void UJSBSimMovementComponent::TickComponent(float DeltaTime, ELevelTick TickTyp
// Get the results from JSBSim
CopyFromJSBSim();

// Basic debugging string and symbols
if (DrawDebug)
{
DrawDebugMessage();
DrawDebugObjects();
}

// Transform the aircraft coordinates from ECEF Frame to UE Frame, using the georeferencing plugin.
if (Parent)
{
Expand All @@ -322,6 +315,14 @@ void UJSBSimMovementComponent::TickComponent(float DeltaTime, ELevelTick TickTyp
// Apply the transform to the Parent actor
Parent->SetActorLocationAndRotation(EngineLocation, EngineRotationQuat);
}

// Basic debugging string and symbols
if (DrawDebug)
{
DrawDebugMessage();
DrawDebugObjects();
}

}
}

Expand Down

0 comments on commit 65618e8

Please sign in to comment.