unreal-brm
Shared Unreal Engine plugins for two-hand weapon IK/checks and raw HID DualSense.
Shared Unreal Engine plugin suite providing BRMGrip (third-person two-hand weapon grip solver, modular assembly, and automated close-up grip QA) and BRMDualSense (direct Windows HID DualSense/DualShock4 input and USB rumble).
git clone https://github.com/BestRoiMedia/unreal-brm.gitWhy we built it
Retargeted third-person characters with varying arm lengths hold guns awkwardly unless the grip is solved per-frame, and Windows Unreal games often miss native PlayStation controller support without Steam Input. We centralized both solutions and their automated QA checks.
Architecture & how it works
install.sh copies BRMGrip or BRMDualSense into a project's Plugins directory. BRMGrip extracts first-person holds and calibrates barrel aim lines via extract_grips.py into grips.json, then runs FBRMGripSolver per frame with two-bone left-hand IK and ABRMGripCheck to verify <= 3 cm hand gap and <= 8 deg aim error with close-up screenshots. BRMDualSense reads PS5 DualSense/Edge and PS4 DualShock 4 directly over Windows HID (USB/Bluetooth) with USB rumble.
Key capabilities
- Two-bone left-hand IK and palm-anchored weapon solver for retargeted characters
- Modular weapon assembly from receivers, barrels, handguards, magazines, and scopes
- Automated ABRMGripCheck QA pass logging CSV metrics and capturing worst-frame close-ups
- Direct Windows HID driver for PS5 DualSense/Edge and PS4 DualShock 4 with USB rumble
- One-command plugin installer script for Unreal .uproject repositories
Usage example
./unreal/install.sh BRMGrip ./MyUnrealProject
UnrealEditor-Cmd ./MyUnrealProject/MyGame.uproject -ExecutePythonScript=Plugins/BRMGrip/Scripts/extract_grips.py