Vizard 7 » Command Index » Vizard objects » viewpoint » <viewpoint>.gravity
7.6

<viewpoint>.gravity

This command sets the gravitational constant for the viewpoint

<viewpoint>.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.MainView.collision(viz.ON)
viz.MainView.gravity(1.6) # Set moon gravity

See also

<viewpoint>.collision
<viewpoint>.collisionBuffer
<viewpoint>.stepSize