Ich hab ein Spiel mit einem Ball programmiert und dazu folgenden Code benutzt:
function myball()
{
.
.
.
ball=me;
ph_setgravity (vector(0, 0, -1000));
phent_settype (my, PH_RIGID, PH_SPHERE);
phent_setmass (my, 1, PH_SPHERE);
phent_setfriction (my, 100);
phent_setdamping (my, 50, 50);
phent_setelasticity (my, 40, 100);
.
.
.
while(1)
{
.
.
.
ball_speed.x = 20;
.
.
.
phent_addtorqueglobal(my, ball_speed);
wait(1);
}}
Das problem ist, der Ball flutscht manchmal einfach durch eine Wand hindurch....