Soldtodie Posted February 20, 2015 Share Posted February 20, 2015 How can I get the polygon of an object? Thanks. Link to comment Share on other sites More sharing options...
Khaleesi Posted February 20, 2015 Share 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 Link to comment Share on other sites More sharing options...
Mysteryy Posted February 20, 2015 Share 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. Link to comment Share on other sites More sharing options...
Soldtodie Posted February 20, 2015 Author Share Posted February 20, 2015 Thanks to Khaleesi Can be closed! 1 Link to comment Share on other sites More sharing options...