Primitive prim = e.getValue();
if (prim.Joint.equals(JointType.Invalid))
{
//region Angular Velocity
Vector3 angVel = prim.AngularVelocity;
float omega = angVel.lengthSquared();
if (omega > 0.00001f)
{
omega = (float)Math.sqrt(omega);
float angle = omega * adjSeconds;