Summary of changes
Makes the 3D Poki bear lively while it stands on the home screen (breathing, weight shifts, random blinks, both pupils driven by one shared gaze vector kept inside the whites of the eyes, a thinking pose with a squinted lid and wavy mouth), with its original skin colour texture, model and clips untouched. On top of that branch this PR changes three things:
- Blink speed and rate match the bear that shipped before. A blink is 0.14 s down, 0.06 s shut and 0.2 s up (0.4 s, eased), and the bear blinks once every 5.9 s on average. The occasional double blink stays; the open stretch after a pair is lengthened so the average rate is unchanged. The extra blink that was paired with every look is removed because it raised the rate.
- The pupils no longer twitch. The idle eye darts crossed about 0.03 model units in 0.12 s and were cut off in one frame when a look or a greeting began, and the gaze spring passed every step on. Darts and look gazes now stay inside the sclera (about 0.016 either way), ease over 0.25 to 0.4 s, are released smoothly instead of cut, and the gaze spring is critically damped. The blink no longer pulls the gaze toward the middle.
- The warm toy lighting and soft skin material are back (warm key light, rim light, pale blue-violet fill, skin roughness 0.62). The colour texture is unchanged; the skin still reads as the same pale blue-violet (hue 226 degrees against 227 in the flat design picture, not warm and not grey).
Motivation (Closes #N)
The first version of the lively bear blinked far faster and more often than the current one, and its pupils sometimes jumped. No linked issue.
Test plan
Simulator: iPhone 17 Pro, iOS 27.0, app tests injected into the app (BearClipsTests, BearIdleTests, BearActTests).
testTheBlinkKeepsTheSpeedAndTheRateItAlwaysHadfailed before the fix (blink 0.265 s, mean 3.09 s between blinks) and passes after (0.4 s, 5.9 s within 0.3).testThePupilsNeverTwitchWhileTheBearStandsfailed before the fix (fastest pupil 0.52 units/s at 60 Hz, 0.44 at 30 Hz) and passes after (limit 0.18; the fastest seen over 16 offline twenty-minute runs of the same code is 0.13).- The other bear tests in those three classes still pass (13 tests, 0 failures); the two new tests were rerun three more times, all green.
- Measured outside the app on the same code: in a composite run of idle motion and blinking, 9.6 blinks a minute against 9.7 on the previous bear.
Screenshots or screen recording
A 20 second side-by-side recording of the standing bear, before and after the fixes, was taken on the simulator (same simulator, same lighting).
AI assistance: Claude Code. I have reviewed and understand these changes.
Activity
11fa40d9d2f89814