ROCK provider API 2.0
ROCK exposes its physical interaction through 12 interfaces of provider API 2, published from ROCK's own include/ROCK/ headers. It is one DLL and one runtime: your plugin registers one owner, binds only the interfaces and permissions it needs, reads copied state and makes bounded requests.
| Start here | What you get |
|---|---|
| Get the headers | Include path, runtime requirements. |
| First consumer | A complete hand observer with teardown. |
| API index | Every interface, its permissions and calls. |
| Runtime contract | Threads, callbacks, samples, leases and records. |
| Migrating from provider API 1 | What changed for mods built for pre-1.0 ROCK. |
| Recipes | Short patterns for common requests. |
How it fits together
Resolve ROCKAPI_QueryInterfaceV1 from the loaded ROCK.dll. ROCK/Client.h registers your owner and acquires typed tables; it compiles into your plugin and links nothing.
Core owns lifecycle, owners and frame callbacks. Hands publishes hand and headset poses and what each hand holds. Grab owns grabbing, hand occupancy and reference queries. Collision owns contacts, raycasts and weapon bodies. Touch owns mechanisms and surface latches. Weapon and WeaponParts cover the equipped weapons by slot and their parts. Animation owns phase callbacks and pose authority. Input owns controller reads and input leases. PlayerController exposes the character controller and jumps. NativeInteraction extends ROCK's physics step. Storage serves holster, backpack and stash mods.
Every interface is major 2. Collision and Input are at minor 1 since ROCK 1.0.3; ROCK 1.0.4 brings Grab to minor 2 and Weapon and WeaponParts to minor 1; the rest are at minor 0. A mod built for an earlier minor binds unchanged. ROCK's settings have no interface: players edit them on ROCK's page in Mods Config FO4 VR, and the Configuration interface (13) of ROCK 1.0 to 1.0.3 is refused from 1.0.4 on. Mods built for provider API 1 are refused at discovery. Provider API versions are independent of the ROCK mod version and of FRIK's API.