Torque 3D 3.8
ContentsIndexHome
PreviousUpNext
MathUtils::getMatrixFromForwardVector Function
Syntax
C++
void getMatrixFromForwardVector(const VectorF & forward, MatrixF * outMat);

Creates an orthonormal basis matrix with the unit length input vector in column 1 (forward vector). 

@param forward The non-zero unit length forward vector. @param outMat The output matrix which must be initialized prior to the call. 

 

Copyright (c) 2015. All rights reserved.
What do you think about this topic? Send feedback!