Skip to content

Circuit racer

For creatorsAdd-on 2.2.2+

You build a three-lap race on a closed circuit: four cars that dent and lose parts, tyre walls and rails, a pit box, and three AI rivals who start ahead of you.

▶ Play the circuit racer — W / S throttle and brake · A / D steer · Space handbrake · I engine on or off · Backspace back on the track · Enter to the grid · mouse wheel: how far W presses the pedal.

The demo is four cars on a 613 m circuit, three laps, and you start fourth. There is no game code in it. The race is made of pieces you can put in any scene: a race line, barriers, loose props, a pit box, grid slots, breaking parts, a player’s car and AI racers.

  • Blender 5.2 with the Simulacrum add-on 2.2.2 or later (install it).
  • Four car models. Each car’s wheels are either their own objects, named with the word Wheel, tyre, tire or rim, or round parts of the body mesh.
  • A third-person player and solid scenery. In Properties ▸ World ▸ Simulacrum, set Player ▸ Player to Third Person, and tick Nav Mesh ▸ Everything you see is solid. They write the scene tags player.controller = third and collision.default = mesh. Without a third-person player, nobody can drive.

Most of the buttons below are in the Make menu at the top of Properties ▸ Object ▸ Simulacrum, under Racing and Vehicles. Once an object is a race line, a pit box, a racer, a barrier or a loose prop, the Racing panel below shows its settings; a car has a Vehicle panel.

  1. Add a Bézier curve and shape it into your circuit. In Edit Mode, choose Curve ▸ Toggle Cyclic so the curve closes into a lap. The start/finish line is where the curve starts, and the race runs the way the curve runs.

  2. With the curve selected, choose Make ▸ Make Race Line. In its dialog, set Laps to 3, Checkpoints to 8 and Track width to 14. The Racing panel now reads A race line — a circuit and its length.

  3. Still in the Racing panel, set Grid slots to 4, tick Line up as it opens, and set Player’s slot to 4. The field will line up on the grid when the scene opens, with you last.

  4. Model the road under the line: any mesh the cars can drive on. Edit the curve later and the race follows it. The add-on reads the curve’s shape again every time you press Play or Build.

In play, each checkpoint becomes a gate with a post either side, and the start/finish gets a chequered strip. A lap counts only when you pass every gate in order, so a shortcut that misses one does not count.

  1. Select a wall or rail around the track, choose Make ▸ Make Barrier, and pick what it is (the Racing panel’s Barrier changes it later):

    Barrier What a car hitting it feels
    Tyre wall Absorbs most of the crash. The car takes about a third of the energy
    Hay bales Absorbs more than tyres
    Foam Absorbs nearly all of it
    Steel guardrail Gives a little. A car slides along it
    Concrete Absorbs nothing: the hardest crash

    Put tyre walls on the outside of the bends and rails along the straights.

  2. Select a cone, a barrel or a tyre stack, choose Make ▸ Make Loose, and pick its kind (Cone, Barrel, Tyre stack, Hay bale, Crate, or Other). A car knocks it over and scatters it. In a race, each cone knocked out of place adds Cone penalty (s) to your time (1 s unless you change it on the race line), and the start lights put every prop back.

  3. Add a flat mesh beside the main straight for the pit box. Select it, choose Make ▸ Make Pit Box, and set Time to 6 seconds (the Racing panel’s Pit stop (s) changes it later). Leave a gap in the barrier so a car can drive in.

Stop on the pit box (under 2 km/h, the middle of the car on it) and a crew repairs the car, refuels it and resets its tyres in 6 s. The race clock keeps running.

  1. Select a car’s body and choose Make ▸ Make Vehicle. In its dialog choose a Handling row (Sports, Muscle or Compact suit a race) and the axis the model’s front faces (Front), then press OK. It finds the wheels and makes the car drivable. Do this for all four cars.

  2. Give each car parts that can break. If a door, a mirror, a bumper or a window is its own object parented to the body, add the tag vehicle.break with its kind. If the car is one fused mesh, press Break Up in the Vehicle panel’s Damage section: it finds the pieces, splits them out and tags them. For a windscreen fused into the body, select its faces in Edit Mode and press Mark as Glass.

  3. Leave Body bends in the Damage section on The scene’s. The scene’s own setting, in Properties ▸ World ▸ Simulacrum ▸ Vehicles in This Scene, is Dent map unless you change it: it dents the body at almost no cost per crash. Lattice folds and tears the metal but costs much more while the car moves.

A part breaks off when the body around it has bent far enough and a crash near it was fast enough. A mirror goes at a light knock; a door needs a hard hit. Glass shatters into shards; anything else flies off as debris, dents and all. An explosion takes everything, and a repair or a pit stop puts it all back.

  1. Select your car and choose Make ▸ Make Player Car. You start in it: the hero gets in as the scene opens.

  2. Select the other three cars and choose Make ▸ Make AI Racer. Set Skill between 0.5 and 1 (how close to the limit it drives). In the Racing panel you can change each one’s Skill and, if you like, its Lane (m): metres right of the line it holds.

  3. Press Play in the 3D View’s header (preview your scene). The field lines up on the grid, three red lights come on a second apart, then GO, and the rivals pull away.

The rivals drive the cars the way you do, with pedal, wheel and handbrake. They hold their lane through a bend, slow down early for tight corners, pull out to pass a slower car, and back out when they are stuck. A rival stuck for 8 s is put back on the line. Each rival starts only at your GO.

The HUD shows your position (P4 / 4), the lap timer, splits against your best lap and WRONG WAY when you turn round. The finish card lists the whole field, finishers by time.

Everything a car does elsewhere still applies. The engine stalls and restarts with W, and I switches it off. Fuel burns, tyres lose pressure, and oil and coolant leak onto the road and change its grip. A holed tank can catch fire and, rarely, explode. On a wet road the tyres throw spray. See driving.

Tag Values What it does
race.line 1 This curve is the race line (Make Race Line)
race.laps a number Laps in a race
race.checkpoints a number Gates along the line, the start/finish among them
race.width metres A gate passed further off the line than half of this is missed
race.grid a number Grid slots behind the start line
race.autostart 1 The field lines up as the scene opens
race.playerSlot a number The player’s grid slot (1 is the pole)
race.conePenalty seconds Added for each cone knocked over (default 1)
barrier tyres · hay · foam · armco · concrete What a crash into it feels like
loose cone · barrel · tyres · hay · crate A prop that moves when hit
pit · pit.time 1 · seconds A pit box and how long a stop takes
vehicle.break glass · door · spoiler · bumper · mirror · light · trim A part that can break off
vehicle.player 1 The player starts in this car
vehicle.ai racer An AI rival
vehicle.ai.skill 0.5 to 1 How close to the limit it drives
vehicle.ai.lane metres How far right of the line it drives (negative: left)

Next, put an arcade cabinet on it: Circuit racer arcade. For every vehicle setting, see make a vehicle.