Hi all. I want to create a curved ground like in tiny wings using svgkit, i saw the ray wenderlich tutorial but that tutorial does not use a predefined path, I want a predefined path in the form of svg. I have seen levelsvg but i want it in SVGkit. I know this can be done but i cant find the related code for it. SVGKit will give the points on the curved path which will be used to draw the terrain. Thank you.
Creating a Curved ground using SVGKit
iPhoneIf you have the points on the path, can't you just make a chain shape from them?
irresistible force wrote:If you have the points on the path, can't you just make a chain shape from them?
actually i want to extract the points from svg curve.
I see. I'm not sure that many people on these forums would be able to help specifically with parsing an SVG file, as it's not related to Box2D.
There are some open source implementations around you could look at, eg http://www.w3.org/Amaya/User/SourceDist.html
There are some open source implementations around you could look at, eg http://www.w3.org/Amaya/User/SourceDist.html
okay 🙁
Original thread: https://box2d.org/forum/viewtopic.php?t=9064