add material type selection for choosing material presets
actual implemented material types are: - glass - wood - ice - rubber (interestingly results in negative compression values o.o) - undefined (is automatically set, if preset values are changed) main.cpp uses glass as first chosen material. you can choose another material presets via the dropdown menu. this will adjust the values for elasticity and compression. elasticity and compression are given in GPa, thus values will be multiplied with 1E9 when the material is being recalculated. update_grid_forces does no longer calculate all physics values from E and K. the lame constants are calculated in the material itself. so, the physics structure does only contain time parameters and the lame constants, else the other values would be redundant.
parent
fb3e188d
No related branches found
No related tags found
Showing
- projects/wobble_bobble/CMakeLists.txt 2 additions, 1 deletionprojects/wobble_bobble/CMakeLists.txt
- projects/wobble_bobble/shaders/update_grid_forces.comp 2 additions, 18 deletionsprojects/wobble_bobble/shaders/update_grid_forces.comp
- projects/wobble_bobble/src/Material.hpp 76 additions, 0 deletionsprojects/wobble_bobble/src/Material.hpp
- projects/wobble_bobble/src/main.cpp 35 additions, 28 deletionsprojects/wobble_bobble/src/main.cpp
projects/wobble_bobble/src/Material.hpp
0 → 100644
Please register or sign in to comment