I have an object with two local points and two corresponding global points. My goal is to transform the object so that the two local points align exactly with the two global points. This transformation requires adjusting the object’s scale, rotation, and position.
However, the constraint is that I can only modify the central position of the object directly. I need to understand how to compute and apply the necessary scale and rotation, alongside this position change, to make the local points match the global points precisely.
Is this 2D or 3D? If it’s 3D, two points is not enough for a unique mapping. You can align your two local points to the global points, but you can then also rotate the object around the axis created between the points, so you have an infinite number of possible rotations.
Do you have an additional constraint to help you position the object uniquely? If you are working in 2D then it is a lot simpler.
2 Likes
I have fixed it using a convertor that calculates what should rotation and scale and center position should be and set those for group and it has been fixed.