Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. GameState
  5. gravityDir

gravityDir

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

Get gravity direction in X,Y,Z

returns a String (text) value

Example:

1
obj.gravityDir()
Tags
Was this article helpful to you? Yes No

How can we help?