UtilRotationToAlign Method |
Returns a matrix that when applied to myMatrix aligns the object with the forward (X) and
up (Y) axes
Namespace: Demo3D.CommonAssembly: Demo3D.Common (in Demo3D.Common.dll) Version: 19.01.00
Syntaxpublic static Matrix RotationToAlign(
Matrix myMatrix,
Vector3 targetForward,
Vector3 targetUp
)
Parameters
- myMatrix Matrix
- Initial matrix rotation
- targetForward Vector3
- Forward axis (X)
- targetUp Vector3
- Up axis (Y)
Return Value
MatrixAlign matrix.
See Also