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.
How can I draw the exact bounding volume?
-
- Posts: 249
- Joined: Wed Nov 17, 2010 1:49 pm
Re: How can I draw the exact bounding volume?
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.
-
- Posts: 249
- Joined: Wed Nov 17, 2010 1:49 pm
Re: How can I draw the exact bounding volume?
Perfect. Thank you very much