Scene JSON has problems with primitive types
Opened this issue · 0 comments
siquel commented
Rotation is float, so we need way to assign values to primitive types instead of structs. It will generate assertation fault because float does not have "rotation" field.
"components": [ {
"name": "sani::Transform",
"fields": [
{
"name": "position",
"fields": [{"x": "5"}, {"y": "5"},{"z": "0"} ]
},
{
"name": "scale",
"fields": [ {"x":"1"},{"y":"1"} ]
},
{
"name":"rotation",
"fields":[ {"rotation": "0"} ]
}
]
}]