WakeUp doubt

It seems that WakeUp doesnt inmediatly work, you have to wait to the next FixedUpdate for the rigidbody to return false in IsSleeping.

mObject.rigidbody.WakeUp();

if (mObject.rigidbody.IsSleeping())
Debug.Log(“Nooooo”); // It actually logs this

Is this as intended? I am asking this because I have a terrible bug that I have tracked down here, and I want to confirm.

More concretely, my problem is that in the Update method I am asking if the gameObject is sleeping… even if I have waken it up, it will return true until the next FixedUpdate.

Have you tried LateUpdate() ?

[offtopic]
After seeing your name and thread subject I thought I was tabbed onto the ron paul forum :stuck_out_tongue:

I think this may very well be the case. Wakup is only applied when the next physics simulation step is taken.