Update 3D rotation.