323
|
1 #include <iostream>
|
|
2 #include "SceneGraphRoot.h"
|
|
3 #include "SGList.h"
|
|
4 #include "ball_action.h"
|
|
5 using namespace std;
|
|
6
|
|
7 void
|
|
8 back_move(SceneGraphPtr node, int w, int h)
|
|
9 {
|
|
10 Pad *pad = sgroot->getController();
|
|
11
|
|
12 if (pad->triangle.isPush()) {
|
|
13 SceneGraphPtr ball = sgroot->createSceneGraph(Ball);
|
|
14 ball->xyz[0] = -100;
|
|
15 ball->set_move_collision(ball_move, ball_coll);
|
|
16 node->addChild(ball);
|
|
17 }
|
|
18 }
|
|
19
|
|
20 void
|
|
21 back_coll(SceneGraphPtr node, int w, int h, SceneGraphPtr tree)
|
|
22 {
|
|
23
|
|
24 }
|