Eine Seite weiter zurück, steht der Code zwar, aber hier dann nochmal der Aktuelle. Das ist jetzt die Action die dem Modell im WED zugewiesen wurde.
Code:
action cube()
{
   
   entcube = me;
   
  
      pXent_settype (me, PH_STATIC, PH_POLY);
      pXent_setbodyflag (me, NX_BF_DISABLE_GRAVITY,1);
      pX_setccd ( 1 );
      pXent_setccdskeleton(me, nullvector, 1);
      
      
         	camera.x = entcube.x - 800;
           	camera.y = entcube.y;
           	camera.z = 0;
           	
	while(1)
	{

          pXent_rotate(me, vector(mouse_force.x * time_step * 5, mouse_force.y * time_step * -5, 0), NULL);
   
          wait(1);
        }
	

}