If I collide 2 bodies with bounce = 0 and the ERP and CFM for the contact joint set (using the damped spring model for the contact joint) such that the damped spring is not underdamped, the collision should be inelastic (i.e. the bodies should stick to each other). However, this does not occur. Instead, the initial penetration is stopped and reverses (as expected) but the outward speed never goes down. It increases up to a maximum velocity and then they “bounce” off of each other at that velocity. This appears to be because the force solved for at the contact joint is currently required to be outward here:
It seems like that should be:
Am I missing something?
Full disclosure: I haven’t reproduced the problem using the current development version of ODE, but I was able to reproduce the problem in Webots (which uses a fork of an older version of ODE), and confirmed that the problem is fixed by a change to Webots' ODE that appears to be equivalent to the above proposed change. I’m posting here because looking at the current ODE source code appeared to reveal the same issue. Is there a good reason that it is the way it is? Would the proposed fix have undesirable side effects?
Thanks!
Oleh Derevenko
-- Skype with underscore
You don't often get email from dean.b...@gmail.com.
Learn why this is important
|
Oleh Derevenko
-- Skype with underscore
To view this discussion on the web visit https://groups.google.com/d/msgid/ode-users/AS4PR07MB8899F2C628EACD5EF58522D1DD402%40AS4PR07MB8899.eurprd07.prod.outlook.com.
Oleh Derevenko
-- Skype with underscore
You don't often get email from de...@brettle.com.
Learn why this is important
|
Oleh Derevenko
-- Skype with underscore