I’m upgrading some of my AssetLoaders to use the new com.jme3.anim package.
I’ve run into a snag. The new TransformTrack constructor takes in reference to a Joint object. The old BoneTrack took in the integer ID of the bone.
So my question is: Do I have to instantiate a new AnimClip/TransformTracks for each Armature, since TransformTrack uses a direct reference to a Joint object?
I have models and animations in separate files. I want to reuse the animations multiple times. So I would like to apply an AnimClip on multiple meshes. Its safe to assume that the meshes contain the same armature blend indices and weights.
so that we can directly share the compact translation, rotation, scales between Tracks without unpacking /repacking them. @pspeed, @sgold any thought?
Edit:
Okay, never mind. Using TransformTrack.jmeClone() does already share those compact transforms and times. We just need to reset the target to reference new Joint after cloneing. Sorry for my ignorance