1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resource Basic Camera pitch and yaw

Discussion in 'Tutorials & Resources' started by SkydemonxX, Mar 1, 2016.

  1. SkydemonxX

    Joined:
    Mar 26, 2015
    Messages:
    33
    Likes Received:
    0
    For anyone who doesn't know which is pitch and yaw. Here you go.

    Example:
    Camera.turnTo(306,1);

    306 is yaw and 1 is pitch.

    yaw = left to right, Ranges from 0-359 (int values).
    pitch = up and down, Ranges from 0 to 1 in OSRS & 0 to 0.666 in RS3 (double values).

    This would turn the cameras (yaw) 306 degrees and its (pitch) all the way up.

    To see the current pitch and yaw, go into the Development Toolkit and go to Miscellaneous.
     
    #1 SkydemonxX, Mar 1, 2016
    Last edited: Mar 1, 2016
  2. Savior

    Savior Java Warlord

    Joined:
    Nov 17, 2014
    Messages:
    4,906
    Likes Received:
    2,748
    It would be good to mention that yaw ranges from 0-359 (int values), and the pitch ranges from 0 (0 might be incorrect, correct me here) to 1.0 in OSRS and 0.666 in RS3 (double values).
    Going out of these ranges will result in an exception.

    1 would turn the pitch all the way up.
     
  3. SkydemonxX

    Joined:
    Mar 26, 2015
    Messages:
    33
    Likes Received:
    0
    Added these points to the post.
     

Share This Page

Loading...