Jump to content

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


Recommended Posts

Posted

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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