Skip to content

EvanGyori/SpatialPartitioning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spatial Partitioning

Put this project onto github for the purposes of archiving old projects. Made in 2019.

Added some optimization and color changes. Originally could only handle 5,000 circles but can now handle 84,000 at 70 FPS on my computer.

Overview

Made this project because I wanted to learn how to make a simple physics engine with circles colliding. The circles conserve momentum and displace the other circles. I also wanted to figure out how to optimize the code so that thousands of circles could collide without slowing down the computer too much and I did that through spatial partitioning.

Usage

Run index.html in any web browser.

Use WASD keys for movement.

About

html physics simulation. Optimized using spatial partitioning.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published