Advertisement
Guest User

Untitled

a guest
Dec 25th, 2015
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. #ifndef _OSC_THREAD
  2. #define _OSC_THREAD
  3.  
  4. #include "ofMain.h"
  5.  
  6. class oscThread : of3dPrimitive {
  7.  
  8. public:
  9. void setup();
  10. void draw();
  11. void update();
  12.  
  13. ofVec3f originP, destP;
  14. ofVec3f tempO, tempD;
  15. ofVec3f rotationAngle, direction, axis;
  16. ofQuaternion rotation;
  17. float time, time0;
  18. float length;
  19. float rotationAmount;
  20.  
  21. int color;
  22. int numVerts;
  23. bool dead = false;
  24.  
  25. //Braid Construction
  26.  
  27. float mTime; //Modulation Time
  28. int res; //Resolution
  29. int speed; //Speed (lower=faster)
  30. float amp; //Amplitude
  31. float f; //Frequency
  32.  
  33.  
  34. //Lead and Tail Construction / Movement
  35.  
  36. float lead = 0; //Framerate independent time
  37. float cSpeed; //Speed of Movement
  38. int leadVertex = 0; //Vertex at the front
  39. int tC; //Tail Control
  40. int ttLength, tLength; //Temp Tail Length, Tail Length
  41.  
  42.  
  43. oscThread(ofVec2f origin, ofMesh mesh);
  44. };
  45.  
  46. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement