c# - Unity - Swing camera without affecting rotation -


i'm trying create swing vr camera not want rotation of camera's parent affect rotation of camera. have created configuration joint on fixed object connected camera's parent, joint configured follow

enter image description here

i have tried

void lateupdate() {     camera.transform.rotate(transform.rotation.eulerangles * -1);  } 

but reason, camera rotates 360 degrees after half way of swing.

enter image description here


Comments

Popular posts from this blog

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -

angular - DownloadURL return null in below code -