Hi, I am trying to create body from realtime video stream. I am using opencv for extracting contour (simple absdiff with background image + findcontours). Then i use subdiv2d also from opencv, to triangulate contour shape. Until now everything goes great. I can create body from many fixatures containing triangles, and it is interacting with other box2d bodies. When contour isnt moving, the collisions are fine and for example newly created circle body is bouncing after colision with contour. The problem is, that when the contour is moving, and collision ocours, it didnt pass the velocity to the object that it colide with. My algorithm looks like that at every frame captured by camera:
Extract and triangulate contour
Create fixtures from triangles
Create body and attach fixtures
Render objects
Destroy body
Thanks for any help,
napent
Extract and triangulate contour
Create fixtures from triangles
Create body and attach fixtures
Render objects
Destroy body
Thanks for any help,
napent