unity Rotate between min and max distance
问题 I'm trying to make it possible to drag an object. This object can only rotate so much. (Similair to a door). Here is the code abit edited that rotates an object which works. I have 2 vectors for maxrotation and minrotation. This code will be called whenever the user is dragging the interactible object. (like update but only when dragged) if (GestureManager.Instance.IsNavigating && HandsManager.Instance.FocusedGameObject == gameObject) { //speed and navigiation of rotation float rotationFactor