Rigidbody reset rotation

Hey there! Anyone there knows how to set or reset a rigidbodys rotation??

the problem is:

I have a Rigidbody based enemy that when I am in a certain distance he stops and begin to patroll but if he falls or if he is launched or something he doesnt get up after the "waketime".

Does anyone have a light??

Thanks alot!

Here’s how I reset the position/rotation of a rigidbody physics object in my game:

// Reset the velocity
rigidbody.velocity = Vector3.zero;
rigidbody.angularVelocity = Vector3.zero;

// "Pause" the physics
rigidbody.isKinematic = true;

// Do positioning, etc
transform.position = areaStartNode.position;
transform.rotation = Quaternion.identity;

// Re-enable the physics
rigidbody.isKinematic = false;

Maybe you will need a rigidbody.WakeUp() at the end too.