Search Unity

Dive Sensors Rotation Control

Discussion in 'AR/VR (XR) Discussion' started by Pawar, Mar 25, 2015.

  1. Pawar

    Pawar

    Joined:
    Mar 25, 2015
    Posts:
    2
    I am using Dive Sensors in unity 5.0 beta,but i want to limit the left and right rotation.I have succesufully done the changes in the up and down angle rotation.Please help me what exactly i have to change.The right and left rotation is not getting affected if i make all the valuse zero..Following is the script with changes
    Thanks in advance

    #if UNITY_EDITOR
    private float sensitivityX = 10F;
    private float sensitivityY = 10F;

    private float minimumX = -0F;
    private float maximumX = 0F;

    private float minimumY = -40F;
    private float maximumY = 40F;

    float rotationY = 0F;