Please see HfFluidDemo.cpp for examples of how to use the height field fluid along with buoyant collision shapes. The implementation is still lacking in my ways: 1) Need to complete more collision algorithms for buoyant collision shapes 2) Support compound buoyant shapes 3) The buoyancy model isn't that great 4) Fluid volume can be lost over time
13 lines
755 B
CMake
13 lines
755 B
CMake
if (CMAKE_SIZEOF_VOID_P MATCHES "8")
|
|
SUBDIRS( OpenGL AllBulletDemos ConvexDecompositionDemo Benchmarks HelloWorld
|
|
CcdPhysicsDemo ConstraintDemo SliderConstraintDemo GenericJointDemo
|
|
RagdollDemo ForkLiftDemo BasicDemo BspDemo MovingConcaveDemo VehicleDemo
|
|
ColladaDemo UserCollisionAlgorithm CharacterDemo SoftDemo TerrainDemo HeightFieldFluidDemo)
|
|
else (CMAKE_SIZEOF_VOID_P MATCHES "8")
|
|
SUBDIRS( OpenGL AllBulletDemos ConvexDecompositionDemo Benchmarks HelloWorld
|
|
MultiThreadedDemo CcdPhysicsDemo ConstraintDemo SliderConstraintDemo
|
|
GenericJointDemo RagdollDemo ForkLiftDemo BasicDemo BspDemo MovingConcaveDemo
|
|
VehicleDemo ColladaDemo UserCollisionAlgorithm CharacterDemo SoftDemo
|
|
TerrainDemo HeightFieldFluidDemo)
|
|
endif (CMAKE_SIZEOF_VOID_P MATCHES "8")
|