Vizard 7 » Command Index » Vizard modules » vizact » <vizact>.move
7.6

<vizact>.move

Create an action that will animate an object moving along its local coordinate system

<vizact>.move(  
[x,y,z]  
moveTime  
)  
[x,y,z]
The vector to move the object along, relative to its local coordinate system. For example, a value of [0,0,2] represents an object moving forward at 2 meters/second.
moveTime
The amount of time to move the object for

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

#Move an object forward at 2 m/sec for 5 seconds
moveForward = vizact.move(0,0,2,5)

object.add(moveForward)