Skip to main content
Version: 4.0.0

Motion

note

Motion Blocks are available for all object types except Scene.

Block NameBlockDescription
Move

Move the object's position by a given direction within a fixed duration.

  • Direction: Vector3 value specifying the displacement of the object's x (right), y (up), and z (forward) coordinate in meter.
  • Time: Number value specifying the time of movement in second.

    note

    If Time is 0, the object moves instantly.

  • Relative: Boolean value specifying whether the position is relative to the object's local coordinates or not.
Rotate

Rotate the object by a specified angle within a fixed duration.

  • Angle: Vector3 value specifying the required amount of rotation with respect to the object's xyz axis in degree.
  • Time: Number value specifying the time of rotation in second.

    note

    If Time is 0, the object rotates instantly.

  • Relative: Boolean value specifying whether the rotation is relative to the object's local coordinates or not.
Scale

Scale the object with a specified scaling for a specified duration.

  • Size: Vector3 value specifying the scaling value with respect to the object's xyz axis.
  • Time: Number value specifying the time of scaling in second.
Set Position

Move the object to a target position within a specified time.

  • Target: Vector3 value specifying the position coordinate in the scene.
  • Time: Number value specifying the allowed travel time to reach the target position.

    note

    If Time is 0, the object moves instantly.

  • Relative: Boolean value specifying whether the position is relative to the object's local coordinates or not.
Set Rotation

Rotate the object to a target rotation within a specified time.

  • Target: Vector3 value specifying the rotation value.
  • Time: Number value specifying the allowed travel time to reach the target rotation.

    note

    If Time is 0, the object rotates instantly.

  • Relative: Boolean value specifying whether the rotation is relative to the object's local coordinates or not.
Set Scale

Scale the object to a target scale within a specified time.

  • Target: Vector3 value specifying the scale value.
  • Time: Number value specifying the allowed travel time to reach the target scale.

    note

    If Time is 0, the object scales instantly.

Look At

Rotate the object towards a target position.

  • Target: Vector3 value specifying the position to look at.
  • Lock X: Boolean value specifying whether the X-axis rotation is locked.
  • Lock Y: Boolean value specifying whether the Y-axis rotation is locked.
  • Lock Z: Boolean value specifying whether the Z-axis rotation is locked.
  • Time: Number value specifying the rotation time to reach the target value.

    note

    If Time is 0, the object rotates instantly.