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

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -