Tile - YAnimators - Move To – Ylands

From Bohemia Interactive Community
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

targetPosition

time

smoothing

Description

Moves the animated object to the target position in the specified time, using the smoothing value to smooth the beginning and the 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

targetPosition

speed

smoothing

Description

Moves the animated object to the target position with the specified speed, using the smoothing value to smooth the beginning and the end of the movement.