just needing to work out how to drag Fisica objects on Android. Because there is no mouseDragged event for Fisica, dragging objects wont register on my tablet (with Ketai). Here's the code
/** * Buttons and bodies * * by Ricard Marxer * * This example shows how to create bodies. * It also demonstrates the use of bodies as buttons. */
Just wondering what the best options are for sending data (such as UDP) from a tablet running a Processing sketch, to receive on a laptop (receiving UDP in Max).
I've prototyped it on my laptop - sending OSC from Processing to Max and it works fine
I understand that Processing.js can't use libraries, so that is my first issue.
I've read elsewhere on the forum that OscP5 and network libraries work on Android, but is there any way to do it on iPad?
Ideally I'd like to send it from a Processing.js site so I can do it from any device, but if there's no way to do this, then I'm looking to see which tablet would be the best solution. I realize it is possible on Android, but I'd rather use an iPad if possible
I'm getting some mysterious crashes with the following sketch. It runs fine, but about one time out of ten when I close the sketch it blue-screens my computer (Macbook Pro OSX 10.6.8, Processing v2.0b7)
Help would be much appreciated. Here's the sketch:
float jit1;
float jit2;
int time;
int mrph;
int v1, v2, v3 ,v4 ,v5 ,v6, v7, v8, v9 , v10, v11, v12, v13;
switch(result) {
case NORTH: targetY-=spd; break;
case EAST: targetX+=spd; break;
case SOUTH: targetY+=spd; break;
case WEST: targetX-=spd; break;
case NORTH|EAST: targetY-=spd; targetX+=spd; break;
case NORTH|WEST: targetY-=spd; targetX-=spd; break;
case SOUTH|EAST: targetY+=spd; targetX+=spd; break;
case SOUTH|WEST: targetY+=spd; targetX-=spd; break;
}
d1.update(x, y, random(0.02), jit1);
d2.update(x, y, random(0.02), jit2);
}
void keyPressed(){
if(key ==CODED){
switch(keyCode) {
case (UP):result |=NORTH;break;
case (RIGHT):result |=EAST;break;
case (DOWN):result |=SOUTH;break;
case (LEFT):result |=WEST;break;
}
}
}