This code worked in the A7 physics but I can't get any movement using the same lines in A8 physX. I don't get errors but my code must still be wrong for A8?

Code:
pXent_settype(my, PH_RIGID, PH_BOX);
pX_setgravity( earth_gravity );
pXent_setmass(my, 6.5);
pXent_setfriction(my,20);        
pXent_setelasticity(my, 10);
pXent_setdamping(my, 50, 50);

while(1)
{	
if(key_cuu == 1)
vec_set(temp, my); vec_normalize(temp, 0);
pXent_addforcelocal(my, vector(20000,0,0), nullvector);
}



Last edited by bpc31; 02/19/11 05:29.