Tile - YLogic - Transform 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}}}}")
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Image:Ylands_Tile_-_Transform_position.png]]
<!---
*Returns new '''position''' which is '''offset''' relative to target position and orientation.
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE.
*Example: offset "1 0 0" will return position one meter in front of target entity.
-->
== Transform Rotation(Logic, Offset) ==


<pre>transformRotation(offset: YVector3): YVector3;</pre>
=== Parameters ===


[[Image:Ylands_Tile_-_Transform_rotation.png]]
==== offset ====
*Returns new '''rotation''' which is '''offset''' to target entity rotation.
 
*Offset is set in '''angle''' format of '''0-360 deg'''.
Rotation offset (vector)
*Example: offset "0 180 0" will return backwards orientation from target entity.
 
=== Returns ===
 
'''YVector3'''
 
=== Availability ===
 
[[Ylands:Tile Availability - Server|Server]]
 
=== Description ===
 
Returns new '''rotation''' which is '''offset''' to target entity rotation (local space).




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


[[Category: Ylands 0.10]]
[[Category: Instructions]]
[[Category: Instructions]]

Latest revision as of 14:27, 24 November 2023