I want to create something similar to this using farsser and Kinect:
This is my implementation until now:
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?
How do you think they do this on Box2D?
After some testings i used EdgeShapes for the user contour (without triangulation) and i update the vertices for that edges in the fixtures every frame, now all is faster.
((EdgeShape)(farseerBody.FixtureList[i].Shape)).Vertex1 = new Vector2(farseerVertices[i].X, farseerVertices[i].Y);
But the collisions does not work!
My approach is incorrect?