Jump to content

Get polygon of an object


Soldtodie

Recommended Posts

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 by Khaleesi
  • Like 1
Link to comment
Share on other sites

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

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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