- Map<String, JointTransform> map = new HashMap<>();
- map.put("Bone", new JointTransform(new Vector3f(0, 0, 0), new Quaternionf().rotate(0, 0, 0)));
- Map<String, JointTransform> map2 = new HashMap<>();
- map2.put("Bone", new JointTransform(new Vector3f(5, 0, 0), new Quaternionf().rotate(0, 0, 0)));
- KeyFrame f1 = new KeyFrame(0,map);
- KeyFrame f2 = new KeyFrame(2,map2);
- Animation animation = new Animation(new KeyFrame[]{f1,f2});