Mercurial > hg > Members > kono > Cerium
diff Renderer/Test/gaplant_action.cc @ 578:a068627a0bc6
ps3 move
author | game@localhost.localdomain |
---|---|
date | Fri, 23 Oct 2009 18:36:43 +0900 |
parents | 1a2f015c42b2 |
children | 306c9a7717c3 |
line wrap: on
line diff
--- a/Renderer/Test/gaplant_action.cc Fri Oct 23 17:18:41 2009 +0900 +++ b/Renderer/Test/gaplant_action.cc Fri Oct 23 18:36:43 2009 +0900 @@ -1,7 +1,6 @@ #include <iostream> #include <cmath> #include "SceneGraphRoot.h" -#include "xml_file/gap_plane_test.xml.h" #include "gaplant.h" using namespace std; @@ -81,8 +80,8 @@ SceneGraphIteratorPtr it = sgroot->getIterator(tree); //static int damage = 0; - for (; it->hasNext(Ball);) { - it->next(Ball); + for (; it->hasNext(sgroot->getSgid("Ball"));) { + it->next(sgroot->getSgid("Ball")); SceneGraphPtr ball = it->get(); double dis_x = node->xyz[0] - ball->xyz[0];