mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
update doc/*/3d-text.md
This commit is contained in:
parent
6426fff26e
commit
25cc16fdb9
2 changed files with 16 additions and 0 deletions
|
|
@ -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)
|
||||
```
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue