mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix docs
This commit is contained in:
parent
498b4c3694
commit
8a05f5cf63
2 changed files with 5 additions and 7 deletions
|
|
@ -483,13 +483,12 @@ block.set_user_bits(x: int, y: int, z: int, offset: int, bits: int, value: int)
|
|||
Set specified bits.
|
||||
|
||||
```lua
|
||||
block.raycast(start: vec3, dir: vec3, max_distance: number) -> {
|
||||
block.raycast(start: vec3, dir: vec3, max_distance: number, [optional] dest: 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 -- destination table
|
||||
normal: vec3 -- normal vector of the surface hit by the ray
|
||||
} or nil
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue