Okay, what you wrote here was fine. I'm trying to do this:


phent_enable(me,0);
temp.x = cos(my.pan) * force;
temp.y = sin(my.pan) * force;
temp.z = 0;
phent_enable(me,1);
phent_addcentralforce(you,temp);

Now, it seems to work SOMETIMES. But other times it simply won't unless written like this:

wait(1);
phent_settype(me, 0, 0);
temp.x = cos(my.pan) * force;
temp.y = sin(my.pan) * force;
temp.z = 0;
phent_settype(me, PH_RIGID, PH_SPHERE);
phent_addcentralforce(you,temp);

I'd rather not have to totally unregister and reregister as the collison box causes me to crash if I'm touching the entity when it is registered again. Doing this through phent_enable does not cause a crash.

One last observation. If my collision is set to PH_POLY I don't crash as much with the "register/unregister" method.


Newbie... yeah, right.