@Quadraxas: use vec_scale(my.scale_x,1/my.scale_x); before you run pXent_settype and it should work with WED scaled terrains!

Code:
#include <acknex.h>
#include "pXent.h"
#include <default.c>
#include <d3d9.h>

function ball()
{
	pXent_settype(my, PH_RIGID, 1);
	pXent_setfriction(my, 0);
	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;
	pX_setgravity(vector(0,0,-9.81));
	pX_SetWorldSize(0.05);
	
	level_load("level.wmb");
	wait(1);	
	pXent_settype(level_ent,3,3);
	while(1)
	{
		DebugPicking();
		wait(1);
	}
}

// Skill1: body 1
// Skill2: hull 0
action set_physics()
{
	vec_scale(my.scale_x,1/my.scale_x);
	pXent_settype(my,my.skill1,my.skill2);	
}




website coming soon!