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
i have tried
void lateupdate() { camera.transform.rotate(transform.rotation.eulerangles * -1); } but reason, camera rotates 360 degrees after half way of swing.


Comments
Post a Comment