Mako_energy02 wrote:
On line 65 of
this source file it shows the constructor that assigns defaults to it's values which CFM is among.
Well, as we are talking about the cfm and erp values of the
constraint, I think better to look
here(line 159/161) concerning the initialization values. I may be wrong (I didn't trace how this value is then used), but seeing my own results when changing these values, I think it's the right place.
Mako_energy02 wrote:
I'm still beating my head against this with no idea why these objects seem to be colliding even though they shouldn't be. I'm starting to wonder if it's something to do with the objects being in motion when the constraint gets added somehow messes with the internals. Prior to this all examples and my personal attempts at using constraints involved adding them to bodies not in motion before the first call to stepsimulation(). I am using other constraints in the same simulation as this and they are working as intended. =\
As far as the parameter to disable collision between objects, I'm doing exactly the same as you, so I don't really understand why it doesn't work in your case.
Here are some of my clues, tell us what you think about it:
- maybe these objects are colliding with a third object ?
- maybe your update time is too slow: if the internal tick can't reach 60Hz, then you may see this kind of behavior. In my case, I added a log message to let met know if this ever happen;
If none of these clues are right, what I would do is to set up a cfm value of 1 (meaning the constraint will not be resolved), see if it's still exploding and making sure the constraint is the cause. Then I would reduce this value to see when it starts making the wrong thing
Then I would try with an erp of 0 (still to ensure the constraint is the cause), and I would then make it grow to 0.2 (a bigger value is usually not needed, and anyway, the bigger the value, the less stable the constraint is).
Tells us what happens with cfm at 1. and erp at 0. Will maybe think of something else then... Sorry I can't provide lots of help for now on.