unity launch object and rotation right when it is about to hit the ground code example
Example: hwo to prevent rotation after hitting an object in unity
private void OnCollisionEnter(Collision collision)
{
GetComponent<RigidBody>().freezeRotation = true;
}