<vizact>.moveTo

Create an action that will animate an object moving to the given position

 

<vizact>.moveTo(
    pos    
    begin = None    # Keyword argument
    speed = None    # Keyword argument
    time = None    # Keyword argument

)

 

pos

[x,y,z] position to move to


begin = None

Specifies the beginning value to move from. If None, the objects current position will be used.


speed = None

The speed to move to in units/second


time = None

The number of seconds to move


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

# Animate an object going to [0,0,20] at 5 meters per second.
action1 = vizact.moveTo([0,0,20],speed=5)

# Animate an object going to [0,0,20] for 5 seconds.
action2 = vizact.moveTo([0,0,20],time=5)