Skip to content

Motion ​

class in OpalScript

Moves, tweens, springs, bounces, and smooths a Thing transform.

Methods ​

MemberDescription
Motion.MoveToTween the object's position to the destination over the supplied duration in seconds.
Motion.MoveToAsyncAwait this move's completion. Replacement, dragging, cancellation, or removal cancels its task.
Motion.SnapToMove the object immediately and synchronize its motion target.
Motion.ScaleToTween the object's scale over the supplied duration in seconds.
Motion.RotateToTween the object's rotation in degrees over the supplied duration in seconds.
Motion.ShakeApply a temporary motion shake for the supplied duration.
Motion.BounceApply the component's bounce motion.
Motion.CancelTweensCancel active motion tweens.
Motion.ResetHomeReturn to the component's recorded home pose.
Motion.IsMovingWhether the movement tween is active.
Motion.IsAnimatingWhether a motion animation is active.

See also ​