Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] Softbody SetMass issues
#1
Hello, when I use SetMass to change mass during game, the softbody get launched in the air so fast it get in NaN coordinates.

My use case is a blob eating, I want to increment the mass of the blob when it eats.

I use SetMass once on instantiation to set initial mass, wich work fine, but once I detect a collision and change the player's blob mass, it get launched in the air.

If I increment mass by some very low value like 0.00001f the blow slowly accelerate upward.

Is there a better way to change mass ?

Thanks
Reply


Messages In This Thread
[Solved] Softbody SetMass issues - by Tomobodo - 01-02-2021, 07:16 PM
RE: Softbody SetMass issues - by josemendez - 01-02-2021, 08:01 PM
RE: Softbody SetMass issues - by Tomobodo - 05-02-2021, 01:47 PM