Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Breakable convex decomposition demo (with source code)
PostPosted: Thu Dec 24, 2009 12:54 pm 
Offline

Joined: Tue Dec 25, 2007 1:06 pm
Posts: 103
WHAT'S THIS?

This is just an extension to the Bullet Convex Decomposition Demo I made several months ago (probably half 2009), to add VERY BASIC support for breakable compound shapes.

Hope newbies will find it useful.

INSTALLATION

The attached compressed archive contains one redundant file (ConvexDecompositionDemo2.cpp).
The file "ConvexDecompositionDemo2.cpp" is just an optional replacement for "ConvexDecompositionDemo3.cpp" in case std::map in not available on some system (with some limitations: just one compound object is breakable).

So please don't add "ConvexDecompositionDemo2.cpp" and "ConvexDecompositionDemo3.cpp" together in your project!

NOTES

Each time a body comes out from a compound shape, the compound shape local inertia is recalculated. I found this can lead to a better behavior (and in some cases prevent possible crashes too).

Breakable compound shapes can be dynamic or static (in the demo one table is static, two other tables are dynamic and the tower is dynamic: drag them and see).


Attachments:
ConvexDecompositionDemoEx.7z [245.08 KiB]
Downloaded 251 times
Top
 Profile  
 
 Post subject: Re: Breakable convex decomposition demo (with source code)
PostPosted: Thu Dec 24, 2009 12:58 pm 
Offline

Joined: Tue Dec 25, 2007 1:06 pm
Posts: 103
This is just an ugly image of the demo I posted:

Attachment:
ConvexDecompositionEx.JPG
ConvexDecompositionEx.JPG [ 22.91 KiB | Viewed 1055 times ]


Happy Xmas to everybody!


Top
 Profile  
 
 Post subject: Re: Breakable convex decomposition demo (with source code)
PostPosted: Fri Dec 25, 2009 3:38 am 
Offline

Joined: Tue Jul 08, 2008 7:28 am
Posts: 16
:P i was searching how to do this tomorrow....then i you post it today...
you are so great!
:o


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

All times are UTC


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:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group