Update physics independently of call to RenderWorld()

Everything related to 3D programming
chris_b
Enthusiast
Enthusiast
Posts: 103
Joined: Sun Apr 27, 2003 1:54 am

Update physics independently of call to RenderWorld()

Post by chris_b »

is it possible?

I want to be able to update the 3D world physics, then potentially move/add/remove entities and maybe update rendertextures, then render a frame - all within a single iteration of the game loop - but I can't see how?

So far the only workaround seems to be to hide everything.. call RenderWorld() to force the physics simulation to update, then unhide everything and call RenderWorld(0) to actually display everything without affecting the physics.. but this seems a bit messy.