Hi! I have sphere-like mdl file, rolling on mdl box. I used sample from G7 flder and adapted it:

Quote:
phent_settype(player,PH_RIGID,PH_SPHERE);
phent_setmass(player,1,PH_SPHERE);
phent_setfriction(player,0);
phent_setelasticity(player,75,100);
phent_setdamping(player,30,5);
// phent_addvelcentral(player,vector(10,10,0));
ph_setgravity(vector(0,0,-500));


Now, sphere rolls fine in direction given with phent_addvelcentral. If I set phent_addvelcentral to 0, it stops. Now, what I
do is make box plane model tilt by 15 degree. My idea is: if plane is tilt, ball will start rolling down. But it is not. Ball, actually,
rotates along with plane. Like, if I set

plane.tilt += 1; //every frame

plane rotates, and so does my spehere model. How can I adjust interaction the way I need?
Regards,
Konstantin.


What kills me not, that makes me stronger.

***Working on RPG/RTS***