Tile - YEntity - Transform 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. --> == Transform Rotation(Entity, Offset) == File:Y...")
 
No edit summary
(One intermediate revision by the same user not shown)
Line 3: Line 3:
-->
-->
== Transform Rotation(Entity, Offset) ==
== Transform Rotation(Entity, Offset) ==
[[File:YlandsTile-144.png]]


<pre>transformRotation(offset: YVector3): YVector3;</pre>
<pre>transformRotation(offset: YVector3): YVector3;</pre>
Line 10: Line 8:


==== offset ====
==== offset ====
Desired offset (vector)


=== Returns ===
=== Returns ===


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


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

Revision as of 17:47, 1 December 2022

Transform Rotation(Entity, Offset)

transformRotation(offset: YVector3): YVector3;

Parameters

offset

Desired offset (vector)

Returns

YVector3

Availability

Client, Server

Description

Returns new rotation which is offset to target entity rotation (local space).

Notes

  • Example: offset "0 180 0" will return backwards orientation from target entity.
  • Offset is set in angle format of 0-360 deg.