Sign in to follow this  

How do I achieve a resting state for my objects

This topic is 2349 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

[quote name='EvilNando' timestamp='1310405496' post='4833855']
currently my objects bounce to each other a minimal amount and they never rest, specially when they are on top of each other


how do I fix this?
[/quote]
Use a threshold for the speed of an object. When an object does not gain more speed than the threshold over a few seconds freeze it (no simulation any longer). When frozen you need some conditions to wake it up again. The obvious one is once an other object collides with it, but you need to save the last contacts too. Once an other object, which is registered as contact, moves, you need to wake up all objects which were in concat with this object and are still frozen. Think about a tower build up of objects, when you remove the bottom one, the upper one will fall down, in this case the bottom one was in contact with the next upper one etc.

Share this post


Link to post
Share on other sites
Well, if you properly simulate dumping and you don't explicitly move things out of collision, you don't need to "freeze" your objects. I think freezing is more an optimization thing than a physics stabilizing thing (or should be).

Share this post


Link to post
Share on other sites

This topic is 2349 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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