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

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -

angular - DownloadURL return null in below code -