Problem with always face camera


#1

I create a behavior to always face camera:

SUComponentBehavior behavior;
behavior.component_always_face_camera = true;
SUComponentDefinitionSetBehavior(component, &behavior);

My 2d objects are not really facing the camera.

In the picture, it is always facing the bottom left corner. I tried using a transformation to rotate my object:

    SUTransformation transformation;

    transformation.values[0] = 0.0;
    transformation.values[1] = -1.0;
    transformation.values[2] = 0.0;
    transformation.values[3] = 0.0;
    
    transformation.values[4] = 1.0;
    transformation.values[5] = 0.0;
    transformation.values[6] = 0.0;
    transformation.values[7] = 0.0;
    
    transformation.values[8] = 0.0;
    transformation.values[9] = 0.0;
    transformation.values[10] = 1.0;
    transformation.values[11] = 0.0;
    
    transformation.values[12] = 0.0;
    transformation.values[13] = 0.0;
    transformation.values[14] = 0.0;
    transformation.values[15] = 1.0;
    
    SUComponentInstanceSetTransform(instance, &transformation);

And when I don’t create the behavior it comes out right:

As soon as I add the behavior it goes back to facing the bottom left corner. I tired creating the behavior before the transformation and after. It does the same thing. Should I create a camera in my code?