Asking the AI, I got following code:
public static Quaternionf yawPitchToQuaternion(float yaw, float pitch) {
// Convert yaw and pitch to radians
double yawRad = Math.toRadians(yaw);
double pitchRad = Math.toRadians(pitch);
// Create a new Quaternionf object...
Hi,
I want to create a Textdisplay where the Text shown in a specific direction(yaw,pitch)(z.B. 45,45).
How can I easily transform this to a Quaternion? Had Paper a Library or a method, which can it translated?
I had seen, that I can use a AxisAngle4f, but i dont understand what this do.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.