For a game project I am currently trying to change the physical properties of a softbody depending on temperature. If the temperature is high, the softbody should look almost liquid, if the temperature is low, it should look rather solid. In order to do that, I tried to calculate an appropriate stiffness value every frame and asign it to the stiffness coefficients of the softbody material:
Code: Select all
softBody->m_materials[0]->m_kAST = stiffness;
softBody->m_materials[0]->m_kLST = stiffness;
softBody->m_materials[0]->m_kVST = stiffness;