Splines and curves

Hi!

One of my projects is a game in which you’re driving a car in a top-down perspective along a country road. I’d like to define the road by laying a spline that I can add control points to and move them around. Is this something you have planned?

As a followup request, it’d be sweet if it was possible to set a “width” on the spline (possibly a separate component type) and choose an atlas/anim that would be used to follow the spline and extend to the width of the spline, using the images in the anim as variation.

And while I’m at it, it’d be nice to have both bezier splines and hermite splines (I think that’s the correct term - i.e. splines where the curve passes through every control point), since they have different uses.

No, built in support for splines is not in the current plans. However, in the future you will be able to solve this through other means that are in the plans.

In the meantime I suggest that you work in an external program to produce the data you need. You can work with splines and export 3d model data for the graphics (see http://www.defold.com/doc/models) and some other kind of data that you can process in Lua to track edges, materials or whatever you need. It might be possible to create the roads in a 2D vector program like Illustrator and produce the required data from that. Will require some coding though.