Page 1 of 1

Scale Softbody during simulation? [HELP]

Posted: Sat Oct 31, 2015 6:32 am
by johnsonalpha
I have a sphere softbody what im trying to do is change the scale of the softbody during the simulation is there anything i can do to achieve that effect? I tryed setRestLengthScale but that doesnt seem to do anything! Please Help!

Re: Scale Softbody during simulation? [HELP]

Posted: Sat Oct 31, 2015 10:16 pm
by Xcoder79
Have you tried using the scale method for softbody psb->scale(btVector3(1,1,1));
on a mouse click event that way the sphere could be scaled at any time durnig the simulation

Re: Scale Softbody during simulation? [HELP]

Posted: Sun Nov 01, 2015 1:23 am
by johnsonalpha
God i'm so stupid :D Thanks for the help bro :)