07.06.2016, 07:19
CA_RayCastLine from the object's position to a small distance below the object. If the function returns anything other than 0 then it's close to the ground.
If you want the object to align to the ground, use CA_RayCastLineAngle and use the angles retrieved for the object rotation.
If you want the object to align to the ground, use CA_RayCastLineAngle and use the angles retrieved for the object rotation.