Curve
A Curve is a smooth line through a list of points. By itself it draws nothing in the game; it is a path. It can also be drawn as a tube, a road or a beam, or bend an object's mesh along it. Put an object on it with the Follow curve behavior and it travels along: a train on rails, a patrolling guard, a camera flythrough, a moving platform with a curvy route.
Add a curve
Objects → + Add → Curve. You get a curve with four points. Select it and the points show as dots in the viewport.
- Drag a dot to move it.
- Tap a dot to pick it. The move handles appear on it: drag an arrow to slide it along one axis, or a square to slide it in a plane.
- Switch to the Rotate tool with a point picked to tilt it (below).
- Tap empty space to let go of the point.
- Double-tap on the line (with the curve selected) to put a new point there. The line keeps its shape.
- Delete (keyboard) removes the picked point.
Moving or rotating the curve object moves the whole path, so you can place a finished track anywhere.
Settings
| Setting | What it does |
|---|---|
| Curve type | Smooth (centripetal) is the default and never loops or overshoots at tight corners. Catmull-Rom (tension) adds a Tension slider (0–1). Chordal hugs the points more tightly. Bezier (handles) gives every point a handle you drag to shape the bend (below). |
| Closed | Joins the last point back to the first, for a race track or a patrol circuit. |
| Points | Each point has a Position (X Y Z) and Tilt° · Scale. + next to a point's number puts a new point halfway to the next one, × removes the point (a curve keeps at least 2). + Add point adds one after the last (up to 64). Subdivide puts a new point in the middle of every stretch, for finer control; the line keeps its shape. |
Bezier handles
With Curve type: Bezier (handles), pick a point and two cyan dots appear on a line through it: the point's handle. Drag a dot to bend the curve at that point. The farther the dot, the wider the bend; the line shows which way the curve passes through.
Each point's Handles setting says how its two dots behave:
| Handles | What it does |
|---|---|
| Auto | Worked out from the neighbouring points, so the line is always smooth. The default for every point. Dragging a dot switches the point to Aligned. |
| Aligned | The two dots stay on one straight line, so the curve stays smooth through the point. |
| Free | Each dot moves on its own: the line can turn sharply at the point. The card shows Out and In. |
| Sharp corner | No handles: the line comes into the point and leaves it in a straight corner. |
- Shift + drag (mouse) moves the dot up and down instead of over the ground.
- The point's card has Handle (or Out and In) X Y Z if you want numbers.
- Inserting a point (+, double-tap, Subdivide) splits the bend so the line does not change.
Scale
Scale sets how big a copy is at that point: 1 = as it is, 2 = twice as big. It eases between points like Tilt. It is used by Repeat along curve, so fence posts, trees or lamps can grow along the path.
Tilt
Tilt rolls an object around the direction it is travelling, the way a plane banks into a turn or a roller coaster leans on a bend. It is set per point, in degrees. Positive leans to the right, looking the way the object travels.
- With a point picked, choose the Rotate tool: one ring appears around the line's direction. Drag it. Snap makes it step by 15°.
- Or type a value in the point's Tilt (°) field.
- A short cyan stick on every point shows which way is up there.
Between two points the tilt eases smoothly from one value to the other, so give a banked corner a tilt and the points on each side 0.
Tilt only affects objects that follow the curve with Face forward on.
Draw it as a solid
In the Curve card's Geometry group, set Profile to Tube, Flat strip or Beam. The curve object gets a Shape & look component with the shape Along curve, and the line is drawn in the game as a solid, with the usual material, texture, shadows and glow: a pipe, a rope, a rail, a road, a path, a ribbon. This is like the bevel of a curve in Blender. None takes the solid away again.
| Setting | What it does |
|---|---|
| Profile | Tube is round (pipe, rope, cable). Flat strip is a flat band (road, path, river bank). Beam is a rectangle (a plank, a rail, a girder). |
| Radius | (Tube) How thick it is. |
| Width | (Flat strip and Beam) How wide it is, in meters. |
| Thickness | (Beam) How thick it is. |
| Sides | (Tube) How many flat sides make the round shape. 8 is fine for most things. |
| Detail | How many pieces each stretch between two points is cut into. More looks smoother on tight bends and costs more. |
| Closed ends | (Tube and Beam) Close the two ends of an open line. |
| Tile length | How many meters of line one repeat of the texture covers, so a road texture keeps its size however long the road is. 0 stretches the texture once over the whole line. |
The curve's points shape it:
- Scale on a point makes it wider or thicker there (a road that widens at a junction, a rope that thins out).
- Tilt banks it, so a road leans into a corner.
A flat strip stays level; across a slope it keeps its width and follows the line up and down.
Colliders. Add a Collider with the shape Auto (or leave the shape alone) and an object that never moves gets a collider that follows the real surface, so a car drives on the road and a ball rolls through the pipe. A moving object, or a trigger, gets a row of small pieces along the line instead. Convex wraps the whole curve in one hull.
You can still put copies along the same curve with Repeat along curve, for example fence posts beside a road you drew with this.
Bend a mesh along it
A shape or a 3D model can follow the line itself, bending as it goes: a snake, a curved pipe made from a model, a rail track, a fence, a twisting bridge. This is Blender's Curve modifier.
- Select the object you want to bend (a cube, a cylinder, an imported model…).
- Add component → Curve. The curve is in the object's own space, so it starts where the object is.
- In the Curve card's Geometry group, set Profile to Bend the mesh.
- Drag the curve's points; the mesh follows.
| Setting | What it does |
|---|---|
| Axis | Which side of the mesh runs along the line. -Z (the default) is the way objects face; pick +X for a model that is long from left to right. |
| Fit | Stretch to the end: the mesh (or its copies) is stretched to reach exactly to the end of the line. Keep length: it keeps its own length and covers only that much of the line. Fill with copies: as many copies as fit, end to end, stretched a little so the last one ends at the end. |
| Copies | (Stretch and Keep length) How many copies are put end to end. |
| Offset | Where along the line it starts, in meters. |
| Gap | Space between copies, in meters. |
- The curve's points shape it as they do a drawn solid: Scale makes it bigger there, Tilt banks it.
- The other two sides stay across the line (to its right and up), so a fence stays upright and a rail keeps its shape.
- A cube, plane or cylinder is cut into more pieces along the bend by itself, so it bends smoothly. A model bends at its own vertices: a model with long, flat faces and few points along its length bends in steps. Model it with more cuts along that axis.
- On an open line, a mesh longer than the line carries straight on past the end.
- Colliders follow the bent shape: an object that never moves gets its real surface, a moving one gets convex pieces.
- Animated (skinned) parts of a model and blend shapes are not bent.
Events
| Block | When |
|---|---|
| On reached end of curve | An object with Follow curve got to the end: each time round when it loops, each end when it ping-pongs, once when it plays once. |
| Compare curve progress | Progress is 0 at the start and 1 at the end. |
| Set curve progress | Jump to a place on the curve. |
| Play / pause curve | Play, Pause or Restart from the start. |
They show up under the Curve group for objects that have the Follow curve behavior.
On Train reached the end of its curve → Add 1 to Laps
Compare Train curve progress ≥ 0.5 → Show "Halfway!"
In scripts, onCurveEnd() runs on the entity, and entity.behavior('followCurve') has progress, distance, length, isMoving, isReversed, play(), pause() and restart().