Click or drag to resize

UtilRotationToAlign Method

Returns a matrix that when applied to myMatrix aligns the object with the forward (X) and up (Y) axes

Namespace: Demo3D.Common
Assembly: Demo3D.Common (in Demo3D.Common.dll) Version: 19.01.00
Syntax
C#
public 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

Matrix
Align matrix.
See Also