steve3d Posted June 13, 2012 Share Posted June 13, 2012 in core/scripts/utils.h file, there are two function decomposeTransformDirection and composeTransformDirection, I'm assuming decomposeTransformDirection can be used to get both right/up and direction, but there is no any info about this function, and I simply tested this function, the value returned by p, is not up vector and right vector. then how can I get the Up vector of a node? Link to comment
steve3d Posted June 13, 2012 Author Share Posted June 13, 2012 ok, solved, just use this to get up vector vec3 up = vec3(0, 0, 1) * rotation(node.getTransform()); Link to comment
Recommended Posts