Skip to content

A program that makes two blocks collide, whose collisions calculate the digits of pi

Notifications You must be signed in to change notification settings

domjanabi/pi_collisions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pi_collisions

This program lets two blocks of different mass collide against eachother until their collisions compute the digits of pi. It was inspired by a coding train video. It generates very basic sound based on the frequency of the collisions.

Screenshots

two blocks counter

Algorithm

  • Ellastic collision implementation for two blocks
  • For higher mass, iterations are increased automatically, hence the poor fps with a mass of 100^7

About

A program that makes two blocks collide, whose collisions calculate the digits of pi

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages