Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
  • Shape recieved from getHullBounds() method doesn't follow moving object.


    Recommended Posts

    It is expected that shape recieved from getHullBounds() method doesn't follow moving object? 

    getBountingBox() is following after moving object, also tile but hull bounds only have actual rotation of observed object. Shape of the model also doesn't move.

    It's a bug or not?


    Draw Lines colors:
    Whilte - BoundingBox
    Yellow - Tile
    Red - Model shape
    Green - HullBounds

    Maybe i do something wrong to recieve actual model? That occurs ofcourse when is don't get new Object, but what for if tiles and rectangle are updated?

    Link to comment
    Share on other sites

    • 1 month later...
    			Iterator<Entity> et = entitiesToPaint.iterator();
    			while (et.hasNext()) {
    				Entity entity = et.next();
    					Model model = entity.getModel();
    					model = model.update(model);// what it do?
    					Point p = entity.getClickablePoint();
    					g.drawRect((int) p.getX() - 5, (int) p.getY() - 5, 10, 10);
    					Point center = model.calculateCenterPoint();
    					int x = (int) Math.round(center.getX());
    					int y = (int) Math.round(center.getY());
    					g.drawString("x", x - 2, y + 4);
    					g.drawRect(x - 1, y - 1, 2, 2);


    Link to comment
    Share on other sites

    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

    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.