How to turn gravity off?

Hi,

I would like to click a toggle button on the GUI that turns gravity on and off. So, if i’m walking around in first person and I click this button i should be able to ‘float’ around, then when I switch gravity back on I would come back to earth with a bump!

Just starting to learn about UnityGUI but i’m not much of a coder so any help for a dummy would be well received!

Thanks for your replies :slight_smile:

Here’s how to change gravity:

The GUI for it is also pretty simple. Do a search for changing a value using a button or toggle. And here’s some more references:

If you have further GUI questions you should ask the in the UnityGUI section.