***************
*** 243,249 ****
else
{
// using constructor SFRotation (SFVec3f fromVector, SFVec3f toVector)
! // see X3D ECMAScript binding Table 7.18 — SFRotation instance creation functions
// test if difference vector is zero, if so maintain previous rotation
var shotVector = ViewpointNode.position.subtract(shots[i].moves[j].goalAimPoint).normalize();
--- 244,250 ----
else
{
// using constructor SFRotation (SFVec3f fromVector, SFVec3f toVector)
! // see X3D ECMAScript binding Table 7.18 — SFRotation instance creation functions
// test if difference vector is zero, if so maintain previous rotation
var shotVector = ViewpointNode.position.subtract(shots[i].moves[j].goalAimPoint).normalize();
***************
*** 308,315 ****
if (!animated) // output results
{
! tracePrint ('');
! tracePrint ('');
}
tracePrint ('checkShots() complete');
}
--- 309,316 ----
if (!animated) // output results
{
! tracePrint ('');
! tracePrint ('');
}
tracePrint ('checkShots() complete');
}
***************
*** 344,351 ****
if (animated) // output results
{
// TODO how to report or speed up response? alwaysPrint (' aimPoint=' + aimPoint.toString());
! tracePrint (' ');
! tracePrint (' ');
}
}
else if ((timestamp - priorTraceTime) >= 1.0) // 1 second trace interval
--- 345,352 ----
if (animated) // output results
{
// TODO how to report or speed up response? alwaysPrint (' aimPoint=' + aimPoint.toString());
! tracePrint (' ');
! tracePrint (' ');
}
}
else if ((timestamp - priorTraceTime) >= 1.0) // 1 second trace interval
***************
*** 356,363 ****
if (animated) // output results
{
// TODO how to report or speed up response? alwaysPrint (' aimPoint=' + aimPoint.toString());
! tracePrint (' ');
! alwaysPrint (' ');
}
}
if (eventValue == 0)
--- 357,364 ----
if (animated) // output results
{
// TODO how to report or speed up response? alwaysPrint (' aimPoint=' + aimPoint.toString());
! tracePrint (' ');
! alwaysPrint (' ');
}
}
if (eventValue == 0)
***************
*** 499,505 ****
--- 500,508 ----
else
Browser.print ('[Camera] ' + outputString + '\n');
}
+
]]>
+