How to draw the area of collision of an object?

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
sazon
Posts: 15
Joined: Thu Jun 23, 2011 6:07 pm

How to draw the area of collision of an object?

Post by sazon »

I just want to display in the area of collision wire of some object. this only for testing
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: How to draw the area of collision of an object?

Post 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.
sazon
Posts: 15
Joined: Thu Jun 23, 2011 6:07 pm

Re: How to draw the area of collision of an object?

Post by sazon »

thanks. another questions, Sphere uses BoundinBox or BoundisSpheres for the collisions??
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: How to draw the area of collision of an object?

Post by Norbo »

A sphere still has a bounding box which resides in the broad phase, but the actual collision shape is a sphere.
Post Reply