SO:
code:
action stone
{
while(key_o == 0) { wait(1); }
phent_settype(my, PH_RIGID, PH_ball); // enable physics for this ball
phent_setmass(my, 100, PH_ball); // the ball has 1kg (2 lbs) and behaves like a sphere
phent_setfriction(my, 10); // friction
phent_setelasticity(my, 3, 0); // bounce a little
phent_setdamping(my, 0, 60);
temp.x = 0;
temp.y = 0;
temp.z = -380; // earth gravity factor, g = 9.81 m/s2
ph_SetGravity(temp); // set gravity
while (my.z > -160) {wait (1);} // the ball has approached the floor
phent_setelasticity(my, 0, 0);
phent_setdamping(my, 0, 100);
phent_settype(my, 0, 0);
phent_enable( my, 0 );
}
Nur weis ich net wie man die Physik vom Objekt weng nimmt...
burnner