Added ComputeDirection, GetCenter, and ComputeGroundHeightChange