Box2D Forums

It is currently Thu May 23, 2013 2:57 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Apr 11, 2012 7:09 pm 
Offline

Joined: Thu Apr 05, 2012 8:29 pm
Posts: 3
I am Developing one Box2d based flash game. in that game i need to create one elliptical dynamic body.if i create shape like ellipse using vertex count and reference point. when it fall down into ground (colide with static body) that ellipse shape was broken into seprate bodies .Can any one help me for this issue


Top
 Profile  
 
PostPosted: Fri Apr 13, 2012 11:04 am 
Offline
Site Admin

Joined: Thu Sep 06, 2007 12:34 am
Posts: 2931
I would approximate the ellipse with a convex polygon.


Top
 Profile  
 
PostPosted: Tue Apr 17, 2012 7:44 pm 
Offline

Joined: Thu Apr 05, 2012 8:29 pm
Posts: 3
will you elaborate.


Top
 Profile  
 
PostPosted: Wed Apr 18, 2012 4:02 am 
Offline

Joined: Fri Nov 12, 2010 1:38 am
Posts: 12
In contrubutions folder you can find a capsule shape:

http://code.google.com/p/box2d/source/b ... le88.patch

It should be a good approximation of an ellipse, but if you need an ellipse, you should create it.


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

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 8 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