Code Monkey home page Code Monkey logo

Comments (4)

AnthonyvW avatar AnthonyvW commented on June 22, 2024

This appears to be due to the center of blocks being offset by 0.5. Line 720 in PathfindingTask.cpp compensates for this when the coordinates are positive, but that compensation causes the destination to be wrong when the coordinates are negative.

from botcraft.

AnthonyvW avatar AnthonyvW commented on June 22, 2024

Overall this seems to be more of an issue with how intuitive the input is. Since the coordinates gotten from F3 don't seem to make a difference if you specify the center of the block or the corner the user won't know to compensate for the 0.5 being added to the coordinate by subtracting one from the X and Z coordinates.

from botcraft.

adepierre avatar adepierre commented on June 22, 2024

Thanks for the report and the detailed repro steps 👍

Will look into it today, it should not be too hard to fix

from botcraft.

adepierre avatar adepierre commented on June 22, 2024

I can't seem to reproduce the issue on my side.

If I use BCChatCommand goto -15 1 -9 the bot ends up at -14.5 1 -8.5 i.e. at the center of the block with coordinates -15 1 -9.

The whole pathfinding system is block based and the bot will always go from the center of one block to the center of the next. So I feel it's more natural to have the input as block coordinates and then add the 0.5 rather than ask user to always make sure they specify .5 coordinates to make sure it's the center of a block.

Let me know if there is something I misunderstood.

from botcraft.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.