Verlet Voyage

A physics game for children on a soft-body solver I wrote from scratch, and the practical half of my dissertation on physics and player agency.

Highlight

  • Wrote the solver in C#
  • Designed and built the game, solo
  • Ran the playtests

Role

Designer and programmer

When

2024 to 2025

Team

Solo

Engine

Unity, custom physics

Shown at

UCL Degree Show, May 2025

Tags

Game · CG programming · Human-Computer Interaction (HCI)

Walkthrough on YouTube ↗

About

A physics adventure for children aged 6 to 10. Golf, an orange ball, crosses handmade levels to reach his friend Orb. The objects stretch, bounce and deform instead of behaving like rigid bodies, and each level works as a small physics playground. The style is 3D rendered as 2D.

Original / no internet assets applies to the core algorithms, assets, interactions and models, all self-developed. It does not cover music or skybox materials.

The question

Under the same input and in the same levels, does a ball that deforms change the player's sense of agency, compared with a rigid one?

This artefact is the practical half of my UCL dissertation (2025), since revised as How Can Soft-Body Physics Simulation Influence Players' Agency in Digital Games. Agency here is the fit between what a player wants to do and what the system can register. It shows up as an intention formed before a shot, an outcome the player attributes to their own action, and a next shot adjusted in the light of what happened. A second question follows: when do players turn what the deformation shows them into knowledge they use on the next shot?

The method is practice-based, and in HCI terms research through design: writing and tuning the solver was part of the inquiry. The analysis draws on affordance theory and on the Mechanics-Dynamics-Aesthetics framework.

MechanicsThe Verlet solver: a ring of 50 particles held by distance constraints and internal pressure. A drag-and-release launch. Levels drawn from static and dynamic particles.
DynamicsGolf squashes on impact and recovers. Where and how he hits a surface changes the bounce, so a result is harder to predict but easier to explain afterwards.
AestheticsThe felt sense of control and authorship: whether a shot feels like the player's own.

Rigid body: controllability

Same angle, same force, same result

Agency through precision and repetition, as in Angry Birds.

Soft body: explorability

Squash, rebound, try another way

Agency through trying, and reading how the ball deformed.

In this prototype the two balls leaned toward these two kinds of play. This is a tendency of these implementations and tasks, not a property of rigid or soft bodies in general.

The solver

Explicit Euler, the simplest integrator, adds a little energy to a spring at every step until the body comes apart. Verlet keeps each point's current and previous position and takes the velocity from the two, so the energy cannot grow, and the game can move points directly to hold Golf together.

In the final build Golf is a ring of 50 particles. Each fixed update runs four sub-steps, and more when a particle would move further in one step than the collision threshold, so fast shots do not pass through thin walls. Each sub-step runs 20 constraint iterations. A pressure term compares the ring's area with its rest area and pushes each particle outward in proportion to the shortfall; this is what makes the ball squash and recover. A collision with a drawn edge corrects a tenth of the overlap per iteration, so some deformation survives the contact.

Try it. Drag a point on either ball, and the same point moves in both.

Explicit Euler

Verlet

Both balls start squeezed by the same amount, with the same springs and the same time step. Drag a point in either ball and the same point moves in both. Stiffer springs make the Euler ball come apart sooner.

Play

Drag back

Golf stretches under the pull. The longer the line, the stronger the shot.

Aim

An arrow shows the direction and power of the shot.

Release

Golf rebounds into flight and squashes on impact.

On release an impulse is applied to every particle, and the next shot waits until the ball is at rest. There are 11 levels, each with a target past slopes, walls and moving bars. Testers found the first launch hard to control, so it was reworked in beta and the levels redesigned around it.
Level flow diagram
Planned engagement across the levels: bounce fields, arcs, soft zones, then all of them combined.

There is no text in the levels. The world is built from rounded shapes to match the elastic physics, in warm oranges and creams, with orange Golf and black Orb kept in contrast. Collision sounds make the physics easier to read, and the music changes a little from level to level.

Playtests

During development, alpha playtests with players in the target age range looked at how they understood soft-body motion and led to interaction changes. Beta widened the audience and brought the bigger changes: new level layouts, the reworked launch, and fixes to bugs that broke the flow.

What the development playtests found

  1. The ball read as alive. Players called the impact satisfying and the ball alive or reactive.
  2. Strategy came from experiment. They adjusted angle and timing by trial, reading how the ball answered.
  3. Openness brought ambiguity. Some could not tell what was interactive.
Verlet ball version history
Golf from V1 to V5, each version tuned against a playtest.

Soft ball against rigid ball

A within-subject playtest then compared the soft ball with a rigid ball, under the same input and in the same levels, with 7 adults. After a practice level, each played three test levels (a direct shot, a bounce and a moving bar) once with each ball. Four started with the soft ball and three with the rigid one. Each level had a three-minute limit, and players thought aloud. The rigid ball was a Unity Rigidbody2D circle with the same radius, texture and launcher.

