axis is an integer and represents a constant (although it says it is an angle...) . Here the constants.void Rotate(axis, angle)
Prepend a rotation onto the current matrix.
axis (int): the angle (in radians) to rotate about (axis constants can be found here)
angle (float): the angle (in radians) to rotate the vector Return value: none
Code: Select all
X_AXIS - Positive X axis
Y_AXIS - Positive Y axis
Z_AXIS - Positive Z axis
NEGX_AXIS - Negative X axis
NEGY_AXIS - Negative Y axis
NEGZ_AXIS - Negative Z axis
FREE_AXIS - Arbitrary free axis
Maybe it could admit a 3D vector in that parameter?
Have someone any idea of how to build a matrix with a rotation in an arbitrary axis?
-G