function shoot()
{
VECTOR shoot;
shoot.x = 900; shoot.y = 0; shoot.z = 0;
vec_rotate(shoot,player.pan);
phent_addvelcentral(my,shoot);
phent_addtorquelocal(my,vector(0,10,0));//curves the tilt down but not correctly
}
function physics_func()
{
phent_settype(my,PH_RIGID,PH_BOX);
phent_setmass(my,my.mass,PH_BOX);
phent_setfriction(my,10);
phent_setelasticity(my,0,100);
phent_setdamping(my,0,0);
ph_setgravity(vector(NULL,NULL,-500));
shoot();
}