Sign in to follow this  
EvilNando

How do I achieve a resting state for my objects

Recommended Posts

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?

Share this post


Link to post
Share on other sites
[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

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