Tile - YAnimators - Rotate To – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
 
(One intermediate revision by one other user not shown)
Line 10: Line 10:


==== obj ====
==== obj ====
Target object


==== targetRotation ====
==== targetRotation ====
Target rotation (vector)


==== time ====
==== time ====
Rotation movement duration (seconds)


==== smoothing ====
==== smoothing ====
Rotation movement smoothing (0-1)
=== Availability ===
[[Ylands:Tile Availability - Server|Server]]


=== Description ===
=== 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.
Rotates the animated '''object''' to the target '''rotation''' in specified '''time'''.
 
=== Notes ===
 
* '''Smoothing''' will smooth the start and end of the movement.


== Rotate To(Object, Rotation, Speed, Smoothing) ==
== Rotate To(Object, Rotation, Speed, Smoothing) ==
Line 29: Line 45:


==== obj ====
==== obj ====
Target object


==== targetRotation ====
==== targetRotation ====
Target rotation (vector)


==== speed ====
==== speed ====
Rotation movement speed (deg/s)


==== smoothing ====
==== smoothing ====
Movement smoothing (0-1)
=== Availability ===
[[Ylands:Tile Availability - Server|Server]]


=== Description ===
=== 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.
Rotates the animated '''object''' to the target '''rotation''' at specified '''speed'''.
 
=== Notes ===
 
* '''Smoothing''' will smooth the start and end of the movement.




----
----
{{Navbox/Ylands}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}


[[Category: Instructions]]
[[Category: Instructions]]

Latest revision as of 14:24, 24 November 2023

Rotate To(Object, Rotation, Time, Smoothing)

YlandsTile-604.png

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

Parameters

obj

Target object

targetRotation

Target rotation (vector)

time

Rotation movement duration (seconds)

smoothing

Rotation movement smoothing (0-1)

Availability

Server

Description

Rotates the animated object to the target rotation in specified time.

Notes

  • Smoothing will smooth the start and 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

Target object

targetRotation

Target rotation (vector)

speed

Rotation movement speed (deg/s)

smoothing

Movement smoothing (0-1)

Availability

Server

Description

Rotates the animated object to the target rotation at specified speed.

Notes

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