www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Mr. K on April 20, 2016, 10:52:19 am

Title: BoundingBox
Post by: Mr. K on April 20, 2016, 10:52:19 am
Hi guys i got another question, how can i show the bounding Box of an object, i use the method getBoundingBow() for get the coordinates, there are a method for show it? or i must draw the lines, if i must draw, how can i draw a line?

thnx
Title: Re: BoundingBox
Post by: EgonOlsen on April 20, 2016, 03:42:25 pm
You could use the Polyline class for this and set the object in question as the parent ( http://www.jpct.net/jpct-ae/doc/com/threed/jpct/Polyline.html#setParent(com.threed.jpct.Object3D) (http://www.jpct.net/jpct-ae/doc/com/threed/jpct/Polyline.html#setParent(com.threed.jpct.Object3D)) ).