Vizard 7 » Command Index » Vizard modules » viz » <viz:phys>.getGravity
7.7

<viz:phys>.getGravity

Returns the current gravity vector.

<viz:phys>.getGravity()  

Remarks

This command will return the current gravity vector. If setGravity is never called it will return [0.0, -9.81, 0.0]

Return Value

[x,y,z]