I am working on a project that entails a piñata which can be hit using the Kinect. I am having trouble understanding the rotation function in context of my project. It needs to swing from a pivot point (top center of sketch) to each side when hit. What route would be the best to accomplish this?? I need some serious help...
I am having some trouble with the code I'm using while creating Hotpoints within my depthimage.. I get the error "cannot find a class or type named "Hotpoint"
What is my problem here? First error is at line 14. Any assistance will be appreciated! Thank you!
import ddf.minim.*;
import SimpleOpenNI.*;
import processing.opengl.*;
SimpleOpenNI kinect;
float rotation = 0;
Minim minim;
AudioSnippet bongo1;
AudioSnippet bongo2;
Hotpoint bongoTrigger;
Hotpoint bongoTwoTrigger;
float s = 1;
void setup(){
size(1024, 768, OPENGL);
kinect = new SimpleOpenNI(this);
kinect.enableDepth();
minim = new Minim(this);
bongo1 = minim.loadSnippet("bongo.wav");
bongo2 = minim.loadSnippet("bongo3.wav");
//hotpoints origins and their size
bongoTrigger = new Hotpoint (200, 0, 600, 150);
bongoTwoTrigger = new Hotpoint (-200, 0, 600, 150);