I’m have tried to find a way to get delta time with no luck. I have found a lot of answers on how to do it, bou not with c++.
Depends on what you’re do ng. Anything AActor based can override the Tick function which has a DeltaTime argument.
I’m trying to move a character class based object by changing the transform directly. I’m also gonna need to mome a avtor base object, so I would love to know both methods.
ACharacter actually derives from AActor so in both cases you need to override the Tick function.
https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/GameFramework/AActor/Tick/1/index.html
In a Character C++ sub-class…
World->GetTimeSeconds();
World->GetDeltaSeconds();
4 Likes
Bit late but…
6 Likes
You’re the hero, sir.
1 Like