Ok people,

Now I am a very bit further. My model rotates, but very slowly and if I stop the entity where the model is attached to. The model still rotates. How can I fix this?

Code:
action gondel01 {
my.passable = on;

phent_settype(my,PH_RIGID,PH_SPHERE);
phent_setmass(my,100,PH_SPHERE);
phent_setdamping(my,100,100);
ph_setgravity(earthGravity);

while(my) {
vec_for_vertex(temp,kruis1,881);

phent_addforcelocal(my,vector(0,0,kruis1.pan),vector(0,0,0));
phent_addtorquelocal(my,vector(0,0,kruis1.pan));

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

wait(1);
}
}



Please help me.