TBOrbit.Start C# (CSharp) Method

Start() public method

public Start ( ) : void
return void
    void Start()
    {
        InstallGestureRecognizers();
        
        if( !panningPlane )
            panningPlane = this.transform;

        Vector3 angles = transform.eulerAngles;

        distance = IdealDistance = initialDistance;
        yaw = IdealYaw = angles.y;
        pitch = IdealPitch = angles.x;

        // Make the rigid body not change rotation
        if( rigidbody )
            rigidbody.freezeRotation = true;

        Apply();
    }