HAPTIC FISHING / STUDY / LEVEL 4 OF 7

Haptic
design.

The vibration motor in a controller understands only two numbers: how strong (0 to 1) and how long (milliseconds). Yet in the game you can tell "one tap", "three taps", "a long rumble" and "pulses getting faster" apart. All of them are several short pulses arranged in time. This level shows the game's vibration vocabulary, then gives you a blind test: identify a fish by rhythm alone.

fishing.jsgets an event and looks it up: feel('nibble')
→
buzz(hand, strength, ms)gameKit.js: skips quietly on a desktop
→
window.vibratecourse framework: finds that hand's controller
→
hapticActuators[0].pulse()WebXR: spins the motor

A desktop has no vibration motor, so this page uses sound instead: a low hum, louder for stronger pulses, as long as each pulse lasts. Headphones help. Sound plays only when you press a button.

The vibration vocabulary

every vibration in the game is in the table in haptics.js
Controller: quiet
Line tension while reeling (Level 2's tension, turned into touch): tension 0.50

Blind test: identify the fish by rhythm

correct 0 / 0

Press "Next fish". The page uses the real game rules (fishingRules.js) to send a random fish, and plays everything from its first tap to its bite as sound. You cannot see which fish it is; guess from the rhythm.

The vocabulary in code

haptics.js

The feel of the whole game lives in this one file. The entry you just played is highlighted.


      
Full file: haptics.js ↗ · where it is played: fishing.js ↗ (search for feel()

What you should be able to explain

  1. The motor only knows strength and duration: pulse(strength, ms). Counts, rhythm and texture are all built by sending several pulses at different times.
  2. Too short or too weak cannot be felt. The first version of the "tap" was strength 0.4 for 35 ms, and in the headset it felt like the controller "did nothing". At 0.8 for 80 ms it became clear. A motor needs a moment to spin up, so every pulse in the table is now at least 50 ms, and a test checks that.
  3. One dimension per kind of information:
    • which fish → count and speed (1 tap, 2 taps, 3 fast taps)
    • junk or not → texture (a boot is a continuous rumble, not separate taps)
    • act now or not → strength (the bite is the strongest pulse)
    • a quantity that keeps changing → density (tighter line, denser pulses, like a Geiger counter)
  4. A boot's "long" rumble is many short pulses. RUMBLE fires every 0.06 s for 70 ms each. The next pulse starts before the last one stops, so they blur into one.

Exercises: ① Get 5 in a row right in the blind test. ② Drag the tension slider slowly from 0 to 1. How does the gap between pulses change? Compare with .3 - .2*k in tensionPulse. ③ Think: to design a new fish whose rhythm is "tap… tap-tap" (a longer pause after the first tap), can the current rules do it? Hint: look at how many numbers gap is in the fish table, and think about what would have to change.