![]() |
#2
|
|||
|
|||
This appears to be a bug with how the rotational differences are computed. It doesn't seem to be using the shortest distance in all cases. This will be fixed in the next release. In the meantime you can add the following code to the beginning of your script to get the correct behavior:
Code:
import math import vizmat def QuatDiff(q1,q2): w = abs((vizmat.Quat(q1) * vizmat.Quat(q2).inverse()).w) return viz.degrees(math.acos(w) * 2.0) vizmat.QuatDiff = QuatDiff |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom Joystick Rotation | mhead10 | Vizard | 9 | 11-26-2012 12:06 PM |
random speed and associated coding | Saz | Vizard | 1 | 05-20-2010 04:03 AM |
set bone rotation - cal3d | munteanu24d | Vizard | 0 | 03-23-2010 04:25 AM |
Unable to perform 360 rotation using vizact.spinto | vijaykiran | Vizard | 2 | 09-29-2009 08:39 AM |
Calculating Speed with sensor | durf | Vizard | 1 | 03-13-2009 10:25 AM |