Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  I want to put an object to sleep
#3
(24-08-2021, 04:44 PM)josemendez Wrote: Hi,

This is a known bug in Unity: setting the velocity of an object will keep it awake, even if the change in velocity is zero. Internally, Obi sets the velocity of all objects involved in the simulation, preventing them from sleeping.

A hacky workaround to this is to modify the UpdateVelocities method in ObiRigidbody.cs, to check if the velocity change is very small and then avoid modifying it:
Was it a Unity bug!
I will refer to your advice.
Thank you very much.
Reply


Messages In This Thread
I want to put an object to sleep - by moyashiking - 20-08-2021, 06:42 AM
RE: I want to put an object to sleep - by moyashiking - 25-08-2021, 12:59 AM