// ebaender protected virtual void OnAttachedToHand(Hand hand) { firstComputationAfterAttached = true; attachedHandleType = hand.LastCollider.GetComponent <PageHandle>().handleType; hand.Hide(); if (rotateGameObject && rotateAfterDetach) { transform.localRotation = start; } if (Book.pagePhysicsController != null) { Book.pagePhysicsController.PageDriveAttached(hand); } }
// ebaender protected virtual void OnAttachedToHand(Hand hand) { firstComputationAfterAttached = true; attachedHandleType = Book.coverMapping.value > 0.5f ? PageHandle.Type.Cover : PageHandle.Type.Back; hand.Hide(); if (rotateGameObject && rotateAfterDetach) { transform.localRotation = start; } if (Book.coverPhysicsController != null) { Book.coverPhysicsController.DriveAttached(); } }