Skip to content

Simulation of box with balls (friction can be toggled)

Notifications You must be signed in to change notification settings

MarkLagodych/BoxWithBalls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Box with balls

A simple program in processing that makes balls to move, collide with the box (actually, the window border) and (optionally) simulate friction.

Features:

  • When a mouse button is pressed, balls scatter from the cursor.
  • Friction is toggled on every key press.
  • The bigger is a ball, the more friction it has.

IMAGE