tessecraft / CubeObj
Revision:
0:96a4e9c69d57
diff -r 000000000000 -r 96a4e9c69d57 CubeObj.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CubeObj.h	Sun Jan 29 02:15:35 2017 +0000
@@ -0,0 +1,27 @@
+#pragma once
+
+#include<math.h>
+#include"LEDCUBE_RGB_888.h"
+
+#define PI 3.1415926535
+
+class CubeObj{
+public:
+    float x, y, z;
+    float gz;
+    float ang[2], sp;
+    int life;
+    COL c;
+    CubeObj();
+    CubeObj(int sx, int sy, int sz, COL sc);
+    void set(int sx, int sy, int sz, COL sc);
+    void set(double ang1, double ang2, double s);
+    void go();
+    void go(int tx, int ty, int tz, double s);
+    void go(double ang1, double ang2, double s);
+    void friction(double stp);
+    void gravity(double stp);
+    void leave(int tx, int ty, int tz, double s);
+    void move(int gx, int gy, int gz);
+    void draw();
+};
\ No newline at end of file