Drawing World Polygons in DebugViewXNA

Topics: Developer Forum, User Forum
Jul 22, 2011 at 11:04 AM

I have been trialling farseer 3.3 in XNA. For the life of me I cannot get DebugViewXNA to work.

I have a World object with a couple of bodies in there. The bodies are fixed to polygonal models, so I need the debugviewXNA class to draw these for me but cant find how to do it. I assume I need to pass it the vertices but cannot find how to access these from the World object nor do I understand which method to call exactly. 

Any help from those more experienced would be very much appreciated!

Thanks in advance

Jul 23, 2011 at 3:17 AM
Edited Jul 23, 2011 at 3:19 AM

DebugView does that for itself. Here is a sample class for you:


Jul 23, 2011 at 1:01 PM

Thanks zamarok thats the best example of it being used I have seen, ill attempt to implement from that example when I can get to my development pc