MAXScript FAQ > Working With Animation > How do I keep a Plane aligned to 3 Point Helpers? |
I have 3 Point Helpers which determines a plane in 3d space and I animated all of them randomly.
How can I keep a Plane object always oriented exactly to the plane determined by the Points?
This is a good place to use a Transform Script controller because we can control both the rotation (orientation) and position of the plane with it.
Assigns a Transform Script and calculates a Matrix3 value which keeps the plane in the plane defined by the three points and centers it in the middle point between the helpers.
If you would move or animate the points, the Plane should follow.