Bone.setUserControl makes the bone disappear

Hi,



I just upgraded to the beta version and tried to run my existing program, but I came across a problem.



Previously, I could animate a bone in my model by rotating it the following way:



Bone b = skeleton.getBone(boneName);

b.setUserControl(true);

Quaternion q = some rotation;

b.setUserTransforms(Vector3f.ZERO, q, Vector3f.ZERO);



However, in the beta version, it seems that when I try to animate a bone in this way, the mesh disappears. If I set the user control to false directly after the setUserTransforms method, the mesh is shown, but obviously the bone modification does not occur.



Does anyone have an idea about what causes this? Thanks in advance.



Deev

I don’t know 100% what the params of that method are but don’t you give the bone zero dimension with those Vector3f.ZERO?

1 Like

yeah the third parameter is the scale, so basically your bone is a point, use Vector3f.UNIT_XYZ instead

1 Like

Ah, that did that trick. I am a moron.



Thanks for the help.