# Space Marine 2 gets a rough VR mod, mostly written by Codex

> A Reddit user built a working but rough VR mod for Space Marine 2 with the Codex coding agent. Menus are broken and melee isn't working yet.

- Published: 2026-10-14T08:27:05Z
- Score: 7/10
- Tags: vr, pc
- Port / platforms: PC (Windows) -> PC (Windows) (VR mod)
- Web page: https://emu-radar.customfw.xyz/news/space-marine-2-vr-mod-codex/
- Sources: https://www.reddit.com/r/virtualreality/comments/1x5kpwk/space_marine_2_vr_mod/

A Reddit user has a working but rough VR mod for Space Marine 2 (SM2). Codex, the AI coding agent, wrote most of it over a couple of days.

The mod is a local C++ DLL that loads through a dxgi.dll proxy. It renders alternating left and right eye views and sends them to SteamVR through OpenVR. Controller input maps to the game's gamepad controls. Tracked controller poses drive the arms, fingers and firearm aiming. A generated mod pack adjusts camera settings, field of view and some UI layouts.

It has problems. On a 4090 with an Index headset it performs badly, the menus are broken, and melee isn't working yet. The author says Codex ran the game and did a fair amount of testing without a headset on. That testing is the part worth watching: an agent that can drive a simulated VR rig could speed up mods like this a lot. The author hasn't published the source on GitHub yet. They asked Saber's mod team first.
