Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Mar 08, 2012 5:07 am 
Offline

Joined: Fri Dec 10, 2010 3:39 am
Posts: 15
So im looking into creating a convex hull collision shape for my mesh. I notice that I can create a hull by just passing an array of points. Does it matter what order I pass these points in?


Top
 Profile  
 
PostPosted: Sun Mar 11, 2012 8:27 pm 
Offline
User avatar

Joined: Tue Jun 29, 2010 10:27 pm
Posts: 237
No I don't believe so.


Top
 Profile  
 
PostPosted: Mon Mar 12, 2012 7:21 pm 
Offline
Site Admin
User avatar

Joined: Sun Jun 26, 2005 6:43 pm
Posts: 3744
Location: California, USA
Indeed, the order of the points doesn't matter for the behaviour.

You might get some minimal performance improvement if you distribute the points in a clever way (first add some points that approximate the convex hull),
but I wouldn't worry about that. In general, convex hulls shouldn't containt too many vertices/points in real-time applications (games)

Thanks,
Erwin


Top
 Profile  
 
PostPosted: Wed Mar 14, 2012 1:20 pm 
Offline

Joined: Fri Dec 10, 2010 3:39 am
Posts: 15
Cool. Well I took the output of qhull and threw it at Bullet and it worked without a hitch. Thanks!


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 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:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group