home *** CD-ROM | disk | FTP | other *** search
- #include "../h/rccl.h"
-
- pumatask()
- {
- TRSF_PTR z, e , b, pa1, pa2, conv;
- POS_PTR p0, pt1, pt2;
- int convfn();
- int i;
-
- conv = newtrans("CONV",convfn);
- z = gentr_trsl("Z", 0., 0., 864.);
- e = gentr_trsl("E" , 0. , 0. , 170.);
- b = gentr_rot("B", 600. , -500., 600., yunit, 180.);
- pa1 = gentr_eul("PA1" , 30., 0., 50., 0., 20., 0.);
- pa2 = gentr_eul("PA2" , -30., 0., 50., 0., -20., 0.);
-
- p0 = makeposition("P0" , z, t6, e, EQ, b, TL, e);
- pt1 = makeposition("PT1", z, t6, e, EQ, conv, b, pa1, TL, e);
- pt2 = makeposition("PT2", z, t6, e, EQ, conv, b, pa2, TL, e);
-
- setvel(300, 50);
- setmod('c');
- setime(300, 0);
- move(p0);
- for (i = 0; i < 4; ++i) {
- movecart(pt1, 100, 1000);
- movecart(pt2, 100, 1000);
- }
- setmod('j');
- move(park);
- }
-
- convfn(t)
- TRSF_PTR t;
- {
- t->p.y += 3.;
- }
-