GIANT & MINI / STUDY / LEVEL 3 OF 5

Holding
on.

The giant can pick up the house while the mini is inside it. Should the mini go with it? Sometimes yes: that is how a giant carries a mini across the desk. Sometimes no: lifting the house off a mini who stays on the desk is the moment the mini looks up and sees the giant's face. And being moved by someone else is the surest way to feel sick in VR. So the mini decides. One press of the grip means hold on; another press lets go. While holding, the mini is attached to one thing, the giant's hand if it is in reach, otherwise the house they stand in, and moves exactly as far as that thing moves. Nothing new is needed to move a mini: their place on the desk is M(origin) · head, so the origin is the only number that changes.

grip onpick one thing: a hand within 3.5 in, else the house I am in, else nothing
→
each framehow far did that thing move? Δ
⇒
origin −= Δ × 12I moved by exactly Δ on the desk

The desk, seen from outside

the blue ball is the giant's hand; the light over the mini says what they hold

The mini's state

one frame per slider move

Green light: holding something, will be carried. Yellow: grip on, nothing in reach yet; it keeps looking, so a hand that comes close is caught. No light: not holding.

Choosing what to hold

players.js

      

Moving by a step, and what the feet rest on

players.js

rideOrigin undoes M: a step Δ on the desk is a step of −Δ ÷ scale for the origin (with x and z flipped if the mini's world is turned half round). groundUnder is the other half of the rule: when the mini holds nothing, their feet settle on the house floor only if they are between the walls and already up at the floor. So a house lifted off a mini leaves the mini on the desk.


      

In the frame loop

giantMini.js

      
    

What you should be able to explain

  1. Why the mini decides. The player who is moved chooses the moment it starts and can end it at once. The giant still has to ask, which makes carrying a thing two people do together.
  2. One mechanism for two carriers. Riding in the house and hanging from a hand are the same code. Only the thing whose movement is measured differs.
  3. Why the origin and not the body. Walking already moves the origin (Miniature, level 4). Being carried uses the same handle, so walking, riding and falling never disagree about where the mini is.
  4. Letting go in the air. Release the grip above the desk and the feet go to whatever is under them: the lifted house's floor if the mini rode up with it, the desk otherwise.

Exercises: ① Walk into the house, leave the grip off, lift the house. Where are your feet? Now press the grip and lift again. ② Hold the giant's hand, raise it 6 inches. By how much did origin.y change, and why is it negative? ③ Press the grip far from everything (yellow), then use "Bring the hand to my hand". At which moment does the light turn green?