Tile - YVector3 - Lerp Rotation – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "<!--- THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE. --> == Lerp Rotation(A, B, T) == File:YlandsTile-10...")
 
No edit summary
Line 24: Line 24:


'''YVector3'''
'''YVector3'''
=== Availability ===
[[Ylands:Tile Availability - Client|Client]], [[Ylands:Tile Availability - Server|Server]], [[Ylands:Tile Availability - Custom Controller|Custom Controller]]


=== Description ===
=== Description ===

Revision as of 11:17, 12 November 2021

Lerp Rotation(A, B, T)

YlandsTile-1000.png

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

Parameters

rotationA

Rotation A

rotationB

Rotation B

t

Interpolant (0-1)

Returns

YVector3

Availability

Client, Server, Custom Controller

Description

Linear interpolation between two rotation vectors by the interpolant.

Notes

  • Linear interpolation is less precise than spherical interpolation, but more performance effective.