Page 1 of 1

How can I draw the exact bounding volume?

Posted: Thu Nov 18, 2010 3:20 pm
by Spankenstein
How can I expose the vertices of an entities' bounding volume, so I can draw it?

Drawing the entities' bounding box isn't accurate enough and I need to make sure my models are centred correctly.

Thanks.

Re: How can I draw the exact bounding volume?

Posted: Thu Nov 18, 2010 9:10 pm
by Norbo
The BoundingBox is the bounding volume. Graphics for actual shapes can be computed knowing the dimensions and what kind of shape it is; the BEPUphysicsDrawer (in the BEPUphysicsDemos source) has an implementation that creates a vertex/index buffer for every shape type if you'd like a reference.

Re: How can I draw the exact bounding volume?

Posted: Fri Nov 19, 2010 12:38 pm
by Spankenstein
Perfect. Thank you very much :)