I am trying to create an in-game model viewer. Right now I have the ability to click on a Physics Object and have it appear in front of the character and when Spacebar is pressed, the object goes back to its original position and rotation. The problem I’m having is that the player can still move around with the object in front of them.
What is the best way to disable player movement and rotation while the object is in front of them?
I would like the end result to be:
On left click -> object shows up in front of the player -> disables player movement and rotation -> enables object rotation via mouse
On Spacebar -> object returns to original position -> enables player movement and rotation -> disables object rotation
Any help would be greatly appreciated! Thanks