An object’s gravity property can be found in its properties panel under physics. If gravity is set to false, then the object will act like it's floating in space. If true, the object will regain gravity.
Parameters
object, boolean
Sets the object’s gravity to the boolean true or false.