Things are working much better now. I want to add a flipper to knock the balls out rather than just applying a force directly to them. I'm using a slider for this. I couldn't find an example of setting up a flipper and I'm having a little trouble with it:

Code:
function init_flipper()

{
var constraint1;

phcon_add(ph_slider, my, 0);
ph_con_setparams2(constraint1, vector(50,0,0),nullvector,nullvector); //this gives an error

while(my!=null)
{

temp.x=-spring+random(200)-100;
temp.y=0;
temp.z=0;

//punch ball out shoot
phcon_setmotor(constraint1, temp, nullvector, nullvector);

sleep(1);
}
}



Last edited by A.Russell; 06/06/04 19:32.