Tile - YEntity - Transform Position – 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 Position(Entity, Offset) == File:Y...")
 
No edit summary
Line 10: Line 10:


==== 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 12:16, 12 November 2021

Transform Position(Entity, Offset)

YlandsTile-143.png

transformPosition(offset: YVector3): YVector3;

Parameters

offset

Desired offset (vector)

Returns

YVector3

Availability

Client, Server

Description

Returns new position which is offset relative to target position and orientation (local space).

Notes

  • Example: offset "0 0 1" will return position one meter in front of target entity.
  • Z (blue) axis is regarded as forward direction.