diff Renderer/Test_/back_action.cc @ 4:b5b462ac9b3b

Cerium Blender ball_bound
author Daiki KINJYO <e085722@ie.u-ryukyu.ac.jp>
date Mon, 29 Nov 2010 16:42:42 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Renderer/Test_/back_action.cc	Mon Nov 29 16:42:42 2010 +0900
@@ -0,0 +1,24 @@
+#include <iostream>
+#include "SceneGraphRoot.h"
+#include "ball_action.h"
+using namespace std;
+
+void
+back_move(SceneGraphPtr node, void *sgroot_, int w, int h)
+{
+    SceneGraphRoot *sgroot = (SceneGraphRoot *)sgroot_;
+    Pad *pad = sgroot->getController();
+
+    if (pad->triangle.isPush()) {
+	SceneGraphPtr ball = sgroot->createSceneGraph("Ball");
+	ball->xyz[0] = -100;
+	ball->set_move_collision(ball_move, ball_coll);
+	node->addChild(ball);
+    }
+}
+
+void
+back_coll(SceneGraphPtr node, void *sgroot_, int w, int h, SceneGraphPtr tree)
+{
+    
+}