mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
update doc/*/scripting/builtins/libentities.md, libblock.md
This commit is contained in:
parent
39a4236553
commit
3bd297f562
4 changed files with 10 additions and 2 deletions
|
|
@ -159,6 +159,8 @@ The function returns a table with the results or nil if the ray does not hit any
|
|||
|
||||
The result will use the destination table instead of creating a new one if the optional argument specified.
|
||||
|
||||
Use `world.raycast(...)` for more detailed configuration.
|
||||
|
||||
## Model and physics
|
||||
|
||||
```lua
|
||||
|
|
|
|||
|
|
@ -71,3 +71,5 @@ entities.raycast(start: vec3, dir: vec3, max_distance: number, ignore: int, [opt
|
|||
The function is an extended version of [block.raycast](libblock.md#raycast). Returns a table with the results if the ray touches a block or entity.
|
||||
|
||||
Accordingly, this will affect the presence of the *entity* and *block* fields.
|
||||
|
||||
Use `world.raycast(...)` for more detailed configuration.
|
||||
|
|
|
|||
|
|
@ -115,6 +115,8 @@ block.raycast(start: vec3, dir: vec3, max_distance: number, [опциональ
|
|||
|
||||
Для результата будет использоваться целевая (dest) таблица вместо создания новой, если указан опциональный аргумент.
|
||||
|
||||
Для более тонкой настройки используйте `world.raycast(...)`.
|
||||
|
||||
## Вращение
|
||||
|
||||
```lua
|
||||
|
|
@ -209,4 +211,4 @@ block.get_field(
|
|||
name: string,
|
||||
[опционально] index: int = 0
|
||||
) -> any | nil
|
||||
```
|
||||
```
|
||||
|
|
|
|||
|
|
@ -69,4 +69,6 @@ entities.raycast(start: vec3, dir: vec3, max_distance: number, ignore: int, [opt
|
|||
|
||||
Функция является расширенным вариантом [block.raycast](libblock.md#raycast). Возвращает таблицу с результатами если луч касается блока, либо сущности.
|
||||
|
||||
Соответственно это повлияет на наличие полей *entity* и *block*.
|
||||
Соответственно это повлияет на наличие полей *entity* и *block*.
|
||||
|
||||
Для более тонкой настройки используйте `world.raycast(...)`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue