Vizard 7 » Command Index » Vizard modules » vizact » <vizact>.fall
7.5

<vizact>.fall

Create an action that will animate an object falling to a given height

<vizact>.fall(  
height  
gravity = 9.8  
)  
height
The Y value at which the object will stop falling.
gravity = 9.8
The value for gravity that is pulling the object.

Remarks

After you have created the action you can add it to any object as many times as you want.

Return Value

An action that can be applied to any <node3d> object

Example

#Create an action that will animate an object falling to height 1
fallAction = vizact.fall(1)

object.add(fallAction)