mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
update doc/en structure
This commit is contained in:
parent
dbe98959d1
commit
09610a3bb3
12 changed files with 17 additions and 12 deletions
20
doc/en/block-models.md
Normal file
20
doc/en/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