Get 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

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.
Gravity Y

This is the current gravitational force acting on an objects Y axis.

 

Examples 

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

 

Related

 

Set Gravity 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk