How to Disable Rotation on Collision?

I can’t seem to get this to work. Can you elaborate?