Little improvements and new functions.

Added PHY_ApplyRotation, PHY_GetObjectSpeed and PHY_GetObjectMoveAngle.
Use of foreach.inc to optimizate the script.