Box2D Forums

It is currently Wed May 22, 2013 3:25 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sun Sep 11, 2011 7:11 am 
Offline

Joined: Sun Sep 11, 2011 7:04 am
Posts: 2
Hi,

I'm creating bodies and their fixtures dynamically. Though they can be pretty small sometimes, and then I get some problems.
When there is something wrong with the fixture (too small, concave, ...) Box2D gives an assert. Is it possible to check if creating a fixture was successful at runtime to act on it when it isn't ?

Edit: I just found, is it possible that it throws instead of asserts ? Or am I wrong with this ?

Thanks !
-The Oddler


Top
 Profile  
 
PostPosted: Sun Sep 11, 2011 10:44 am 
Online

Joined: Tue Jun 24, 2008 8:25 pm
Posts: 1517
Location: Tokyo
A quick and dirty way might be to take the code Box2D uses to decide whether to assert, and bring it into your code so that you can check it first and if it's bad, just don't give it to Box2D at all.
Only asserts afaik.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 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