mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
update doc/*/scripting/ecs.md
This commit is contained in:
parent
1e2baf9d5e
commit
b768730067
2 changed files with 10 additions and 0 deletions
|
|
@ -36,6 +36,11 @@ entity:set_enabled(name: str, enable: bool)
|
|||
-- At components initialization -1 is also returned,
|
||||
-- since the binding occurs after initialization.
|
||||
entity:get_player() -> int or nil
|
||||
|
||||
-- Checks the 'selectable' property of an entity (raycast opacity)
|
||||
body:is_selectable() -> bool
|
||||
-- Sets the value of the 'selectable' property of an entity
|
||||
body:set_selectable(flag: bool)
|
||||
```
|
||||
|
||||
## Custom Components
|
||||
|
|
|
|||
|
|
@ -134,6 +134,11 @@ body:set_elasticity(elasticity: number)
|
|||
|
||||
-- Возвращает скорость поверхности, на которой находится тело, либо {0,0,0}
|
||||
body:get_ground_vel() -> vec3
|
||||
|
||||
-- Проверяет свойство 'selectable' у сущности (непрозрачность для лучей)
|
||||
body:is_selectable() -> bool
|
||||
-- Устанавливает значение свойство 'selectable' у сущности
|
||||
body:set_selectable(flag: bool)
|
||||
```
|
||||
|
||||
### Skeleton
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue