Meta accounts are here: you can create a Meta account to log into VR devices. Learn more


Enables or disables gravity on an object.

Appearance in Composition Pane

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.

object, boolean
Sets the object’s gravity to the boolean true or false.


SET STIMULATED precedes this tutorial

Example 1: Disable gravity with an event

When object is released by player we set gravity to false. Imagine if this script was attached to an object released in a zero-gravity environment.

Next Up