engine/bin/data/entities/player.json

121 lines
2.2 KiB
JSON

{
"name": "Player",
"type": "Object",
"behaviors": [
"PlayerBehavior",
"SoundEmitterBehavior"
],
"ignore": false,
/*
"transform": {
"position": [ 0, 0, 0 ],
"rotation": {
"axis": [ 0, 1, 0 ],
"angle": 0
},
"scale": [ 1, 1, 1 ]
},
*/
"assets": [
{ "filename": "./playerModel.json", "delay": 1 },
// "./playerModel.json",
"./playerLight.json",
// "./playerHands.json",
"./scripts/player.lua"
],
"system": {
"hot reload": {
"enabled": true
}
},
"metadata": {
"overlay": {
"transform": {
"position": [ 0, 0, -3 ],
"scale": [ 1.77778, -1, 1 ],
"orientation": [ 0, 0, 0, 1 ]
},
"floating": false,
"enabled": true,
"alpha": 1.0,
"cursor": {
"type": "mouse",
"radius": 0.05,
"color": [ 0.2, 0.2, 1.0, 1.0 ],
"enabled": false
}
},
"audio": {
"footstep": {
"volume": 0.5,
"list": [
"/footstep/1.ogg",
"/footstep/2.ogg"
]
}
},
"movement": {
"walk": 8,
"move": 8,
"run": 20,
// "rotate": 1.5,
"rotate": 6,
"air": 0.1,
"crouch": 1,
"jump": [ 0, 8, 0 ],
"look": 1,
"floored": {
"feet": [ 0, -1, 0 ],
// "floor": [ 0, -0.5, 0 ],
"floor": [ 0, -1, 0 ],
"print": false
},
"strafe": true
},
"physics": {
"gravity": [ 0, -9.81, 0 ],
"inertia": false,
"offset": [ 0, 0, 0 ],
// "type": "sphere",
// "radius": 2,
"type": "capsule",
"radius": 1,
"height": 2,
// "type": "bounding box",
// "min": [ -1, -1, -1 ],
// "max": [ 1, 1, 1 ],
"mass": 100,
"friction": 0.95,
"restitution": 0.0,
"shared": false
},
"camera": {
// "offset": [ 0, 10, 6 ],
// "orientation": [ 0, 0.894427, -0.447214, 0 ],
"position" : [ 0, 1.8, 0 ],
"scale": [ 1, 1, 1 ],
"invert": [ false, false, false ],
"limit": {
"minima": [ null, -1.0, null ],
"maxima": [ null, 1.0, null ],
"current":[ null, 0, null ]
},
"settings": {
"fixed": false,
"fov" : 90.0,
"clip" : [ 0.1, 64.0 ],
"size" : [ 0, 0 ]
}
},
"use": {
"length": 5
}
}
}