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);
}
}