Loading...

Logo
DocumentationBehaviorsPhysicsGet Gravity

Description

This behavior will get the current gravity acting on the scene or on a specific object. Once this behavior is triggered, you can then output the gravity to use with another behavior.

This behavior will trigger an event immediately.

Properties

Triggers Immediately

World

When the world option is selected, the gravity of the scene will be returned.

This is for the global gravity proeprty that is available in the the projects Global Properties.

Object A

Selecting the Object option from the drop down list will allow you to get the gravity for a specific object in your scene.

By default this is the current object selected. You can change this to any other object in your scene.

Outputs

X Gravity

This is the current gravitational force acting on an objects X axis in meters per second.
Gravity Y

This is the current gravitational force acting on an objects Y axis in meters per second.

Object ID

This outputs the Object ID.

Examples

If you need to know the gravity of your object so you can then use it in another behavior for calculations.

Set Gravity

GetGravityReference.gif