Added a first version of FractureDemo, showing basic fracture and glue of rigid bodies.

It assumes a btCompoundShaps (where the childshapes are the pre-fractured pieces)
The btFractureBody is a class derived from btRigidBody, dealing with the collision impacts and connectivity/propagating the fracture.
Press the F key to toggle between fracture and glue mode
This is preliminary work, can be used as a starting point to implement your own fracture.
This commit is contained in:
erwin.coumans
2011-02-27 09:46:46 +00:00
parent d52f58edd8
commit a522cb98d9
6 changed files with 1484 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ IF (USE_GLUT)
SET(SharedDemoSubdirs
OpenGL AllBulletDemos ConvexDecompositionDemo
CcdPhysicsDemo ConstraintDemo SliderConstraintDemo GenericJointDemo Raytracer
RagdollDemo ForkLiftDemo BasicDemo Box2dDemo BspDemo MovingConcaveDemo VehicleDemo
RagdollDemo ForkLiftDemo BasicDemo FractureDemo Box2dDemo BspDemo MovingConcaveDemo VehicleDemo
UserCollisionAlgorithm CharacterDemo SoftDemo HeightFieldFluidDemo
CollisionInterfaceDemo ConcaveConvexcastDemo SimplexDemo DynamicControlDemo
DoublePrecisionDemo ConcaveDemo CollisionDemo
@@ -40,6 +40,7 @@ ELSE (USE_GLUT)
SUBDIRS(
OpenGL
BasicDemo
FractureDemo
Benchmarks
Box2dDemo
CollisionInterfaceDemo