mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
block.raycast: fix documentation
This commit is contained in:
parent
a48d54aa27
commit
615dd23913
2 changed files with 2 additions and 6 deletions
|
|
@ -115,14 +115,12 @@ Set specified bits.
|
|||
## Raycast
|
||||
|
||||
```lua
|
||||
block.raycast(start: vec3, dir: vec3, max_distance: number, [optional] dest: table) -> {
|
||||
block.raycast(start: vec3, dir: vec3, max_distance: number, [optional] dest: table, [optional] filter: table) -> {
|
||||
block: int, -- block id
|
||||
endpoint: vec3, -- point of the ray hit point
|
||||
iendpoint: vec3, -- position of the block hit by the ray
|
||||
length: number, -- ray length
|
||||
normal: vec3, -- normal vector of the surface hit by the ray
|
||||
[optional] dest: table, -- table where result will be written to instead of function return
|
||||
[optional] filter: table -- list of block names that are "transparent" for ray
|
||||
} or nil
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue