![]() |
|
#5
|
|||
|
|||
|
Hi Eric,
Sorry about that, the slerp function expects quaternion objects as input, not lists. The example code should look like the following: Code:
import vizmat euler1 = [60,45,67] euler2 = [-5,0,54] quat1 = vizmat.EulerToQuat(euler1) quat2 = vizmat.EulerToQuat(euler2) #Interpolate 75% between quat1 and quat2 quat = vizmat.slerp(viz.Quat(quat1),viz.Quat(quat2),0.75).get() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|