Hi again @AlexColgan I managed to do that using the condition if(IsActive) which checks for a pinch. Now I can open the book with pinch and I am trying to open the pages with _lastPosition.x coordinates and _lastRotation.x To open the pages on the left works but to open on the right does not work and I believe is because I am not putting the coordinates right:
Video:
https://drive.google.com/file/d/1WV713awdmIJKU5hJEGMo3hNd5jpjg4Vk/view?usp=sharing
Code below:
}else if (HoverStaySpectacles.activeSelf && (_lastPosition.x > 0 && _lastRotation.x < 0) && !SpectaclesBook.IsFirstPageGroup)
{
Debug.Log("Turning the page to the right");
SpectaclesBook.TurnToPage(SpectaclesBook.CurrentLeftPageNumber - 2, EndlessBook.PageTurnTimeTypeEnum.TimePerPage, 1f);
}else if (HoverStaySpectacles.activeSelf && (_lastPosition.x < 0 && _lastRotation.x > 0) && !SpectaclesBook.IsLastPageGroup)
{
Debug.Log("Turning the page to the left");
SpectaclesBook.TurnToPage(SpectaclesBook.CurrentLeftPageNumber + 2, EndlessBook.PageTurnTimeTypeEnum.TimePerPage, 1f);
}