diff --git a/doc/en/3d-text.md b/doc/en/3d-text.md index 6e957a37e..b0c9fd1f6 100644 --- a/doc/en/3d-text.md +++ b/doc/en/3d-text.md @@ -79,6 +79,14 @@ gfx.text3d.set_rotation(id: int, rotation: mat4) Sets the text rotation (Sets the rotated vectors X,Y). +```lua +gfx.text3d.get_entity(id: int) -> int +gfx.text3d.set_entity(id: int, entity: int) +``` + +Getter and setter for the entity to which the 3D text position is bound. +The position set via `gfx.text3d.set_pos` is then relative to the entity's position. + ```lua gfx.text3d.update_settings(id: int, preset: table) ``` diff --git a/doc/ru/3d-text.md b/doc/ru/3d-text.md index a53075ca2..c2d209434 100644 --- a/doc/ru/3d-text.md +++ b/doc/ru/3d-text.md @@ -79,6 +79,14 @@ gfx.text3d.set_rotation(id: int, rotation: mat4) Устанавливает вращение текста (Устанавливает повернутые вектора X,Y). +```lua +gfx.text3d.get_entity(id: int) -> int +gfx.text3d.set_entity(id: int, entity: int) +``` + +Геттер и сеттер сущности, к позиции которой привязан 3D текст. +Позиция, устанавливаемая через `gfx.text3d.set_pos`, в таком случае, относительна позиции сущности. + ```lua gfx.text3d.update_settings(id: int, preset: table) ```