Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to reset softbody?
#1
Hi, 

When I change the shape matching constraints at runtime, the softbody bounces too much. How can I prevent this? 
Is there a way to reset particle velocities?

Thanks.
Reply
#2
(14-10-2020, 12:22 PM)relevantname Wrote: Hi, 

When I change the shape matching constraints at runtime, the softbody bounces too much. How can I prevent this? 
Is there a way to reset particle velocities?

Thanks.

Hi,

Bouncing is not a parameter that you can explicitly set, it depends on how much the softbody is compressed on collision (as that stores potential energy). I'd need to get more details on what exactly you're modifying at runtime to be able to help. For instance, if your deformation resistance is initially very low and then you crank it up, the softbody will "bounce" because of the energy gained when recovering its original shape.

You can set particle velocities to any value you want using the particle API:
http://obi.virtualmethodstudio.com/tutor...icles.html
Reply