Hey there everyone,
I’ve ran in to a problem: I have a Prefab that follows my mouse and I am trying to rotate it (around the Y-axis). I’ve looked everywhere and tried everything but my prefab keeps spinning around in big circles (not around the Y-axis).
This is my current rotation code:
if(Input.GetKey(KeyCode.R)){ Instance.transform.Rotate(0,10,0); } ` Is anyone able to help me out? Note: the script is attached to my camera, I think it might have something to do with this (?) `
Edit: I fixed the script that causes my object to follow the cursor, it’s working properly now. Thanks all!