mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 05:51:51 +00:00
Merge branch 'main' into animation
This commit is contained in:
commit
ab3c1e1b0c
14 changed files with 56 additions and 15 deletions
|
|
@ -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*
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue