Sign in to follow this  
NotTheCommonDose

Physics update lag problem [SOLVED]

Recommended Posts

h4tt3n    1974
Hi there,

THis problem should go away if you first iterate through all objects and find the forces acting on them and then iterate through them again, updating their position and velocity. From what I've read in your blog it seems like you do it differently.

Cheers,
Mike

Share this post


Link to post
Share on other sites
h4tt3n    1974
Quote:
Original post by NotTheCommonDose
That doesn't appear like it will work because how will the engine know to apply forces to an object if it hasn't updated the applying object's new position and velocity yet and found the new collision?


Hmm... there's a chance I've misunderstood you, but if you do like I suggested before, the engine doesn't "have to know" wether an objects state has been updated or not - because ALL objects are updated before any new forces are applied. And likewise ALL forces are updated before any new position / velocity updates. Afaik this is how all force based physics simulation work.

If I'm totally in the woods here, please explain in more detail how your engine currently works. This'll make it easier for everyone to suggest good solutions to your problem :-)

edit: I've done a lot of very advanced force based physics sims over the years and never encountered the problem you mention. Imho no central register or anything like that is needed.

Cheers,
Mike

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this