Evidence came from behaviour, self-reports and what players said. The self-reports used adapted, unvalidated agency items and five Player Experience Inventory subscales. A changed shot did not count as agency by itself; a player's stated link between an outcome and the next intention did.

  1. No consistent agency advantage. The soft ball was rated 0.33 lower on the adapted agency items (7-point scale), and 0.52 higher on autonomy and 0.38 higher on curiosity. The agency differences changed direction between the two order groups.
  2. More surprising, still their own. Players rated the soft ball as more surprising, yet rated where it ended up as slightly more their own doing.
  3. Similar completion. 17 of 21 test levels were cleared with the soft ball and 18 with the rigid ball, over 104 and 95 attempts. The only difference was the bounce level, 6 of 7 against 7 of 7.

From outcome to next shot

On the soft-ball bounce level, players often explained a result by where and at what angle the ball hit. For two of them this became the basis of the next shot: "it pressed on this side and went long, so pull less next time". Unexpected rebounds could also upset a plan; two players who tried to keep to a planned route found them "hard to match to my original plan". Two players adjusted the same way with both balls, so some of this is general learning rather than deformation.

Could improve

  • Collision had no rotation or compound shapes, which limited the puzzles.
  • The difficulty step between levels 4 and 6 was too steep.
  • The story was thin.
  • The ball's stiffness depends on the number of iterations and the time step, not on a material constant.

Degree show

A visitor at a white table plays Verlet Voyage with a mouse while a level shows on a wall-mounted screen; orange and black balloons sit on the table and on the blue wall, with tablets and the wall label nearby
UCL BA Media Degree Show, May 2025.
A wall-mounted screen showing the Verlet Voyage title over a 3D scene with Golf, with orange and black balloons and two tablets on the table below
The title screen of the degree show version.
Two visitors at the table, one playing with a mouse, while the screen above shows a level with Golf, Orb and the prompt Launch the ball
Two visitors at the table, with a level on the screen above.
The entrance to the UCL BA Media Degree Show, You and I are Earth, between two blue frames carrying the show poster and the list of graduating students, with visitors and a screen beyond
The entrance to the show, You and I are Earth.
Two visitors play Verlet Voyage on tablets at the table, with the title screen on the wall above and orange and black balloons behind
Visitors play on tablets, with the title screen on the wall.
Technical appendix: the solver, the level editor, the shaders

The core system

Verlet manager architecture
The VerletBall is a soft body of connected particles managed by the Verlet Manager: integration, constraint resolution, collision detection.

The simulation loop: on release, every particle of the ball receives an impulse. The VerletBall updates through integration and constraint solving. Collisions resolve against particles and constraints. Particle positions update. The loop runs until the ball stops moving.

  • Ball constraint: fixed-length constraints and custom elastic behaviours preserve shape and volume.
  • Inflate constraint: compares the ring's enclosed area with its rest area and pushes particles outward along their normals, so the ball keeps its volume under load.
  • Sub-steps and iterations: four sub-steps per fixed update, raised for fast shots, and 20 constraint iterations per sub-step, solved in alternating order so that no direction is favoured.
  • Mesh: a UV-mapped triangle fan, rebuilt from the particle positions every frame.
  • Collision: ground collision, edge collision against static geometry, and dynamic collision against moving objects.

The environment is built from static particles (walls, pins), dynamic particles that can be pushed, and constraints that define spring-like relationships between them. Anti-gravity zones and directional forces add movement that is deliberately not realistic.

A custom level editor

Tilemaps and prefab composition are not enough for a physics-driven world, so I built an editor into the ParticleController component that draws collision environments directly in the Scene view.

  • Key modifiers place geometry: S adds a static particle used as a wall or anchor, A adds a dynamic particle and connects it to the last static one, W adds a standalone static particle.
  • Clicking two existing particles connects them with a constraint; constraint type, thickness, colour and material are configurable per type.
  • A constraint creation mode lets designers define relationships by hand for composite or maze-like structures.
  • Levels serialise positions, static/dynamic state and constraint data to JSON-like structures for reuse, with loading deliberately delayed so physics and rendering are ready before instantiation.

Shaders and effects

An edge shader accentuates object boundaries so soft, toylike assets stay crisp and readable. Luminance from neighbouring pixels is evaluated with a Sobel operator for horizontal and vertical gradients, combined into edge intensity, then blended with object colour. The result is a smooth, clear outline that makes objects easier for younger players to read. A confetti particle system with randomised colours and directional bursts rewards level completion.

Reflection

What this changed in my understanding

The study suggests that a soft body may change how players reach agency more than how much of it they feel. The playtest is consistent with this: the soft ball was rated higher on autonomy and curiosity, not on perceived agency. Surprise, understanding and a sense of authorship did not always come together. Deformation appears only after contact, so it first explains a result, and it helps only when the player carries it into the next shot. I now look for that step, from what a system shows to what a person does next, in the archival agents as well.

Thanks to William Sykes and Dane Sutherland at UCL.