Added Height Field Fluid Demo to Bullet. All code stored in the Demos/HeightFieldFluidDemo directory for now.
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
This commit is contained in:
35
Demos/HeightFieldFluidDemo/CMakeLists.txt
Normal file
35
Demos/HeightFieldFluidDemo/CMakeLists.txt
Normal file
@@ -0,0 +1,35 @@
|
||||
# This is basically the overall name of the project in Visual Studio this is the name of the Solution File
|
||||
|
||||
|
||||
# For every executable you have with a main method you should have an add_executable line below.
|
||||
# For every add executable line you should list every .cpp and .h file you have associated with that executable.
|
||||
|
||||
|
||||
|
||||
|
||||
# You shouldn't have to modify anything below this line
|
||||
########################################################
|
||||
|
||||
|
||||
|
||||
INCLUDE_DIRECTORIES(
|
||||
${BULLET_PHYSICS_SOURCE_DIR}/src ${BULLET_PHYSICS_SOURCE_DIR}/Demos/OpenGL }
|
||||
)
|
||||
|
||||
LINK_LIBRARIES(
|
||||
LibOpenGLSupport LibBulletDynamics LibBulletCollision LibLinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY}
|
||||
)
|
||||
|
||||
ADD_EXECUTABLE(HfFluidDemo
|
||||
HfFluidDemo_GL_ShapeDrawer.cpp
|
||||
BulletHfFluid/btHfFluid.cpp
|
||||
BulletHfFluid/btHfFluidBuoyantConvexShape.cpp
|
||||
BulletHfFluid/btHfFluidBuoyantShapeCollisionAlgorithm.cpp
|
||||
BulletHfFluid/btHfFluidCollisionShape.cpp
|
||||
BulletHfFluid/btHfFluidRigidCollisionAlgorithm.cpp
|
||||
BulletHfFluid/btHfFluidRigidCollisionConfiguration.cpp
|
||||
BulletHfFluid/btHfFluidRigidDynamicsWorld.cpp
|
||||
main.cpp
|
||||
HfFluidDemo.cpp
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user