home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pose1os2.zip / EXAMPLES / SHIP / SCENE1 / LEFTFRNT.SIM < prev    next >
Text File  |  1995-04-14  |  376b  |  31 lines

  1. init {
  2.     x = 0;
  3.     y = 0;
  4.     z = .20;
  5.  
  6.     rotate(0,-75,0);
  7.  
  8.     // rotation angles for this mandible range from -75 to +25
  9.  
  10.     yangle = -80;
  11.  
  12.     direction = 5;
  13. }
  14.  
  15. eval {
  16.     yangle += direction;
  17.  
  18.     rotate(0,yangle,0);
  19.  
  20.     if(yangle == 25)
  21.     {
  22.         direction = -5;
  23.     }
  24.  
  25.     if(yangle == -75)
  26.     {
  27.         direction = 5;
  28.     }
  29. }
  30.  
  31.