Mercurial > hg > Members > kono > Cerium
annotate Renderer/Test/back_action.cc @ 578:a068627a0bc6
ps3 move
author | game@localhost.localdomain |
---|---|
date | Fri, 23 Oct 2009 18:36:43 +0900 |
parents | a5fda4e51498 |
children | d0b8860c17f8 |
rev | line source |
---|---|
507 | 1 #include <iostream> |
2 #include "SceneGraphRoot.h" | |
561
71b3363c16bf
gplant (not yet worked...)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
560
diff
changeset
|
3 #include "ball_action.h" |
507 | 4 using namespace std; |
5 | |
6 void | |
7 back_move(SceneGraphPtr node, int w, int h) | |
8 { | |
9 Pad *pad = sgroot->getController(); | |
10 | |
11 if (pad->triangle.isPush()) { | |
562 | 12 SceneGraphPtr ball = sgroot->createSceneGraph("Ball"); |
507 | 13 ball->xyz[0] = -100; |
14 ball->set_move_collision(ball_move, ball_coll); | |
15 node->addChild(ball); | |
16 } | |
17 } | |
18 | |
19 void | |
20 back_coll(SceneGraphPtr node, int w, int h, SceneGraphPtr tree) | |
21 { | |
22 | |
23 } |