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)


1 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.
2 The following example replaces PositionInterpolator with the sin() function and moves the ball according to this function.
3 Please click on the left hand side box.

in Table To:


© 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