Each frame that Enable Predictions is active, APreds UI reads the velocity of each hand, projects a target position ahead of where your hand is moving, and lerps your hand toward that target. The four sliders control how aggressively the prediction runs, when it kicks in, how smoothly your hand follows, and how far it can reach. Tuning them together lets you dial in a feel that ranges from barely noticeable to highly exaggerated.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ASTRA228b/APreds-UI/llms.txt
Use this file to discover all available pages before exploring further.
Preds Strength
Preds Strength
Range:
0.001 – 0.2PredSrength is the scalar multiplied by your hand’s current velocity to compute the prediction offset. A value of 0.1 means the target is placed 0.1 × velocity units ahead of your hand each frame. Lower values produce a subtle forward nudge; higher values push the target much further ahead of actual hand position.Start at the low end and increase gradually. The effect compounds with fast movement, so a value that feels fine while moving slowly may feel jarring during a quick swing.Movement Threshold
Movement Threshold
Range:
0.01 – 0.3movementThreshold is the minimum velocity magnitude your hand must exceed before any prediction is applied. If the measured velocity is at or below this value, the hand position is left unchanged for that frame.A low threshold (near 0.01) means prediction activates during almost any movement. A high threshold (toward 0.3) restricts prediction to fast, intentional swings and ignores slow drifts or minor controller jitter.Smoothness
Smoothness
Range:
0.01 – 0.5smoothness is the t parameter passed to Vector3.Lerp each frame. It controls how quickly your hand position moves toward the predicted target.Lower values (near 0.01) produce a gradual, delayed follow — your hand trails behind the target smoothly. Higher values (toward 0.5) make your hand snap to the target much faster, producing a snappier but less fluid feel. At very high values the effect begins to feel instantaneous.Max Arm Length
Max Arm Length
Range:
1.0 – 2.5maxArmLength clamps the distance between your hand and your head center using Vector3.ClampMagnitude. After the lerp step, if the predicted hand position would place your hand further than maxArmLength units from your head, it is pulled back to exactly that distance.This acts as a safety limiter to prevent the prediction from moving your hands to physically implausible positions. Keep this close to 1.0 unless you intentionally want extended reach.How the settings interact
The code below fromMakePreds() shows the exact order of operations for the left hand each frame. The same logic runs for the right hand in parallel.
MakePreds()
- A
targetis computed by addingPredSrength × velocityto the current hand position. - The hand lerps toward that target using
smoothnessas the interpolation factor. - The result is clamped so the hand stays within
maxArmLengthof the head.