Tile - YAnimators - Rotate To – Ylands
Jump to navigation
Jump to search
m (YlandsClassyBot moved page Ylands Tile - Rotate object to Ylands:Tile - YAnimators - Rotate To: New Structure) |
No edit summary |
||
Line 1: | Line 1: | ||
[[ | <!--- | ||
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE. | |||
--> | |||
== Rotate To(Object, Rotation, Time, Smoothing) == | |||
[[File:YlandsTile-604.png]] | |||
<pre>static rotateToTime(obj: YEntity | YLogic | YGroup, targetRotation: YVector3, time: number, smoothing: number): void;</pre> | |||
=== 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) == | |||
[[File:YlandsTile-605.png]] | |||
<pre>static rotateToSpeed(obj: YEntity | YLogic | YGroup, targetRotation: YVector3, speed: number, smoothing: number): void;</pre> | |||
=== 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. | |||
---- | ---- | ||
Line 15: | Line 46: | ||
[[Category: Instructions]] | [[Category: Instructions]] | ||
Revision as of 08:51, 8 July 2021
Rotate To(Object, Rotation, Time, Smoothing)
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)
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.