Hi all,
I am doing something related to physics.....my problem is i cant apply force in x direction...y & z are OK
code
=====================================
vec_set(temp, vector(1, 0, 0));//x dir{here no movement of ball in x-dir}
vec_normalize(temp, 4000);
phent_addforceglobal(you, temp, spot);
======================================
if i put line1 as
vec_set(temp, vector(0, 1, 0));//(ball moves in y dir)
or
vec_set(temp, vector(0, 0, 1));//(ball moves in z dir)
it is working....
what is wrong?
are there any previous settings that i made wrong?
these are the settings i have put in the action of the ball
=====================================
phent_settype(me, PH_RIGID, PH_BALL);
phent_setmass(me,.06,PH_BALL);
phent_setfriction(me,15);
phent_setelasticity(me,50,200);
phent_setdamping(me,1,1);
=====================================
thanking you all in advance
Manu