Bit by bit I came further. My model rotates quite good now. But don't stop. How can I stop it?

Code:
action gondel01 {
my.passable = on;

//Physics on
phent_settype(my,PH_RIGID,PH_BOX);
//Set a weight
phent_setmass(my,23,PH_BOX);
//Set a friction
phent_setfriction(my,25);
//Set an elasticity
phent_setelasticity(my,50,5);
//Set a damping
phent_setdamping(my,50,90);
//Set a gravity
ph_setgravity(earthGravity);

while(my) {

vec_for_vertex(temp,kruis1,881);
phent_addtorquelocal(my,vector(0,0,kruis1.pan));

my.x = temp.x;
my.y = temp.y;
my.z = temp.z;

wait(1);
}
phent_addforcelocal(my,vector(kruis1.pan,0,0),nullvector);
}



As you can see I work with physics. So I hope you can help me out of it.