Skip to content

frogi16/Physics-Engine

Repository files navigation

Physics-Engine

Basic physics engine allowing to easily create realistic simulations in VPython. Classical mechanics and collisions between spheres and boxes are already supported, as well as implementation of springs subject to Hooke's law. Currently there are efforts to add rotations and impulses, which would greatly improve usefulness of the engine.

Approximation of Pi using colliding boxes of certain masses (greater ratio = more digits). Video explaining the idea.

BoxesPi

Elastic collisions of balls in enclosed space. It is a good model of atoms in thermal agitation or billiard balls. Minor glitches are noticeable when many balls collide at the same time.

CollidingBalls

Solar system simulated as if Sun was the only mass (planets are enlarged for clarity) . Allows dynamic changes in reference point, which reveals beautiful patterns.

SolarSystem

About

Simple physics engine using VPython.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages