Skip to content

ProfFeynman/Learning_Cursor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Ball Physics Simulation

This project demonstrates different physics simulations using HTML5 Canvas and JavaScript. It shows three different scenarios of ball movement:

  1. Gravity with Water: Shows balls bouncing with gravity in a half-filled water container
  2. Underwater No Gravity: Demonstrates ball movement in a fully submerged environment without gravity
  3. Underwater Brownian Motion: Simulates Brownian motion of particles in water

Features

  • Multiple physics simulations running simultaneously
  • Water effects with waves and gradients
  • Collision detection and response
  • Buoyancy and water resistance
  • Colorful particles with consistent behavior

How to Run

  1. Clone this repository
  2. Open index.html in a web browser
  3. Or serve it using a local server:
    python3 -m http.server 8000
    Then visit http://localhost:8000

Technologies Used

  • HTML5 Canvas
  • JavaScript
  • CSS3

Physics Implementations

  • Gravity and buoyancy
  • Elastic collisions
  • Water resistance
  • Brownian motion
  • Conservation of momentum

About

Learning_Cursor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published