{"id":48454052,"url":"https://github.com/itsloopyo/peak-headtracking","last_synced_at":"2026-05-03T21:05:12.072Z","repository":{"id":349627806,"uuid":"1202962506","full_name":"itsloopyo/peak-headtracking","owner":"itsloopyo","description":"An OpenTrack compatible head tracking mod for PEAK","archived":false,"fork":false,"pushed_at":"2026-04-29T19:15:40.000Z","size":27460,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-29T20:32:02.371Z","etag":null,"topics":["gamemod","headtracking","immersive"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itsloopyo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-04-06T15:26:13.000Z","updated_at":"2026-04-29T19:15:48.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/itsloopyo/peak-headtracking","commit_stats":null,"previous_names":["itsloopyo/peak-headtracking"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/itsloopyo/peak-headtracking","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsloopyo%2Fpeak-headtracking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsloopyo%2Fpeak-headtracking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsloopyo%2Fpeak-headtracking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsloopyo%2Fpeak-headtracking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itsloopyo","download_url":"https://codeload.github.com/itsloopyo/peak-headtracking/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsloopyo%2Fpeak-headtracking/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32584662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gamemod","headtracking","immersive"],"created_at":"2026-04-06T22:01:57.260Z","updated_at":"2026-05-03T21:05:12.066Z","avatar_url":"https://github.com/itsloopyo.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Peak Head Tracking\n\n![Mod GIF](https://raw.githubusercontent.com/itsloopyo/peak-headtracking/main/assets/readme-clip.gif)\n\nAn **unofficial** BepInEx mod that adds head tracking to PEAK via OpenTrack. Look around naturally with your head while your aim stays independent.\n\n## Features\n\n- **Decoupled look + aim**: Look around freely with your head while your crosshair stays where you're aiming\n- **6DOF head tracking**: Full rotation (yaw, pitch, roll) and positional tracking via OpenTrack UDP protocol\n\n## Requirements\n\n- [PEAK](https://store.steampowered.com/app/3527290/PEAK/) (Steam)\n- [OpenTrack](https://github.com/opentrack/opentrack) or a compatible head tracking app (smartphone, webcam, or dedicated hardware)\n- Windows 10/11 (x64)\n\n## Installation\n\n1. Download the latest release from the [Releases page](https://github.com/itsloopyo/peak-headtracking/releases)\n2. Extract the ZIP anywhere\n3. Double-click `install.cmd`\n4. Configure OpenTrack to output UDP to `127.0.0.1:4242`\n5. Launch the game\n\nThe installer automatically finds your game via Steam registry lookup. If it can't find the game:\n- Set the `PEAK_PATH` environment variable to your game folder, or\n- Run from command prompt: `install.cmd \"D:\\Games\\PEAK\"`\n\n### Manual Installation\n\nIf you prefer to install manually or the installer doesn't work for you:\n\n1. Install [BepInExPack_PEAK](https://thunderstore.io/c/peak/p/BepInEx/BepInExPack_PEAK/) into your game folder:\n   - Download and extract the archive\n   - Copy the contents of the `BepInExPack_PEAK` folder to your game root (where `Peak.exe` lives) — this includes `winhttp.dll`, `doorstop_config.ini`, and the `BepInEx` folder\n2. Download the **Nexus** release ZIP (the one ending in `-nexus.zip`)\n3. Extract it into your game folder — the DLLs will land in `BepInEx/plugins/`:\n   - `PeakHeadTracking.dll`\n   - `CameraUnlock.Core.dll`\n   - `CameraUnlock.Core.Unity.dll`\n4. Configure your tracker to output UDP to `127.0.0.1:4242`\n5. Launch the game\n\n## Setting Up OpenTrack\n\n1. Download and install [OpenTrack](https://github.com/opentrack/opentrack/releases)\n2. Configure your tracker as input\n3. Set output to **UDP over network**\n4. Host: `127.0.0.1`, Port: `4242`\n5. Start tracking before launching the game\n\n### Webcam Setup\n\nNo special hardware needed — OpenTrack's built-in **neuralnet tracker** uses any webcam for 6DOF face tracking.\n\n1. In OpenTrack, set the input to **neuralnet tracker**\n2. Select your webcam in the tracker settings\n3. Set output to **UDP over network** (`127.0.0.1:4242`)\n4. Start tracking before launching the game\n5. Recenter in OpenTrack via its hotkey, and press **Home** in-game to recenter the mod as needed\n\n### Phone App Setup\n\nThis mod includes built-in smoothing for network jitter, so you can send directly from your phone on port 4242 without needing OpenTrack on PC.\n\n1. Install an OpenTrack-compatible head tracking app\n2. Configure it to send to your PC's IP on port 4242 (run `ipconfig` to find it)\n3. Set the protocol to OpenTrack/UDP\n\n**With OpenTrack (optional):** If you want curve mapping or visual preview, route through OpenTrack. Set OpenTrack's input to \"UDP over network\" on a different port (e.g. 5252), output to `127.0.0.1:4242`, and point your phone at port 5252. Make sure your firewall allows incoming UDP on the input port.\n\n## Controls\n\nTwo equivalent binding sets - use whichever your keyboard has:\n\n| Action              | Nav-cluster | Chord           |\n|---------------------|-------------|-----------------|\n| Recenter            | `Home`      | `Ctrl+Shift+T`  |\n| Toggle tracking     | `End`       | `Ctrl+Shift+Y`  |\n| Cycle tracking mode | `Page Up`   | `Ctrl+Shift+G`  |\n| Toggle yaw mode     | `Page Down` | `Ctrl+Shift+H`  |\n\n`Page Up` / `Ctrl+Shift+G` cycles tracking mode:\n\n1. Normal head-tracked gameplay\n2. Positional tracking disabled, rotational tracking enabled\n3. Rotational tracking disabled, positional tracking enabled\n4. Back to normal\n\n## Configuration\n\nThe mod creates a config file at `BepInEx/config/com.cameraunlock.peak.headtracking.cfg` on first run.\n\n```ini\n[Connection]\nUDP Port = 4242                  # Must match OpenTrack output port (1024-65535)\nReconnect Timeout = 5            # Seconds before reconnection attempt (1-60)\nPacket Buffer Size = 100         # Max packets to buffer (10-500)\n\n[General]\nTracking Enabled = true          # Start with tracking enabled\nPosition Enabled = true          # Enable lean/positional tracking (6DOF)\nEnable Audio Feedback = true     # Play sounds for tracking state changes\nWorld Space Yaw = true           # true = horizon-locked yaw (default), false = camera-local yaw\n\n[Sensitivity]\nYaw Sensitivity = 1.0            # Horizontal rotation (0.1-5.0)\nPitch Sensitivity = 1.0          # Vertical rotation (0.1-5.0)\nRoll Sensitivity = 1.0           # Head tilt (0.1-5.0)\nInvert Yaw = false\nInvert Pitch = false\nInvert Roll = false\nPosition Sensitivity X = 2.0    # Lateral sensitivity (0.0-5.0)\nPosition Sensitivity Y = 2.0    # Vertical sensitivity (0.0-5.0)\nPosition Sensitivity Z = 2.0    # Depth sensitivity (0.0-5.0)\nPosition Limit X = 0.30         # Max lateral offset in meters (0.01-0.5)\nPosition Limit Y = 0.20         # Max vertical offset in meters (0.01-0.5)\nPosition Limit Z = 0.40         # Max depth offset in meters (0.01-0.5)\n\n[Limits]\nEnable Pitch Limits = true       # Clamp pitch rotation\nMinimum Pitch = -85              # Max look-down angle (-90 to 0)\nMaximum Pitch = 85               # Max look-up angle (0 to 90)\nEnable Roll = true               # Enable head tilt\nEnable Roll Limits = true        # Clamp roll rotation\nMaximum Roll = 30                # Max tilt angle (0-90)\n\n[Smoothing]\nSmoothing = 0.0                  # 0 = responsive, 1 = heavy (adds latency)\nPosition Smoothing = 0.15        # Position smoothing (0.0-1.0)\n\n[Deadzone]\nEnable Deadzone = false          # Ignore small movements near center\nYaw Deadzone = 0                 # Yaw deadzone in degrees (0-10)\nPitch Deadzone = 0               # Pitch deadzone in degrees (0-10)\nRoll Deadzone = 0                # Roll deadzone in degrees (0-10)\n\n[Hotkeys]\nToggle Tracking = End\nRecenter View = Home\nToggle Position = PageUp\nYaw Mode Key = PageDown\n\n[Advanced]\nDebug Logging = false            # Enable detailed debug logging\nUpdate Rate = 60                 # Target update rate in Hz (30-120)\nMaintain Relative Position = true\nNear Clip Override = 0.15        # Prevents seeing through player model during head bob (0.01-0.5)\n```\n\n## Troubleshooting\n\n**Game crashes on startup after installing BepInEx:**\n- PEAK requires the [BepInExPack_PEAK](https://thunderstore.io/c/peak/p/BepInEx/BepInExPack_PEAK/) build (ships with a PEAK-specific doorstop). Our `install.cmd` downloads this automatically.\n- If the game crashes on startup, add `-force-vulkan` to your Steam launch options (game Properties \u003e General \u003e Launch Options) to bypass DX12\n\n**Mod not loading:**\n- Check `BepInEx/LogOutput.log` for errors\n- Ensure all three DLLs are in `BepInEx/plugins/`: `PeakHeadTracking.dll`, `CameraUnlock.Core.dll`, `CameraUnlock.Core.Unity.dll`\n- Verify `winhttp.dll` is in the game folder\n\n**No tracking response:**\n- Verify OpenTrack is running and outputting data\n- Check UDP port matches (default 4242)\n- Press **End** to enable tracking, **Home** to recenter\n- Check firewall isn't blocking UDP port 4242\n\n**Jittery movement:**\n- Increase `Smoothing` in the config file (remote connections auto-use 0.15 minimum)\n- Enable deadzones in the `[Deadzone]` section\n- Improve lighting for webcam-based tracking\n\n**Yaw feels wrong when looking up or down at extreme angles:**\n- Try toggling between world-locked and camera-local yaw with `Page Down`. World-locked (default) is horizon-stable; camera-local follows the camera's current up-axis.\n\n## Updating\n\nDownload the new release and run `install.cmd` again.\n\n## Uninstalling\n\nRun `uninstall.cmd` from the release folder. This removes the mod DLLs. BepInEx is only removed if it was originally installed by this mod. To force-remove BepInEx:\n\n```\nuninstall.cmd /force\n```\n\n## Building from Source\n\n### Prerequisites\n\n- [.NET SDK](https://dotnet.microsoft.com/download) (any recent version)\n- [pixi](https://pixi.sh) task runner\n- PEAK installed (for Unity/BepInEx DLL references)\n\n### Build\n\n```bash\ngit clone --recurse-submodules https://github.com/itsloopyo/peak-headtracking.git\ncd peak-headtracking\n\n# Build and install to game\npixi run install\n\n# Build only\npixi run build\n\n# Package for release\npixi run package\n```\n\n### Available Tasks\n\n| Task | Description |\n|------|-------------|\n| `pixi run build` | Build the mod (Release configuration) |\n| `pixi run install` | Build and install to game directory |\n| `pixi run uninstall` | Remove the mod from the game |\n| `pixi run uninstall -- --force` | Remove the mod and BepInEx |\n| `pixi run package` | Create release ZIPs |\n| `pixi run clean` | Clean build artifacts |\n| `pixi run release` | Version bump, build, tag, and push |\n\n## License\n\nMIT License - see [LICENSE](LICENSE) for details.\n\n## Credits\n\n- [Aggro Crab](https://aggrocrab.com/) / [Landfall](https://landfall.se/) - PEAK\n- [BepInEx](https://github.com/BepInEx/BepInEx) - Unity modding framework\n- [OpenTrack](https://github.com/opentrack/opentrack) - Head tracking software\n- [Harmony](https://github.com/pardeike/Harmony) - Runtime patching library\n\n## Disclaimer\n\nThis mod is not affiliated with, endorsed by, or supported by Aggro Crab Games or Landfall. Use at your own risk.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsloopyo%2Fpeak-headtracking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsloopyo%2Fpeak-headtracking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsloopyo%2Fpeak-headtracking/lists"}