| 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). |
| useScale | If the returned matrix should include scale. Scale is not relative and always uses the transformTo lossyScale. |
Matrix4x4 The calculated relative transformation matrix.
Get the relative transformation matrix between the two specified transform matrix using the specified transform plane to transform into 2D space i.e. XY position and Z rotation. Each transform is reduced to its position on the plane and its rotation about the plane normal, the same two values a physics body is built from, so the scale of the transform to transform from and any rotation off the plane do not affect the result.
| 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. |
| useScale | If the returned matrix should include scale. Scale is not relative and always uses the transformTo lossyScale. |
Matrix4x4 The calculated relative transformation matrix.
Get the relative transformation matrix between the two specified transform matrix using the specified world's transform plane to transform into 2D space.