Tile - YAnimators - Move To – Ylands
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
==== obj ==== | ==== obj ==== | ||
Target object | |||
==== targetPosition ==== | ==== targetPosition ==== | ||
Target position | |||
==== time ==== | ==== time ==== | ||
Movement duration (seconds) | |||
==== smoothing ==== | ==== smoothing ==== | ||
Movement smoothing (0-1) | |||
=== Availability === | |||
[[Ylands:Tile Availability - Server|Server]] | |||
=== Description === | === Description === | ||
Moves the animated '''object''' to the target '''position''' in | Moves the animated '''object''' to the target '''position''' in specified '''time'''. | ||
=== Notes === | |||
* '''Smoothing''' will smooth the start and end of the movement. | |||
== Move To(Object, Position, Speed, Smoothing) == | == Move To(Object, Position, Speed, Smoothing) == | ||
Line 29: | Line 45: | ||
==== obj ==== | ==== obj ==== | ||
Target object | |||
==== targetPosition ==== | ==== targetPosition ==== | ||
Target position | |||
==== speed ==== | ==== speed ==== | ||
Movement speed (m/s) | |||
==== smoothing ==== | ==== smoothing ==== | ||
Movement smoothing (0-1) | |||
=== Availability === | |||
[[Ylands:Tile Availability - Server|Server]] | |||
=== Description === | === Description === | ||
Moves the animated '''object''' to the target '''position''' | Moves the animated '''object''' to the target '''position''' at specified '''speed'''. | ||
=== Notes === | |||
* '''Smoothing''' will smooth the start and end of the movement. | |||
Revision as of 11:15, 12 November 2021
Move To(Object, Position, Time, Smoothing)
static moveToTime(obj: YEntity | YLogic | YGroup, targetPosition: YVector3, time: number, smoothing: number): void;
Parameters
obj
Target object
targetPosition
Target position
time
Movement duration (seconds)
smoothing
Movement smoothing (0-1)
Availability
Description
Moves the animated object to the target position in specified time.
Notes
- Smoothing will smooth the start and end of the movement.
Move To(Object, Position, Speed, Smoothing)
static moveToSpeed(obj: YEntity | YLogic | YGroup, targetPosition: YVector3, speed: number, smoothing: number): void;
Parameters
obj
Target object
targetPosition
Target position
speed
Movement speed (m/s)
smoothing
Movement smoothing (0-1)
Availability
Description
Moves the animated object to the target position at specified speed.
Notes
- Smoothing will smooth the start and end of the movement.