Tile - YVector3 - Slerp Rotation – 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}}}}")
 
Line 38: Line 38:
----
----
{{Navbox/Ylands}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}


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

Latest revision as of 15:35, 24 November 2023

Slerp Rotation(A, B, T)

YlandsTile-1001.png

static slerpRotation(rotationA: YVector3, rotationB: YVector3, t: number): YVector3;

Parameters

rotationA

Rotation A

rotationB

Rotation B

t

Returns

YVector3

Availability

Client, Server, Custom Controller

Description

Spherical interpolation between two rotation vectors by the interpolant.

Notes

  • Spherical interpolation is more precise than linear interpolation, but more performance demanding.