Tile - YLogic - Transform Rotation – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
[[Image:Ylands_Tile_-_Transform_position.png]]
<!---
*Returns new '''position''' which is '''offset''' relative to target position and orientation (entity model space).
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) ==


[[File:YlandsTile-508.png]]


[[Image:Ylands_Tile_-_Transform_rotation.png]]
<pre>transformRotation(offset: YVector3): YVector3;</pre>
*Returns new '''rotation''' which is '''offset''' to target entity rotation (entity model space).
=== Parameters ===
*Offset is set in '''angle''' format of '''0-360 deg'''.
 
*Example: offset "0 180 0" will return backwards orientation from target entity.
==== offset ====
 
=== Returns ===
 
'''YVector3'''
 
=== Description ===
 
Returns new '''rotation''' which is '''offset''' to target entity rotation (local space).




Line 15: Line 25:


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

Revision as of 09:52, 8 July 2021