Updating softbody stiffness

wobble
Posts: 2
Joined: Tue Nov 11, 2008 4:28 pm

Updating softbody stiffness

Post by wobble »

Hi!

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; 
But these asignments don't have any effect. It seems that you can only set the material and its members at the creation of the softbody but changing them afterwards has no effect. Is there any way to update the stiffness coefficients of an existing softbody?
julia
Posts: 8
Joined: Fri Mar 19, 2010 9:16 am

Re: Updating softbody stiffness

Post by julia »

Hi.

I got the same problem with updating a softbody. Could you solve the problem?

Julia