A way to get around the relative yaw axis issue?

Screenshot the error. Also did you make sure you changed the function signatures from the “myfunctionname” to your exact c++ class name?