Java Reference
In-Depth Information
}
if (turningAngle!=0)
{
setRotation(viewTrans, -turningAngle, comMat, 1);
turningAngle = 0.0f;
}
setPosition(bodyTrans, viewposi);
setPosition(viewTrans, viewposi);
if (outsideTrans!=null)
setPosition(outsideTrans, new Point3f(Outsidescale*viewposi.x, outsideposi.y,
outsideposi.z));
postId(DOOROPEN);
if (animator == null)
{
animator = new Animation();
animator.running = true;
}
else if (!animator.running)
{
animator.running = true;
}
}
else if (radiobutton.indexOf(“Interaction”)!=-1)
{
animating = false;
viewposi = new Point3f(firstviewposi);
if (pitchAngle!=0)
{
setRotation(viewTrans, -pitchAngle, comMat, 2);
pitchAngle = 0.0f;
}
if (turningAngle!=0)
{
setRotation(viewTrans, -turningAngle, comMat, 1);
turningAngle = 0.0f;
}
setPosition(bodyTrans, viewposi);
setPosition(viewTrans, viewposi);
if (outsideTrans!=null)
setPosition(outsideTrans, new Point3f(Outsidescale*viewposi.x, outsideposi.y, outsideposi.z));
postId(DOORCLOSE);
if (animator != null)
{
if (animator.AnimationThread.isAlive())
{
animator.running = false;
//quit the measuring loop
}
}
animator = null;
}
}
Search WWH ::




Custom Search