Tile - YEntity - Transform Position – Ylands
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...") |
Lou Montana (talk | contribs) m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}") |
||
(2 intermediate revisions by one other user not shown) | |||
Line 3: | Line 3: | ||
--> | --> | ||
== Transform Position(Entity, Offset) == | == Transform Position(Entity, Offset) == | ||
<pre>transformPosition(offset: YVector3): YVector3;</pre> | <pre>transformPosition(offset: YVector3): YVector3;</pre> | ||
Line 10: | Line 8: | ||
==== offset ==== | ==== offset ==== | ||
Desired offset (vector) | |||
=== Returns === | === Returns === | ||
'''YVector3''' | '''YVector3''' | ||
=== Availability === | |||
[[Ylands:Tile Availability - Client|Client]], [[Ylands:Tile Availability - Server|Server]] | |||
=== Description === | === Description === | ||
Line 27: | Line 31: | ||
---- | ---- | ||
{{Navbox/Ylands}} | {{Navbox/Ylands}} | ||
{{DEFAULTSORT:{{#sub:{{PAGENAME}}| | {{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}} | ||
[[Category: Instructions]] | [[Category: Instructions]] |
Latest revision as of 14:27, 24 November 2023
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.