🎮 3D Bouncing Ball Simulation

Experience realistic 3D physics with colorful walls, splash effects, and interactive controls!

1.0x

📍 Real-time Information

Position

x: 0.0, y: 0.0, z: 0.0

Velocity

vx: 3.2, vy: 2.8, vz: 2.1

Wall Hits

0

Rotation

X: 0°, Y: 0°

⌨️ Keyboard Shortcuts

Reset Simulation R
Pause/Resume P
Toggle Trail T
Rotate View Mouse Drag

🧠 Physics Concepts

3D Coordinates

Ball moves in (x, y, z) space with velocity vectors (vx, vy, vz)

Perspective Projection

3D coordinates are "flattened" to 2D screen using mathematical projection

Collision Physics

Wall bounces flip velocity components with energy damping for realism

Depth Effects

Objects appear smaller and darker when farther from the camera