I use cgkit-2.0.0alpha2:
I have e.g. a quaternion q = quat(0, vec3(1, 0, 0))
I want to reused the axis of this quaternion with a new
q2 = quat( newAngle, q.toAngleAxis())
However I get:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "cgtypes.pyx", line 4464, in cgtypes.quat.__new__
File "cgtypes.pyx", line 4880, in
ValueError: axis mustn't be the null vector.
Actually I have to feeling that this is a bug, the axis
is still vec3(1,0,0) that is not changed by the fact
that the angle == 0.