Hello again. My goal is a ball that should always jump in the same way. At my testlevel the ball is only jumping, no other movement, so its easier to see the problem. When the ball is jumping continuously you see that sometimes the ball is jumping right in the moment when he has touched the ground. But sometimes he sticks to the ground a few millisecs and makes a jump half of the height as the jump before.

Here the whole project (keep pressing space to jump, maybe wait a little bit at the beginning until the ball doesn't rotate any more):
http://www.file-upload.net/download-1487600/testjump.rar.html
Here the code:
Code:
#include <acknex.h>
#include <default.c>

ENTITY* pointer;
VECTOR jump;

function main() 
{
   video_screen = 2;
   video_mode = 8;	
   mouse_mode = 1;	
   fps_max = 60;  
   wait(-1);
   ph_fps_max_lock = 120;	
   level_load ("level1.wmb"); 
   ph_setgravity (vector(0, 0, -700));   
} 


function coll() {
	
   jump.x = 0; jump.y = 0; jump.z = 500;  
	
   if(key_space )
   {     
      phent_addvelcentral(pointer,jump);
   }
    
}

action playerj() 
{
  pointer = my;
  my.emask |= (ENABLE_BLOCK | ENABLE_ENTITY); 
  my.event = coll;
  phent_settype (pointer, PH_RIGID, PH_SPHERE); 
  phent_setmass (pointer, 1, PH_SPHERE);
  phent_setfriction (pointer, 500); 
  phent_setdamping (pointer, 50, 50); 
  phent_setelasticity (pointer, 0, 0);
}


When I raise the ph_fps_max_lock it gets a bit better, but the problem remains. So, help would be great.