So, I need on some special item pickup player rotation will be increased by 2 times.
private float IncreaseCoef = 2f;
void setNewData()
{
Camera cam = GetComponent<Camera>();
cam.SetStereoViewMatrix(Camera.StereoscopicEye.Left, cam.worldToCameraMatrix);
cam.SetStereoViewMatrix(Camera.StereoscopicEye.Right, cam.worldToCameraMatrix);
Player1.transform.localRotation = getRotation() * IncreaseCoef; //HERE I AM TRYING INCREASE
public Quaternion getRotation()
{
Quaternion rotation ;
rotation.x = -curr_pose.q_y;
rotation.y = curr_pose.q_z;
rotation.z = -curr_pose.q_x;
rotation.w = curr_pose.q_w;
Vector3 eul_rotation ;
eul_rotation.x = -rotation.eulerAngles.x;
eul_rotation.y = -rotation.eulerAngles.y ;
eul_rotation.z = rotation.eulerAngles.z ;
Quaternion adjusted_rotation = Quaternion.Euler(eul_rotation) ;
DataForCalcR = rotation;
return adjusted_rotation;
}