Tile - YEntity - Transform Position – Ylands

From Bohemia Interactive Community
Revision as of 14:27, 24 November 2023 by Lou Montana (talk | contribs) (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Transform Position(Entity, Offset)

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.