Hello,
I have a model loaded and the model has a sub mesh… The model has a jumpgate and a ring. When I load the model, how can I access the ring mesh so I can animate it.
Thanks!
This is what I use to currently access the model now. But would like to access the ring from that model.
In Blender I named the JumpGate mesh “JumpGate” and the ring mesh is “JumpGateRing”
rootNode.getChild("JumpGateNode").rotate(0.0f, tpf, 0.0f);
Update
rootNode.getChild("JumpGateRing").rotate(0.0f, tpf, 0.0f);
I am bit confused, but I am guessing that when JME loads my model from a .j3o file, it will make nodes for each mesh it finds?
So this is why my call to “JumpGateRing” works even thou I didn’t make a node or spatial for that submesh… and using the Mesh names I assign in Blender I can access them like I did above.