Tile - YAnimators - Move To – Ylands

From Bohemia Interactive Community
Revision as of 15:24, 24 November 2023 by Lou Montana (talk | contribs) (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Move To(Object, Position, Time, Smoothing)

YlandsTile-598.png

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

Server

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)

YlandsTile-599.png

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

Server

Description

Moves the animated object to the target position at specified speed.

Notes

  • Smoothing will smooth the start and end of the movement.