← Back to Projects

YawVR Motion Platform

A Rust replacement server and Unity SDK for the Yaw 3 motion simulator.

RustC#UnityNetworking

Overview

The YawVR Motion Platform is the software that connects VR games to the Yaw 3, a motion simulator chair that can pitch, roll and spin a full 360 degrees. The chair is controlled by a Raspberry Pi running a closed-source server, and since the company behind it no longer exists, that server can’t be updated or fixed anymore.

I worked on this alongside two team projects, Wyvern Glide and Race N Rally. My teammates built the games, while my primary focus was everything between the game and the motors: reworking the Unity SDK and building a complete replacement for the server in Rust.


The Challenge

The core objective was to make the chair reliable enough to put players in it. Since a real person sits in this machine, it has to be safe as well as fun.

The original setup had a few big problems. The SDK had to be connected manually and couldn’t detect when the connection to the chair dropped. Without motion compensation, the VR headset picked up the chair’s movement as head movement, which made the view drift around. On top of that, the server was a closed binary with no documentation. To replace it, I first had to figure out what it actually did, and then recreate its motor control exactly, because the chair’s tuning depends on it.


Architecture

The game scripts send the position they want the chair in to the Unity SDK. The SDK can talk to either the original server or my Rust server with a single checkbox, so the game code never has to change. The network communication runs on its own background thread in Unity, so it doesn’t slow down the game.

On the Pi, the Rust server is split into three parts that run separately: a network task for the connection to the game, an engine thread that controls the motors 100 times per second, and a safety thread that watches the emergency stop. They only share data in ways that can’t block each other.


Tech Stack


Features


Technical Problems & Solutions

1. Replacing a Closed-Source Server

2. Keeping the Network Away From the Motors

3. Testing on Real Hardware


Used In

Wyvern Glide

A VR game where you fly a dragon through a course of checkpoints against the clock, while the chair pitches and banks along with the dragon. This was the first game to run on the Rust server.

Race N Rally

A VR rally racing game with a co-driver calling out the turns, where the chair throws you around with every corner and bump.


Lessons Learned