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?...
MetaStoreHelp
1 year agoCommunity Manager
val shortBar: Entity = composition.getNodeByName("ShortBar").entity will give you access to the entity, you can edit that ent's transform in a system to "animate" it. This is assuming you are referring to a GLXF where each of the hands are their own GLTF
checksum
1 year agoExplorer
Thanks but ShortBar is a GLTF node, not a GLXF nodes.
My GLTF's are complex mechanisms that can be hard to convert into GLXF components (can be difficult,I think, maybe it can be my solution ?).
I already do something like
val shortBar: clock= composition.getNodeByName("clock").entity
and I want to do
val Shortbar = clock.getgltfnode("ShortBar").node (of course getgltfnode is a sample)....
Shortbat.rotate(...)
In final, I want to be able to parse a gltf and animate myself without using internal animation of the gltf.
I do it in unity, webxr, c++ but I want to use kotlin/java and mix with already available android API...
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