From 25cc16fdb9f8c9d3e4afc7d51a6e09d24273c89c Mon Sep 17 00:00:00 2001 From: MihailRis Date: Wed, 15 Apr 2026 23:38:41 +0300 Subject: [PATCH] update doc/*/3d-text.md --- doc/en/3d-text.md | 8 ++++++++ doc/ru/3d-text.md | 8 ++++++++ 2 files changed, 16 insertions(+) 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) ```