update doc/*/3d-text.md

This commit is contained in:
MihailRis 2026-04-15 23:38:41 +03:00
parent 6426fff26e
commit 25cc16fdb9
2 changed files with 16 additions and 0 deletions

View file

@ -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)
```

View file

@ -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)
```