How can I draw the exact bounding volume?

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
Spankenstein
Posts: 249
Joined: Wed Nov 17, 2010 1:49 pm

How can I draw the exact bounding volume?

Post 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.
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: How can I draw the exact bounding volume?

Post 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.
Spankenstein
Posts: 249
Joined: Wed Nov 17, 2010 1:49 pm

Re: How can I draw the exact bounding volume?

Post by Spankenstein »

Perfect. Thank you very much :)
Post Reply