Method BuildTransformMatrix
BuildTransformMatrix(Transform, Transform)
Builds a transform matrix that transforms childTransform
into the Local Object Space of rootTransform
.
Declaration
public static Matrix4x4 BuildTransformMatrix(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. |