Component+Scene+System: Implement parent-child transform components
This commit is contained in:
@@ -44,14 +44,44 @@
|
||||
"id": { "id": 3424242 },
|
||||
"tag": { "tag": "Quad 3" },
|
||||
"transform" : {
|
||||
"translate": [ 2.2, 0.0, 0.0 ],
|
||||
"rotate": [ 0.0, 0.0, 0.0 ],
|
||||
"translate": [ 2.2, 1.0, 0.0 ],
|
||||
"rotate": [ 0.0, 0.0, -20.0 ],
|
||||
"scale": [ 1.0, 1.0, 1.0 ]
|
||||
},
|
||||
"sprite": {
|
||||
"color": [ 1.0, 1.0, 1.0, 1.0 ],
|
||||
"texture": "assets/gfx/test-inverted.png"
|
||||
}
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"id": { "id": 4345472 },
|
||||
"tag": { "tag": "Quad 4" },
|
||||
"transform" : {
|
||||
"translate": [ 0.85, 0.0, 0.0 ],
|
||||
"rotate": [ 0.0, 0.0, 0.0 ],
|
||||
"scale": [ 0.5, 0.5, 1.0 ]
|
||||
},
|
||||
"sprite": {
|
||||
"color": [ 1.0, 1.0, 1.0, 1.0 ],
|
||||
"texture": "assets/gfx/test-inverted.png"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"id": { "id": 5234723 },
|
||||
"tag": { "tag": "Quad 5" },
|
||||
"transform" : {
|
||||
"translate": [ 1.0, 0.0, 0.0 ],
|
||||
"rotate": [ 0.0, 0.0, -20.0 ],
|
||||
"scale": [ 0.5, 0.5, 1.0 ]
|
||||
},
|
||||
"sprite": {
|
||||
"color": [ 1.0, 1.0, 1.0, 1.0 ],
|
||||
"texture": "assets/gfx/test-inverted.png"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": { "id": 675754 },
|
||||
|
||||
Reference in New Issue
Block a user