Manually ticking the world/physics and replay system interaction

Hi,
I’ve tried to find some in-depth information about manually ticking the world/physics while using the replay system but only found some generic information.

What I want is to manually run/simulate the world for 10 seconds in the background and then be able to replay that 10 seconds and also to be able to “immutable” interact with objects (that is only getting the information, no mutability of the game logic state).

So I was thinking that to solve this I would need to manually tick the world. There is the UWorld::Tick() but the description is lousy and I don’t know if it could be called manually, what pre-condition/post-conditions needs to be met, what other side effect it has, do I need to have multiple UWorlds? But assuming the manually ticking world would work, how does it interact with the replay system? That is if I start the replay recording, manually tick the world and then stop it, would I be able to replay it as it would happen in real-time? Another question is, during replay playback, what are the constraints of interacting with the objects? Could I for instance highlight the object being replayed?

Here as a concrete example: There is a cube in the scene and the plane. Now I want to move the cube (using physics) and see what it does. So I want to simulate for instance 10 seconds and then to be able to replay the scene. During the replay I want to click on the cube and highlight it somehow.

Thanks

Hey @Trigve
Its function called every frame on this Actor. Override this function to implement custom logic to be executed every frame. The param DeltaSeconds is the Game time elapsed during the last frame modified by the time dilation

I’d say it’s important to remember the distinction between frames and seconds here, just because with rendering each machine will respond differently.
I hope this can help!
-Zen

Thanks for the reply.

I think you misunderstood my question :slight_smile: I wasn’t asking about the Actor ticking, I was asking about manually ticking the UWorld to simulate the physics etc. (see details in my origina post).