Forum Discussion
checksum
1 year agoExplorer
gltf nodes of entity in composition using meta spatial sdk
I want to animate a gltf object manually. I get my object using something like "composition.getNodeByName("myobject_gltf")" How can I parse and modify the transformations of each node individually?...
checksum
1 year agoExplorer
To be more clear, let's say that I have a clock face, and I want to set the time (see simplified gltf below).
How can I set the ShorterBar and LongerBar rotation dynamically?
The gltf is referenced in my composition.glfx.
Note that in my real application, it not a clockface and I have multiple moving part in my gltf.
{
"asset": {
"version": "2.0"
},
"scene": 0,
"scenes": [
{
"nodes": [0]
}
],
"nodes": [
{
"name": "Circle",
"mesh": 0,
"children": [1, 2]
},
{
"name": "ShortBar",
"mesh": 1,
"rotation": [0, 0, 0, 1] // Rotation quaternion for setting angle
},
{
"name": "LongBar",
"mesh": 2,
"rotation": [0, 0, 0, 1] // Rotation quaternion for setting angle
}
]
}Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 9 months ago
- 2 years ago