Corona SDK, Maths & physics

Corona SDK – Curve fitting 2 – Implementation of P.J. Schneider using cubic Beizer curves

Here's the original algorithm of the curve fitting: Sorry that I don't have time to explain about this algorithm at the moment but I WILL in the near future 🙂 so please just enjoy the sample I made below: Source code here in LUA for Corona SDK References: P.J. Schneider, "An algorithm for automatically fitting… Continue reading Corona SDK – Curve fitting 2 – Implementation of P.J. Schneider using cubic Beizer curves

Corona SDK, Maths & physics

Corona SDK – Curve fitting 1 – Implementation of Ramer-Douglas-Peucker algorithm to reduce points of a curve

This article is the first part of a two part tutorial to do curve fitting. The motivation to do this came when I was playing the Flight Control Center game on my IPhone. I was very interested in this kind of game and wanted to know how to build a game like that. I wrote… Continue reading Corona SDK – Curve fitting 1 – Implementation of Ramer-Douglas-Peucker algorithm to reduce points of a curve