Jump to content

getCamera().moveYaw(n) docs are wrong, or there is a bug


Sana

Recommended Posts

Go to these docs and search for "moveYaw".

Clearly it says:

Quote
Returns:
Will always return true since the camera is asynchronous!

It also specifically says to use 0 for NORTH:

Quote

Rotates the camera yaw to the specified angle. Compass upside pointing to NORTH = 0, SOUTH = 180, WEST = 90, EAST = 270;

In my code, I do the following:

paint.state("Moving camera north...");

if (!moveCameraNorth()) {
    paint.state("Failed to more camera north.");
    return false;
}
private boolean moveCameraNorth() {
    return getCamera().moveYaw(0);
}

I see this in the logger:

Quote

[INFO][Bot #1][05/10 02:45:44 PM]: Moving camera north...
[INFO][Bot #1][05/10 02:45:44 PM]: Failed to more camera north.

Why does this happen? Completely goes against the documentation. There is no stack trace or any other error, just my own logs.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...