| Parameter | Description |
|---|---|
| transformFrom | The transform used as a reference to transform from. |
| transformTo | The transform used as a reference to transform to. |
| transformPlane | The transform plane to use. |
| transformPlaneCustom | The custom transform plane to use (if required). |
| translation | The 2D relative translation. |
| rotation | The direction transformTo's X axis points on the plane, relative to transformFrom, in radians. |
| scale | The lengths of transformTo's X and Y axes as seen on the plane, with a negative Y when it appears mirrored. Scale is not relative. |
Get the relative transformation pose (translation, rotation and scale) between the two specified transform matrix using the specified transform plane to transform into 2D space. The transform to transform from is reduced to its position on the plane and its rotation about the plane normal, the two values a physics body is built from, so its scale and any rotation off the plane do not affect the result. The transform to transform to is described as it is seen on the plane, the same way PhysicsMath.GetRelativeMatrix2D places it.
| Parameter | Description |
|---|---|
| transformFrom | The transform used as a reference to transform from. |
| transformTo | The transform used as a reference to transform to. |
| world | The world whose transform plane is used. |
| translation | The 2D relative translation. |
| rotation | The 2D relative rotation. |
| scale | The 2D relative scale. Scale is not relative and always uses the transformTo lossyScale. |
Get the relative transformation pose (translation, rotation and scale) between the two specified transform matrix using the specified world's transform plane to transform into 2D space.