Basic HTML version of Foils prepared March 18 1998

Foil 30 How can we write our own Interpolator? ECMAScript Example -II

From Scripting and EAI in VRML97 CPS616 -- Information Track of CPS -- Spring Semester 98. by Hasan Ozdemir (Geoffrey C. Fox)


Previous example, we used PositionInterpolator to produce the position of the object. We can do this calculation in Script node and do not need to put all those points into the file.
The following example replaces PositionInterpolator with the sin() function and moves the ball according to this function.
Please click on the left hand side box.



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Nov 29 1998