Page 1 of 1
How to draw the area of collision of an object?
Posted: Thu Jul 07, 2011 5:09 pm
by sazon
I just want to display in the area of collision wire of some object. this only for testing
Re: How to draw the area of collision of an object?
Posted: Thu Jul 07, 2011 5:28 pm
by Norbo
The BEPUphysicsDrawer's ModelDrawer provides debug/testing drawing systems for entity shapes. You can set a ModelDrawer's IsWireframe property to true to make it draw a wireframe.
The BEPUphysicsDrawer source can be found in the main source download:
http://bepuphysics.codeplex.com/SourceC ... changesets
Or, if you're drawing debug objects for testing outside of the model drawer, you can just set the rasterizer state to draw a wireframe.
Re: How to draw the area of collision of an object?
Posted: Thu Jul 07, 2011 6:03 pm
by sazon
thanks. another questions, Sphere uses BoundinBox or BoundisSpheres for the collisions??
Re: How to draw the area of collision of an object?
Posted: Thu Jul 07, 2011 6:25 pm
by Norbo
A sphere still has a bounding box which resides in the broad phase, but the actual collision shape is a sphere.