2021-01-29 14:07:40 +08:00
|
|
|
{
|
2021-02-02 16:45:20 +08:00
|
|
|
// /*
|
2021-01-29 14:07:40 +08:00
|
|
|
'part id': [
|
2021-02-02 16:45:20 +08:00
|
|
|
[
|
|
|
|
'part name',
|
|
|
|
// part name can be reuse
|
|
|
|
'description',
|
|
|
|
// 描述
|
|
|
|
],
|
|
|
|
// about names and other
|
2021-01-29 14:07:40 +08:00
|
|
|
[
|
|
|
|
'float',
|
2021-02-02 16:45:20 +08:00
|
|
|
// mass
|
|
|
|
'bool',
|
|
|
|
// hidden in part list
|
2021-01-29 14:07:40 +08:00
|
|
|
'float'
|
2021-02-02 16:45:20 +08:00
|
|
|
// buoyancy(浮力) in the water
|
2021-01-29 14:07:40 +08:00
|
|
|
],
|
2021-02-02 16:45:20 +08:00
|
|
|
// about config
|
|
|
|
[
|
|
|
|
'xxx.png',
|
|
|
|
// texture file name
|
|
|
|
[
|
|
|
|
'float',
|
|
|
|
'float'
|
|
|
|
],
|
|
|
|
// 贴图偏移量
|
|
|
|
// 指的是部件的碰撞箱左上角到贴图左上角的距离
|
|
|
|
],
|
|
|
|
// about texture
|
2021-01-29 14:07:40 +08:00
|
|
|
[
|
|
|
|
'float',
|
|
|
|
'float'
|
|
|
|
],
|
2021-02-02 16:45:20 +08:00
|
|
|
// 碰撞箱大小 (暂时只支持方形碰撞箱)
|
|
|
|
//坐标轴也是从左上开始
|
|
|
|
//可以为包含文件夹的 比如:./engine/xxx.png
|
|
|
|
[
|
|
|
|
'特殊值(懒得写)'
|
|
|
|
]
|
2021-01-29 14:07:40 +08:00
|
|
|
],
|
2021-02-02 16:45:20 +08:00
|
|
|
// */
|
2021-01-29 14:07:40 +08:00
|
|
|
'': []
|
|
|
|
}
|