Method BuildInverseTransformMatrix
BuildInverseTransformMatrix(Transform, Transform)
Builds an inverse transform matrix that transforms childTransform
into the Local Object Space of rootTransform
.
Declaration
public static Matrix4x4 BuildInverseTransformMatrix(Transform childTransform, Transform rootTransform)
Parameters
Type | Name | Description |
---|---|---|
Transform | childTransform | The transform used to build the Matrix |
Transform | rootTransform | The transform to use as the Local Object Space |
Returns
Type | Description |
---|---|
Matrix4x4 | Returns a transform matrix in Local Object Space of the GameObject the rootTransform. |