Ejemplo n.º 1
0
    Quaternion RotationFromJoystick(Joystick joy) //MovingJoystick move)
    {
        float angle = joy.GetAngle();             //move.Axis2Angle( true );

        //RotationFromJoyStick = Quaternion.Euler( 0, BaseCamera.transform.rotation.eulerAngles.y + angle, 0 );
        RotationFromJoyStick = Quaternion.Euler(0, (angle + BaseCamera.transform.rotation.eulerAngles.y), 0);
        return(RotationFromJoyStick);
    }