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 - Getting ESC characters and non-printables from UDP socket / buffer -

Convert excel to pdf with VBScript -