Skip to main content

Motion

note

Motion Blocks are available for all object types except Scene.

Block NameBlockDescription
Move

Move the object's position for a given distance within a fixed duration.

  • Distance: 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 moves 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

Move the object to a target position 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 rotate 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.

  • Size: 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 the target object.

  • Target: Vector3 value specifying the rotation value.
  • Lock X: Boolean value specifying whether lock the X-axis rotation.
  • Lock Y: Boolean value specifying whether lock the Y-axis rotation.
  • Lock Z: Boolean value specifying whether lock the Z-axis rotation.
  • Time: Number value specifying the rotation time to reach the target value.

    note

    If Time is 0, the object rotates instantly

Set Interactable

Set the interactivity of the object.

  • Enable: Boolean value specifying whether the object is interactable.
Set Grabbable

Set the grab of the object.

  • Enable: Boolean value specifying whether the object is grabble.