Explorer’s Lab › Orbit Lounge › Build log
Build log
Ball now sits on the plunger tip
Derek spotted the ball floating above the plunger. The drawn plunger tip was 8.5 mm behind the physics plunger's face; it now sits on it, using one shared constant.
Goal
Derek: “the ball isn’t resting on the plunger” (with a close-up screenshot showing a gap between the ball and the plunger’s black tip).
What was done
- Cause: the physics plunger is a capsule collider 4 mm in radius around
plunger.y, so its striking face is 4 mm up the lane, and that’s where the ball rests.- The Blender plunger model (origin at the front of its tip) was drawn 4.5 mm behind
plunger.y, leaving an 8.5 mm gap. - The code-built fallback plunger was 4 mm short too.
- The Blender plunger model (origin at the front of its tip) was drawn 4.5 mm behind
- Fix:
PLUNGER_FACE(4 mm) is now exported fromsrc/physics/physics.tsand used for the collider.- The renderer draws the front of the tip at
plunger.y + PLUNGER_FACE. - Physics behaviour is unchanged; only the drawing moved.
What broke / dead ends
The first close-up was taken from beside the lane, where the lane wall hid the point of contact. A second set was taken from above.
Human interventions
Derek reported it with a screenshot.
Verification
npm run typecheckandnpm test(15 physics tests) pass.- Headless Chrome close-ups, from the same camera above the shooter lane, of the old build and the fix, at rest and with the plunger pulled back:
- at rest: before, a clear gap between the ball and the tip; after, the ball touches the tip;
- pulled back: the tip is under the apron housing in both.
- Measured at rest: ball centre 0.0475 m, plunger face 0.034 m, so the ball’s lowest point is on the face. With the plunger pulled back, the ball follows it to within 1 mm.
npm run buildandnpm run check: all pass.
Next steps
None.