Skip to content

shalanah/slingshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slingshot

With only vanilla Javascript and 4 hours of time create a ball that can be pulled back (like a slingshot) and experiences projectile motion afterwards.

Features

  • Can create a sling with 0-90 degree trajectory
  • Uses kinematics + spring physics to determine paths
  • Would suggest using modern browsers + horizontal viewports
  • Random color on each attempt

Video

slingshot.mp4