i dont know how to do that, but i can share the code and the method i use:
player creation:
var reproductor = new spine.SpinePlayer("player-container", {
jsonUrl: "http://esotericsoftware.com/files/examples/4.0/spineboy/export/spineboy-pro.json",
atlasUrl: "http://esotericsoftware.com/files/examples/4.0/spineboy/export/spineboy.atlas",
animation: "jump",
alpha: true,
backgroundColor: "#00000000",
showControls: false
});
this "if" is in a listener (window.wallpaperPropertyListener) because i need to read the properties in a json file:
if (properties.rotate) {
rotate = properties.rotate.value;
reproductor.skeleton.getRootBone().rotation = rotate;
/*if (vle == true){
document.getElementById("player-container").style.transform = "scale(-1, 1) rotate("+rotate+"deg)";
}
if (vle == false){
document.getElementById("player-container").style.transform = "scale(1, 1) rotate(-"+rotate+"deg)";
}*/
}
if you rotate 90degress the character you can see the shoes change their form, that happens in other bones and animations in other assets.
I only need to change the rotation of the entire character without any modification in the bones, like a camera.