Hello ...
I have a problem with b2_epsilon with the contact solver, like i've seen in other comments, in my situation the calculation of the kNormal value is correct and the result is 5e-008 which is lower than b2_Epsilon 1.19209290E-07F so when contact solver reach b2Assert(kNormal > b2_epsilon); if crashes.
I'll appreciate if anyone is able to explain why this assert is required.
... and also why is required in this way.
i mean ... i prefer to do not crash my program ... why not limitate it?
if (kNormal < b2_epsilon)
{
kNormal = b2_epsilon;
-- plus some kind of warning if you want it
}
... why assume it's an error and crash the program?
Thanks in advance,
and regards.
I have a problem with b2_epsilon with the contact solver, like i've seen in other comments, in my situation the calculation of the kNormal value is correct and the result is 5e-008 which is lower than b2_Epsilon 1.19209290E-07F so when contact solver reach b2Assert(kNormal > b2_epsilon); if crashes.
I'll appreciate if anyone is able to explain why this assert is required.
... and also why is required in this way.
i mean ... i prefer to do not crash my program ... why not limitate it?
if (kNormal < b2_epsilon)
{
kNormal = b2_epsilon;
-- plus some kind of warning if you want it
}
... why assume it's an error and crash the program?
Thanks in advance,
and regards.