Archive 17/01/2023.

Slow motion effect?

TheComet

What would be the best way to temporarily slow down the time step in Urho3D to create a slow motion effect? I thought about having my own separate “time step” value, but then I’d have to make sure to multiply it everywhere with Urho3D’s timeStep and that seems extravagant.

It would have to work with everything, including physics objects, particles, animation updates, the Update() and FixedUpdate() calls, etc.

Florastamine

Have you looked into Scene::SetTimeScale()?

TheComet

Wow! When was that introduced? Works perfectly, thanks!

Modanung

At least two years ago.

Splinin’ it? :stuck_out_tongue_winking_eye:

Enhex

Something to keep in mind - Scene::SetTimeScale() doesn’t affect sounds.
I don’t see any “master frequency” either.

TheComet

It would be super cool if you could somehow apply a lowpass filter on all of the sounds. I haven’t done much with Urho3D and sound so hard to say how feasible it is. Maybe someone else knows how you could do this.