Tile - YAnimators - Rotate To – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search

Rotate To(Object, Rotation, Time, Smoothing)

YlandsTile-604.png

static rotateToTime(obj: YEntity | YLogic | YGroup, targetRotation: YVector3, time: number, smoothing: number): void;

Parameters

obj

targetRotation

time

smoothing

Description

Rotates the animated object to the target rotation in the specified time, using the smoothing value to smooth the beginning and the end of the movement.

Rotate To(Object, Rotation, Speed, Smoothing)

YlandsTile-605.png

static rotateToSpeed(obj: YEntity | YLogic | YGroup, targetRotation: YVector3, speed: number, smoothing: number): void;

Parameters

obj

targetRotation

speed

smoothing

Description

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