| 492 | } |
| 493 | |
| 494 | void AAMjManager::Tick(float DeltaTime) |
| 495 | { |
| 496 | Super::Tick(DeltaTime); |
| 497 | |
| 498 | if (!PhysicsEngine || !PhysicsEngine->IsInitialized()) |
| 499 | { |
| 500 | return; |
| 501 | } |
| 502 | |
| 503 | const TArray<AMjArticulation*> Arts = PhysicsEngine->GetAllArticulations(); |
| 504 | const TArray<UMjQuickConvertComponent*> Quicks = PhysicsEngine->GetAllQuickComponents(); |
| 505 | |
| 506 | PhysicsEngine->WithRenderState([&](const FMjRenderSnapshot& Snap) { |
| 507 | for (AMjArticulation* Art : Arts) |
| 508 | { |
| 509 | if (Art) |
| 510 | { |
| 511 | Art->ApplyRenderState(Snap); |
| 512 | } |
| 513 | } |
| 514 | for (UMjQuickConvertComponent* Quick : Quicks) |
| 515 | { |
| 516 | if (Quick) |
| 517 | { |
| 518 | Quick->ApplyRenderState(Snap); |
| 519 | } |
| 520 | } |
| 521 | }); |
| 522 | } |
| 523 | |
| 524 | AAMjManager* AAMjManager::GetManager() |
| 525 | { |
nothing calls this directly
no test coverage detected