Hello!
I’m trying to get a quaternion (or Euler, whichever is easiest / most performant) from 2 points in space, where the right component(red gizmo arrow) of the rotation is the direction of one point towards another with the forward component (blue gizmo arrow) facing upwards: where the up component (green gizmo arrow) is perpendicular to a flat plane. Essentially the result of a transform.LookAt() function where forward is right and up is forward.
I’m using ECS (float3, lower-case quaternion), so I can’t use external functions. I’ve included an image to hopefully make a little more clear what I’m trying to achieve.
Thanks!