Mercurial > hg > Members > kono > Cerium
comparison Renderer/Test/gaplant.cc @ 562:a5fda4e51498
name search
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 22 Oct 2009 22:22:31 +0900 |
parents | 1a2f015c42b2 |
children | 306c9a7717c3 |
comparison
equal
deleted
inserted
replaced
561:71b3363c16bf | 562:a5fda4e51498 |
---|---|
1 #include "SceneGraphRoot.h" | 1 #include "SceneGraphRoot.h" |
2 #include "xml_file/gap_plane_test.xml.h" | |
3 #include "gaplant_action.h" | 2 #include "gaplant_action.h" |
4 #include "gaplant.h" | 3 #include "gaplant.h" |
5 #include "back_action.h" | 4 #include "back_action.h" |
6 | 5 |
7 MainLoopPtr | 6 MainLoopPtr |
18 gaplant->xyz[0] = 200; | 17 gaplant->xyz[0] = 200; |
19 gaplant->angle[0] = -60; | 18 gaplant->angle[0] = -60; |
20 gaplant->angle[1] = 0; | 19 gaplant->angle[1] = 0; |
21 gaplant->angle[2] = 0; | 20 gaplant->angle[2] = 0; |
22 gaplant->set_move_collision(gaplant_move, gaplant_coll); | 21 gaplant->set_move_collision(gaplant_move, gaplant_coll); |
23 | 22 |
24 for (int i = arm_L_D; i <= foot_L_A; i++) { | 23 int foot = sgroot->getSgid("foot_L_A"); |
24 for (int i = sgroot->getSgid("arm_L_D"); i <= foot; i++) { | |
25 SceneGraphPtr p = sgroot->createSceneGraph(i); | 25 SceneGraphPtr p = sgroot->createSceneGraph(i); |
26 gaplant->addChild(p); | 26 gaplant->addChild(p); |
27 } | 27 } |
28 | 28 |
29 back->addChild(gaplant); | 29 back->addChild(gaplant); |