Motion
class in OpalScript
Moves, tweens, springs, bounces, and smooths a Thing transform.
Methods
| Member | Description |
|---|---|
| Motion.MoveTo | Tween the object's position to the destination over the supplied duration in seconds. |
| Motion.MoveToAsync | Await this move's completion. Replacement, dragging, cancellation, or removal cancels its task. |
| Motion.SnapTo | Move the object immediately and synchronize its motion target. |
| Motion.ScaleTo | Tween the object's scale over the supplied duration in seconds. |
| Motion.RotateTo | Tween the object's rotation in degrees over the supplied duration in seconds. |
| Motion.Shake | Apply a temporary motion shake for the supplied duration. |
| Motion.Bounce | Apply the component's bounce motion. |
| Motion.CancelTweens | Cancel active motion tweens. |
| Motion.ResetHome | Return to the component's recorded home pose. |
| Motion.IsMoving | Whether the movement tween is active. |
| Motion.IsAnimating | Whether a motion animation is active. |