Merge branch 'main' into animation

This commit is contained in:
MihailRis 2026-08-23 12:39:46 +03:00
commit ab3c1e1b0c
14 changed files with 56 additions and 15 deletions

View file

@ -67,9 +67,10 @@ If true - the entity blocks the placement of a block that intersects with the en
Default value: *true*.
### *selectable*
### *selectable* (raycast opacity)
If set to `false` the cursor will ignore the entity, passing the ray.
Applies to all uses of raycast without the include_non_selectable flag.
### *sensors*

View file

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

View file

@ -67,9 +67,10 @@
Значение по-умолчанию: *true*.
### Выделяемость - *selectable*
### Непрозрачность для лучей - *selectable*
При значении в `false` курсор будет игнорировать cущность, пропуская луч далее.
Распространяется на все использования raycast без флага include_non_selectable.
### Список сенсоров - *sensors*

View file

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