Open topic with navigation
<viewpoint>.gravity
This command sets the gravitational constant for the viewpoint
<viewpoint>.gravity( |
|
value |
) |
|
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.MainView.collision(viz.ON)
viz.MainView.gravity(1.6) # Set moon gravity
See also