def opengl_to_bullet_frame(vec):
    """
    Converts a rotation or a translation from the opengl ref frame to the
    bullet ref frame (Y-UP vs Z-UP)

    Parameters:
        vec - A vector xyz, list of 3 elements
    """
    return [vec[0], vec[2], -vec[1]]