// REALITY IS A SIMULATION _

MATRIX PONG XR

TABLE TENNIS SIMULATION ∷ REAL PHYSICS ENGINE ∷ AI OPPONENT ∷ META QUEST & PICO 4

[ ENTER THE MATRIX ] LEARN MORE ↓
12.4 BALL SPEED m/s
847 SPIN rpm
3241 REYNOLDS Re
YOU AI
BALL SPEED 12.4 m/s TOP SPIN 847 RPM REYNOLDS Re 3241 DRAG F_D 0.0012 N MAGNUS FORCE 0.0008 N KINETIC ENERGY 45.2 mJ AI REACTION 100 ms BOUNCE e 0.89 GRAVITY 9.81 m/s² TABLE FRICTION μ 0.25 BALL MASS 2.7 g BALL DIAMETER 40 mm BALL SPEED 12.4 m/s TOP SPIN 847 RPM REYNOLDS Re 3241 DRAG F_D 0.0012 N MAGNUS FORCE 0.0008 N KINETIC ENERGY 45.2 mJ AI REACTION 100 ms BOUNCE e 0.89 GRAVITY 9.81 m/s² TABLE FRICTION μ 0.25 BALL MASS 2.7 g BALL DIAMETER 40 mm
60 FPS TARGET
12+ PHYSICS VARS
3 AI DIFFICULTY TIERS
XR IMMERSIVE MODE

CORE SYSTEMS

REAL PHYSICS.
REAL TRAINING.

01
MAGNUS EFFECT

Every spin is computed using the full Magnus force equation. Topspin dips the ball, backspin floats it — just like real table tennis. Your strokes affect trajectory in real time.

F_M = C_L · ρ · (4/3)π·r³ · (ω × v)
02
🌊
FLUID DYNAMICS

Air drag is computed via Reynolds number and the modified Stokes drag coefficient. At high speeds, drag switches from laminar to turbulent regime — exactly like a real 40mm ITTF ball.

Re = ρvD/μ  |  F_D = ½ρC_D·A·v²
03
🤖
ADAPTIVE AI

The AI cortex uses parabolic trajectory prediction with configurable reaction delay and accuracy variance. Three tiers: Novice (400ms), Matrix (220ms), Neo (100ms).

ŷ = argmax P(action|state)  |  p(t) = p₀+v₀t+½at²
04
🥽
WEBXR NATIVE

Full WebXR immersive-vr session with local-floor reference space. Controller grip pose maps directly to paddle position. Works on Meta Quest 2/3/Pro and Pico 4 out of the box.

XRRigidTransform → paddle_pos  |  hand: right → player
05
📊
LIVE STAT PANELS

Four HUD panels display real-time physics data: ball velocity, spin RPM, launch angle, kinetic energy, drag force, Reynolds number, AI prediction state, and full session analytics.

KE = ½mv²  |  σ_v = √(Σ(vᵢ-v̄)²/n)
06
📱
PWA — OFFLINE PLAY

Fully installable as a Progressive Web App. Service worker caches all assets for offline play. No app store, no downloads — install directly from the headset browser in one tap.

manifest.json → xr_compatible: true  |  Cache-first SW

THE MATH
BEHIND THE
GAME

Every frame, the engine integrates Newtonian mechanics with aerodynamic forces. The ball is a rigid body subject to gravity, viscous drag, and the Magnus force — all computed at 60Hz using forward Euler integration.

VIEW IN GAME →
NEWTON'S 2ND LAW
F_net = F_gravity + F_drag + F_magnus
Total acceleration computed each tick. Ball mass: 2.7g (ITTF standard). Integrated with dt = 1/60s.
MAGNUS FORCE
F_M = C_L · ρ · (4/3)π·r³ · (ω × v)
Cross product of angular velocity ω and linear velocity v. Topspin (ω↑) creates downward deflection. Sidespin curves laterally.
REYNOLDS NUMBER
Re = ρ · v · D / μ_air
Determines drag regime. ρ=1.225 kg/m³, D=0.04m, μ=1.81×10⁻⁵ Pa·s. Transitions from Stokes (Re<1) to Newton drag (Re>1000).
BOUNCE MECHANICS
v_y' = -e · v_y  |  v_x' = v_x · (1 - μ)
Coefficient of restitution e=0.89. Friction μ=0.25 transfers horizontal momentum. Spin torque alters post-bounce direction vector.
AI TRAJECTORY PREDICTION
x(t) = x₀ + v_x·t  |  z(t) = z₀ + v_z·t + ½·a·t²
Parabolic prediction gives AI intercept point. Accuracy error ε is sampled from N(0, σ²) per difficulty tier.

DEVICE SUPPORT

PLUG IN.
PLAY ANYWHERE.

🥽
PICO 4
Snapdragon XR2 Gen1
90Hz refresh rate
Pico controllers
WebXR via Pico Browser
✓ COMPATIBLE
🥽
META QUEST 2
Snapdragon XR2 Gen1
90Hz refresh rate
Touch controllers
WebXR supported
✓ COMPATIBLE
🖥️
DESKTOP
Mouse + keyboard control
60fps canvas renderer
Full physics & stats
Chrome / Firefox / Edge
✓ 2D MODE
📱
MOBILE
Touch paddle control
PWA installable
Portrait & landscape
iOS Safari / Android
✓ TOUCH MODE

CHOOSE YOUR
REALITY.

NOVICE
// DIFFICULTY_EASY
Reaction time400 ms
Accuracy65%
Error variance±0.30 m
AI speed2.5 m/s
Difficulty
Speed
MATRIX
// DIFFICULTY_MEDIUM
Reaction time220 ms
Accuracy82%
Error variance±0.15 m
AI speed4.0 m/s
Difficulty
Speed
NEO
// DIFFICULTY_HARD
Reaction time100 ms
Accuracy96%
Error variance±0.04 m
AI speed6.5 m/s
Difficulty
Speed

GET STARTED

ONE TAP.
ZERO FRICTION.

No app store. No downloads. Matrix Pong XR is a Progressive Web App —
open in your headset browser and install in seconds.

01
OPEN BROWSER

Navigate to this URL in Meta Quest Browser or Pico Browser on your headset.

02
INSTALL PWA

Tap "Add to Home Screen" when prompted. The app installs in under 2 seconds.

03
ENTER XR

Launch the app, select difficulty, and tap "Enter XR Mode" to go fully immersive.

04
PLAY

Controllers auto-detect. Right grip = paddle. Trigger = serve. Train against the AI.

[ ENTER THE MATRIX ]