Soldtodie Posted February 20, 2015 Posted February 20, 2015 How can I get the polygon of an object? Thanks.
Khaleesi Posted February 20, 2015 Posted February 20, 2015 (edited) Do you mean something like this? Draw method for a shape around the object: g.draw(object.getModel().getArea(object.getGridX(), object.getGridY(), myPlayer().getZ())); If this doesn't answer your question, try to look in the Model class for what you need. Khaleesi Edited February 20, 2015 by Khaleesi 1
Mysteryy Posted February 20, 2015 Posted February 20, 2015 How can I get the polygon of an object? Thanks. Objects have both models, and bounding boxes. The model will consist of only the points that visibly make up the object. The polygon will include these points, and a lot that are outside of the object. I believe #getBoundingBox() is the method you are looking for.
Soldtodie Posted February 20, 2015 Author Posted February 20, 2015 Thanks to Khaleesi Can be closed! 1