schmelczer-dev/src/content/posts/city-simulation-unity-traffic.md
Andras Schmelczer fcec028c74
All checks were successful
Deploy to Pages / build (pull_request) Successful in 3m1s
Update
2026-05-28 15:36:34 +01:00

1.3 KiB

title description date projectPeriod thumbnail tags role stack outcome audience links
A Unity City Where Bad PLC Code Made Cars Crash A REST-controlled traffic-light sim for a cybersecurity event. Bad PLC code showed up as car crashes, the most honest feedback loop I've shipped. 2026-05-01 July-August 2018
src alt
./_assets/city-simulation.jpg Screenshot of a Unity traffic simulation.
simulation
systems
Simulation author
Unity
C#
REST API
Blender
Visible consequences for an otherwise abstract PLC challenge technical

Most security challenges punish wrong answers with a red "incorrect." This one punished them with car wrecks, and people learned faster. A PLC cybersecurity event in the summer of 2018 needed something visceral; I built a small Unity city where the traffic lights were driven by a REST API and contestants wrote the control logic.

All decisions ran on the server and got broadcast to clients. The harder problem wasn't the simulation; it was making the broadcast fault-tolerant on conference Wi-Fi without flooding it. I built it solo, including the models and animations in Blender. Not a flex, just context for why everything's a little janky.

There was also a HUD overlay for tweets. It felt clever at the time and dated horribly. Skip that part.