Rotate object so it always looks at specified Vectors

You can create a CS from the chosen points (-x, +x, -y, +y), see cs function.
Then you create a quaternion that rotates a mesh from world to the constructed CS, see csQuatern.
After that you can align meshes to that CS by assigning their quaternion to the one in the previous step.

1 Like