Keeping player's character from rotating when bumping into object

anyone have a good method or suggestion that prevents objects from rotating the character? my original thinking is to just check if the property has changed and then set it back to the default orientation… but if someone has a simpler or more efficient way then please lmk.