Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef _OSC_THREAD
- #define _OSC_THREAD
- #include "ofMain.h"
- class oscThread : of3dPrimitive {
- public:
- void setup();
- void draw();
- void update();
- ofVec3f originP, destP;
- ofVec3f tempO, tempD;
- ofVec3f rotationAngle, direction, axis;
- ofQuaternion rotation;
- float time, time0;
- float length;
- float rotationAmount;
- int color;
- int numVerts;
- bool dead = false;
- //Braid Construction
- float mTime; //Modulation Time
- int res; //Resolution
- int speed; //Speed (lower=faster)
- float amp; //Amplitude
- float f; //Frequency
- //Lead and Tail Construction / Movement
- float lead = 0; //Framerate independent time
- float cSpeed; //Speed of Movement
- int leadVertex = 0; //Vertex at the front
- int tC; //Tail Control
- int ttLength, tLength; //Temp Tail Length, Tail Length
- oscThread(ofVec2f origin, ofMesh mesh);
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement