Render Collision Mesh
Posted: Sat Nov 05, 2011 2:11 pm
Hi!
I'm trying to implement a debug view, where I can see the collision meshes of all scene objects, espacially of those ones having a convex hull shaped collision mesh. I'm using the vertices of the collision infomation shape of the entity class, but it seems like that I cannot render them as a closed mesh, because I have no idea how they are arranged. Do they match a specific XNA primitve type or do I have to use indices to render them?
Thanks
Izzo
I'm trying to implement a debug view, where I can see the collision meshes of all scene objects, espacially of those ones having a convex hull shaped collision mesh. I'm using the vertices of the collision infomation shape of the entity class, but it seems like that I cannot render them as a closed mesh, because I have no idea how they are arranged. Do they match a specific XNA primitve type or do I have to use indices to render them?
Thanks
Izzo