I had this code with version 6.31.4 comm for the ball and the physics was very good and realistic, including collision against models, maps and blocks (geometry).
Code:
PHENT_SETTYPE(MY,PH_RIGID,PH_sphere);
PHENT_SETMASS(MY,0.2,PH_SPHERE);
PHENT_SETFRICTION(MY,75);
PHENT_SETELASTICITY(MY,75,25);
PHENT_SETDAMPING(MY,50,75);
PH_SETGRAVITY(VECTOR(0,0,-386));
However, after the update 6.40.5, even recompiling the maps and the whole level, now the physics is very unstable, the friction and roation of the ball its not normal, seems to glide on the ground (blocks and sprites).
Sometimes the ball bounces against models, maps and blocks, and sometimes (almost all the time), the ball stays close to the model for some time, but rotating on the collision point.
It seems to have a delay on the collision response. Please, how can i solve this problem (diferent solution than downgrade the engine)?