Hello
Using physics engine to create ball:
VECTOR BulletPos;
VECTOR vKick;
vec_set(BulletPos.x,camera.x);
eBall = ent_create("ball.mdl",BulletPos,NULL);
set(eBall,SHADOW);
eBall.material = mat_metal;
phent_settype(eBall,PH_RIGID,PH_SPHERE);
phent_setmass(eBall,1,PH_SPHERE);
phent_setfriction(eBall,90);
phent_setelasticity(eBall,85,100);
phent_setdamping(eBall,30,5);
vec_for_angle(vKick.x,camera.pan);
vec_scale(vKick,1000);
phent_addvelcentral(eBall,vKick);
attaching this function to keyboard and when pressing the key, key "shoots" nicely ball to the direction of camera. The only problem is that if ball hits perpendicular (about 90 degrees) to mountain or if I drop it directly towards ground the ball gets stucked and can be there several seconds and then suddenly bounces off. If there is less angle like 45, ball never gets stucked. Any idea how to get rid of this problem. Sed version number is 7.36.1 and engine is v7.86.2 commercial edition.
Can anyone help