mirror of
https://github.com/bulletphysics/bullet3
synced 2025-01-10 17:30:12 +00:00
a8ec916af0
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
36 lines
1.1 KiB
CMake
36 lines
1.1 KiB
CMake
# 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
|
|
)
|
|
|