How to draw the area of collision of an object?
How to draw the area of collision of an object?
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?
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.
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?
thanks. another questions, Sphere uses BoundinBox or BoundisSpheres for the collisions??
Re: How to draw the area of collision of an object?
A sphere still has a bounding box which resides in the broad phase, but the actual collision shape is a sphere.