mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
update doc/*/block-properties.md
This commit is contained in:
parent
423685139f
commit
fdd8d865d2
2 changed files with 8 additions and 8 deletions
|
|
@ -192,12 +192,12 @@ An array of 6 numbers describing an offset an size of a block hitbox.
|
|||
The numbers are specified in the range [0.0, 1.0] - i.e. within the block (in the case of an extended block, the hitbox can be larger than one, but must not go beyond the "size" property).
|
||||
|
||||
Array *\[0.25, 0.0, 0.5, 0.75, 0.4, 0.3\]* describes hitbox width:
|
||||
- offset 0.25m east
|
||||
- offset 0.25m west
|
||||
- offset 0.0m up
|
||||
- offset 0.5m north
|
||||
- 0.75m width (from east to west)
|
||||
- offset 0.5m south
|
||||
- 0.75m width (from west to east)
|
||||
- 0.4m height
|
||||
- 0.3m length (from south to north)
|
||||
- 0.3m length (from north to south)
|
||||
|
||||
For composite hitboxes, the *hitboxes* property is used - an array of hitboxes, for example:
|
||||
|
||||
|
|
|
|||
|
|
@ -194,12 +194,12 @@
|
|||
Числа указываются в диапазоне [0.0, 1.0] - т.е в пределах блока (в случае расширенного блока хитбокс может быть больше единицы, но не должен выходить за пределы size).
|
||||
|
||||
Массив `[0.25, 0.0, 0.5, 0.75, 0.4, 0.3]` описывает хитбокс:
|
||||
- смещен на 0.25 м на запад
|
||||
- смещен на 0.25 м на восток
|
||||
- смещен на 0.0 м вверх
|
||||
- смещен на 0.5 м на север
|
||||
- шириной (с востока на запад) 0.75 м
|
||||
- смещен на 0.5 м на юг
|
||||
- шириной (с запада на восток) 0.75 м
|
||||
- высотой 0.4 м
|
||||
- длиной (с юга на север) 0.3 м
|
||||
- длиной (с севера на юг) 0.3 м
|
||||
|
||||
Для составных хитбоксов используется свойство *hitboxes* - массив хитбоксов, например:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue