@Gallo wrote:
hello,
I am playing with ofxSVG and ofxBox2d and try to mix the use of both in an example app
I would like to create a wireframe world in SVG format and use the shapes as edge lines in an Box2d world.
Say i draw a rectangle with inkscape and save it as wire.svgI would like to read it in my app and use this shape as an edgeline that interacts with emitted box2d circles.
I am quite new to using these two addons and i have some hard time understanding how ofPath and ofPolyline works.
I understand i must grab the shape from the svg and add its vertices to my box2d edgeline shape and make it interact with generated shapes. But i am lost translating it code wise.
Any help appreciated
thanks a lot
Posts: 2
Participants: 2