How to sync Recast with game loop?

Is it possible to sync Recast with the game loop? Something like:

scene.onBeforeRenderObservable.add(() => {
    const delta = engine.getDeltaTime();
    recast.update(delta); // something like this, maybe use setTimeStep to pause/unpause?
})

cc @Cedric

There is no API to do that.

But you can do a PR to expose what you need. I’ll review it.

1 Like

Ok, I’ll see if I can have a look at this soon :slight_smile:

1 Like