Skip to content

Instantly share code, notes, and snippets.

@sevanspowell
Last active December 9, 2016 01:20
Show Gist options
  • Save sevanspowell/d70e3702cc96abf42ec23f49b46a557b to your computer and use it in GitHub Desktop.
Save sevanspowell/d70e3702cc96abf42ec23f49b46a557b to your computer and use it in GitHub Desktop.
DraygonTensor - An example prefab file
{
"components": {
"cameraComponent": {
"projection": "perspective",
"vertical_fov": 1.04719,
"near_clip": 0.1,
"far_clip": 700.0
},
"scriptComponents": {
"scriptPaths": {
"scripts/fpsCamera": {
"sensitivity": {
"type": "float",
"value": 0.5
}
}
}
},
"physicsComponent": {
"restitution": 0.6,
"damping": 0.95,
"angularDamping": 0.00,
"collisionShapes": [
{
"name": "leg1",
"type": "capsule",
"radius": 0.9,
"height": 1.8,
"mass": 1,
"halfSize": [0.25, 0.25, 0.25],
"offset": [0.0, 0.0, 0.0],
"invInertiaTensor": [0, 0, 0]
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment