action myplayer()
{
myplayer = me;
ph_setgravity (vector(0, 0, -386));
phent_settype (myplayer, PH_RIGID, PH_BOX);
phent_setmass (myplayer, 3, PH_BOX);
phent_setfriction (myplayer, 80);
phent_setdamping (myplayer, 40, 40);
while (1)
{
if(key_w)
{
myplayer_speed.x = 5 ;
myplayer_speed.y = 0 ;
myplayer_speed.z = 0;
phent_addvelcentral (myplayer, myplayer_speed);
}
wait(1);
}