BGE Python: "waking" physics objects?

Sorry about this absolutely nooby question, but I’m having trouble with it, so here we go. I’m creating a space station map in which artificial gravity can be shifted on and off… That all works well and good, but the trouble is some objects fall asleep while floating in 0-gravity, and thus don’t fall when gravity’s reinstated.

SO, my question: is there a way to effectively force “awake” a physics object that has fallen asleep? Trouble is I don’t want to disable sleeping completely overall-- I just want to wake the things up.

Thanks! Any help much appreciated :smiley:

Just apply a linear velocity of 0:

obj.setLinearVelocity([0]*3)

That will force the object to wake up.

Aye, fair enough. Thank you, sir :smiley: