Box2D Forums

It is currently Fri May 24, 2013 3:32 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Jan 31, 2012 5:27 am 
Offline

Joined: Tue Jan 31, 2012 5:14 am
Posts: 1
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.


Top
 Profile  
 
PostPosted: Wed Feb 01, 2012 12:00 pm 
Offline
Site Admin

Joined: Thu Sep 06, 2007 12:34 am
Posts: 2931
Yeah, I agree. The code should only check against zero and it should not assert in any case.


Top
 Profile  
 
PostPosted: Fri Mar 16, 2012 10:48 pm 
Offline
Site Admin

Joined: Thu Sep 06, 2007 12:34 am
Posts: 2931
It seems this issue was already fixed in SVN.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group