Where each fact lives
ROCK is one runtime with one owner registry. Each interface publishes the facts it owns; there is no combined all-features record.
| Question | Read |
|---|---|
| Can ROCK act now? | Core getSnapshot: readiness, lifecycle flags and generations. |
| Where are the hands and the headset? | Hands getHandFrame (control), getPresentedHandFrame and getPresentedHandPose (rendered), getHeadPose. |
| What does each hand hold of the equipped weapons? | Hands getRoles: weapon slot and Firing or Support per hand. |
| Is a hand busy or free? | Grab getHandInteractionState: phase, held objects, native weapon carry, grips. |
| What is equipped, and in which hand? | Weapon getWeaponState per slot: form, firingHand, supportHand, transitions, ammo. |
| Which node of the weapon? | WeaponParts sourceKey with its weaponGenerationKey; querySourcePose, querySourcePath. |
| What did a hand or the body touch? | Collision semantic hand contacts and body contacts. |
| What is a touched reference? | Grab target details, queryReferenceInteraction, queryPowerArmorTarget. |
| Who controls a mechanism or a visual pose? | Touch states; Animation authority state. |
| What does the player's controller do? | PlayerController getPlayerControllerState. |
Weapon slots
A weapon slot is the native equipment index: 0 is the first equipped weapon, 1 the second (kMaxWeaponSlots = 2). A slot never implies a hand; which hand fires or supports a weapon is data. A slot at or above kMaxWeaponSlots returns InvalidArgument.
| Serves both slots | Slot 0 only (slot 1 returns TargetUnavailable) |
|---|---|
Weapon getWeaponState, getGrip, getClassification, copyEmitters, getInteractionKey, setChamberMarker, unequipWeapon; WeaponParts copyEvidenceDetails, copySources, querySourcePose, setDriveTargets, clearDriveTargets; Hands getRoles; Grab hand state flags; Collision getEnvironment; NativeInteraction weapon driving | Weapon composition, authored grip and scope sight; every other WeaponParts call; Input reload gesture and support trigger; Grab hand reservation and a held object's connected weapon; Collision ejection clearance; Animation Weapon authority |
Weapon setAutomaticReloadBlocked takes no slot: it stops the automatic reload ROCK starts for slot 1. On slot 1, WeaponParts drives act only on bones the weapon's own graph writes (TargetInvalid otherwise).
Joining reads
Combine two reads only when their samples or generations agree. World, skeleton, provider and collision generations invalidate different things; weaponGenerationKey additionally fences one weapon's parts and sources. frameIndex, publicationSequence and per-record sequences are different counters.
Presented hand records keep their capture frame; read them in the Presented phase for the current frame's rendered pose. Hand roles describe the physical left and right hands, never a swap of controller identities or the player's handedness setting.
Values, not pointers
Body ids, source keys and reference keys are opaque values; never cast them to pointers. Caller buffers stay caller-owned. Callback records are borrowed only for the call; copy what you need before returning.