Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


Resolve resting contacts


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 t0350   Members   -  Reputation: 118

Like
0Likes
Like

Posted 07 September 2012 - 09:03 PM

Hi,I try to implement rigidbody dynamics while reading the book 'Game Physics Engine Development'.The collisions is well.And now,I am dealing with resting contacts.The problem I met is the boxes are jittering.As the book says,I set the coefficent of restitution to zero when the contact velocity is little.But things still cannot go well(still jitter).I need some advices and help.

Thanks!

Sponsor:

#2 jefferytitan   Crossbones+   -  Reputation: 2246

Like
0Likes
Like

Posted 07 September 2012 - 10:20 PM

Given that most of us don't have this book, my advice would be:
  • Pick a known simple scenario where it misbehaves.
  • Put logging in that shows the positions/velocities/forces on the misbehaving objects.
  • Post a short excerpt of that data here.
  • Post a short excerpt of the code most relevant to the bad numbers.


#3 t0350   Members   -  Reputation: 118

Like
0Likes
Like

Posted 08 September 2012 - 02:12 AM

Thanks for replying.I've got the direction for next step.

#4 bpj1138   Members   -  Reputation: 113

Like
0Likes
Like

Posted 08 September 2012 - 10:31 AM

This is why this problem is so difficult. As time goes to infinity, the jitter goes to zero. Zero velocity is a bad situation, because you have no normal or tanget vector, and so you cannot calculate friction to stop the motion.
--bart




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS