I have spheres moving endlessly without any gravity. They are to move quite slowly. The problem is, they move jerkily like at a frame rate of 10 fps. Have I missed anything with the settings?:
Code:
FUNCTION bitaction()
{
var v[3];
my.flag8=on;
my.transparent=on;
my.alpha=80;
my.material=mat_kugel;
v.x=1000;vec_rotate(v.x,emitter.pan);//emitter=emitting entity
phent_settype(my, PH_RIGID, PH_sphere);
phent_setmass(my, 0.2, PH_sphere);
phent_setfriction(my, 0);
phent_setelasticity(my, 100, 10);
ph_setgravity(nullvector);
phent_enable(my,1);
phent_setmaxspeed( my, 1200, 500);
phent_addcentralforce ( my, v );
}
FUNCTION init_bitting()
{
you=ent_create ("sphere.mdl", emitter.x, bitaction);//emitter=emitting entity
wait(1);
}
on_e=init_bitting;