05-02-2021, 01:05 PM
(This post was last modified: 05-02-2021, 07:58 PM by josemendez.)
Turns out this is an omission/bug in Unity.
Under the hood, assigning to rigidbody.velocity always calls rigidbody.setVelocity passing autoWake=true in PhysX. This causes the rigidbody to wake up no matter what velocity is being assigned, even if it's below the sleeping threshold.
They will consider exposing this parameter in the future, so that autoWake can be disabled when setting velocities. See: https://forum.unity.com/threads/rigidbod...o.1052369/
Under the hood, assigning to rigidbody.velocity always calls rigidbody.setVelocity passing autoWake=true in PhysX. This causes the rigidbody to wake up no matter what velocity is being assigned, even if it's below the sleeping threshold.
They will consider exposing this parameter in the future, so that autoWake can be disabled when setting velocities. See: https://forum.unity.com/threads/rigidbod...o.1052369/