Skip to content

Instantly share code, notes, and snippets.

@sevanspowell sevanspowell/.prefab file

Last active Dec 9, 2016
Embed
What would you like to do?
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
You can’t perform that action at this time.