Why dont you use physics engine?
For example you can active an entity as a "physics-enables" object this way:

phent_settype( BallEnt, PH_RIGID, PH_SPHERE);

Look the manual for detailed info.


every body got some dues in life to pay