Files
VibemakerSandbox/app
tfrere b1fb1e6622 feat: mouse grab-and-drag perturbation (MuJoCo-viewer spring)
Pointer-down on the duck (or the live ball) grabs it: a three.js raycast
picks the body and a spring-damper force toward the cursor - projected on
a camera-facing plane, so lifting works - is written to xfrc_applied
every physics substep. Formula and gains mirror the native viewer's
mjv_applyPerturbForce (stiffness 100, damping sqrt(stiffness), scaled by
subtree mass). Orbit is disabled for the drag and restored on release;
grabbing detaches the chase cam; touch overlay untouched.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 20:08:52 +02:00
..