mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 13:31:49 +00:00
Project wiki moved to doc folder + english translation (#182)
This commit is contained in:
parent
a149c520c6
commit
a5aee06e01
22 changed files with 2536 additions and 0 deletions
20
doc/en/9.Block-models.md
Normal file
20
doc/en/9.Block-models.md
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# Block Models
|
||||
|
||||
Block model may be created with following properties:
|
||||
|
||||
```js
|
||||
"model": "custom",
|
||||
"model-primitives": {
|
||||
"aabbs": [
|
||||
// list of AABB primitives
|
||||
],
|
||||
// ... other primitives
|
||||
}
|
||||
```
|
||||
|
||||
**AABB** primitive is an array of values:
|
||||
```
|
||||
[x, y, z, width, height, depth, texture names for all 6 sides]
|
||||
```
|
||||
|
||||
**tetragon** primitive (more like parallelogram) an array of three vectors, describing primitive position, X vector \* width, Y vector \* height.
|
||||
Loading…
Add table
Add a link
Reference in a new issue