Quadraxas: should works with pX_SetSimulationTime(60);wait(2); after pX_SetWorldSize(0.05);
Code:
#include <acknex.h>
#include "pXent.h"
#include <default.c>
#include <d3d9.h>

function ball()
{
	pXent_settype(my, PH_RIGID, 1);

	pXent_setfriction(my, 100);
	pXent_setelasticity(my, 10);

}

function on_mouse_left_event()
{
	while (mouse_left) {wait (1);}
	ent_create ("earth.mdl", nullvector, ball);
}


function main()
{
	fps_max = 70;
	video_mode=8;
	wait(1);
	pX_setgravity(vector(0,0,-9.81));
	pX_SetWorldSize(0.05);
        pX_SetSimulationTime(60);
	wait(2);
	level_load("level.wmb");
	pXent_settype(level_ent,3,3);
}



Chris: thx for update, now works with event, but I've problem with "wait (random(-10));" physics stops here, any solution?
With ODE this code works fine for me.
Code:
ENTITY* e_sphere;

function remove_ent()
{
	wait (random(-10));
	pXent_settype(me, 0, 0);
	ptr_remove(me);
}

function f_sphere()
{
        VECTOR vKick;
        e_sphere = my;
	c_setminmax(e_sphere);
	vKick.x = 1500; vKick.y = 0; vKick.z = 200;
	ini_physics(PH_SPHERE, 1, PH_SPHERE, 50, 50, 50, 50);
	if(ccd_onoff) pXent_SetCCDSkeleton(e_sphere,vector(0.25,0.25,0.25), 1);
	vec_rotate(vKick,camera.pan);
        //pXent_SetActorEventFlag ( e_sphere, level_ent, NX_NOTIFY_ON_START_TOUCH);
	activate_collision_event(e_sphere);
	pXent_addvelcentral(e_sphere, vKick);
	my.event = remove_ent;
	my.emask |= ENABLE_FRICTION;
}

function on_mouse_left_event()
{
	if (mouse_mode > 0) return;
	while (mouse_left) {wait (1);}
	e_sphere = ent_create ("ball.mdl" , camera.x, f_sphere);
	set (e_sphere, SHADOW);
}




Regards, Robert

Quote
Everything should be made as simple as possible, but not one bit simpler.
by Albert Einstein

PhysX Preview of Cloth, Fluid and Soft Body

A8.47.1P