RotationWithUpDirMatrix

Returns a matrix that rotates the “from” vector so that it points towards “to”.

Inputs

Inputs
Name Type Default Description
from VectorPort V3d(0, 0, 0) From vector
to VectorPort V3d(0, 1, 0) To vector
up VectorPort V3d(0, 1, 0) Up vector

Outputs

Outputs
Name Type Default Description
out MatrixPort M44d((1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1)) Output