<viz>.gravity

This command sets the gravitational constant

 

<viz>.gravity(
    value    # e.g., 9.8 (meters/sec^2)

)

 

value

The new value for gravity in meter per second squared.


Remarks

Gravity only has affect on the user when collision is ON. Earth gravity is 9.8, which is the default.

Return Value

None

Example

viz.collision(viz.ON)
viz.gravity(1.6) # Set moon gravity

See also

<viz>.collision