change Physics Manager - Gravity from within game?

Hey guys,

Right now I have a button that reverses gravity when you click it, sadly none of my rigidbody boxes are awake and therefore don’t begin to move up until I prod them. I realise that keeping a room full of boxes will be taxing on the processor, so what is the best solution for waking them up when gravity changes?

Best,
Chowder

rigidbody.WakeUP

theres also Sleep

so you can sleep or wake up rigid bodies at will with that,

check the rigidbody documentation for the full list of functions

theres is also a isSleep to find out if a rigidbody needs to be put sleep or not

hope this helps