Farseer Physics: Ways to create a Body?

Posted by EdgarT on Game Development See other posts from Game Development or by EdgarT
Published on 2012-09-03T05:12:39Z Indexed on 2012/09/03 9:50 UTC
Read the original article Hit count: 239

I want to create something similar to this using farsser and Kinect:

https://vimeo.com/33500649

This is my implementation until now:

http://www.youtube.com/watch?v=GlIvJRhco4U

I have the outline vertices and the triangulation of the user. And following the Texture to Polygonmsample i used this line to create the shape, where farseerObject is a list of vertices of the triangles:

_compound = BodyFactory.CreateCompoundPolygon(World, farseerObject, 1f, BodyType.Dynamic);

But I have to update the body each frame (like 30 fps) and this is very slow. I get just 2 or 3 fps.

There's another (faster) way to create the Body from a list of triangles or the contour vertices?

© Game Development or respective owner

Related posts about XNA

Related posts about c#