Vizard 8 » Command Index » Vizard modules » viz » <viz:phys>.getGravity
8.0

<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]