Tile - YEntity - Transform Position – Ylands
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
--> | --> | ||
== Transform Position(Entity, Offset) == | == Transform Position(Entity, Offset) == | ||
<pre>transformPosition(offset: YVector3): YVector3;</pre> | <pre>transformPosition(offset: YVector3): YVector3;</pre> |
Revision as of 16:47, 1 December 2022
Transform Position(Entity, Offset)
transformPosition(offset: YVector3): YVector3;
Parameters
offset
Desired offset (vector)
Returns
YVector3
Availability
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.