The Move Command

Usage

move x y z [loop OR noloop] [sync OR nosync] [reset OR noreset] [time=time] [wait=wait] [name=name] [smooth]

Description

The move command causes an object to move smoothly from one location to another and then back again.

X, Y, Z

The x, y, and z arguments are all required and specify the distance to move in the x, y, and z directions, in meters.

Loop

The loop and noloop flags specify whether or not the object stops after returning to its original position, or moves repeatedly back and forth between its starting and ending positions. The default is noloop.

Sync / Nosync

The sync and nosync flags specify whether or not a looping mover is synchronized to the universe clock. This is useful if several moving objects need to be synchronized with each other, or a very slow moving object needs to be seen in the same position by all users. Since this flag is only meaningful for looping movers, if sync is specified then loop is also assumed. The default is nosync.

Reset / Noreset

The reset and noreset flags (new in 3.3) specify whether or not a mover returns immediately to its starting position at the end of its move. The default is noreset.

Note: the reset and noreset options are new in Active Worlds 3.3 and require version 3.3 or later in order to function.

Time

The optional time argument specifies how long the object takes to move from start to finish, and from finish to start. The default is 1 second. Fractional seconds (e.g. "0.2") can be used.

Wait

The optional wait argument specifies how long a looping mover waits at either end of its journey, before moving back to the other location. The default is 0 seconds. Fractional seconds (e.g. "0.2") can be used.

Smooth

Normally objects will move at a fixed speed. Sometimes it may be desireable to have the object accelerate and decelerate.

The smooth option will cause the object to accelerate as it begins moving, and decelerate as it nears the point where it will stop moving. If you set time=3, the object will still move for exactly 3 seconds and will still end up in the excact same position, but its speed while moving will change to make the movement less "jerky".

Name

As with most other commands, you may choose to specify the name of another object to apply the move action to by using the optional name parameter.

Note that move is a special command and as such may not be available for use in all worlds.

Examples

create move -1 0 0 loop time=5 wait=3

This creates an object that moves 1 meter to the east in 5 seconds, waits there 3 seconds, returns to its original position, and then repeats the cycle.

create move 0 50 0 loop time=10 reset

This creates an object that moves 50 meters straight up in 10 seconds. At the end of the move, it immediately returns to its original position and repeats the cycle.