Skip to content

DavinPro/Particle-Physics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Particle Physics

A very simple particle physics simulator.

PurposeInstallationCommands

Purpose

This project was created to learn how a quadtree can be used to store and optimize searching of positional data. Simply drawing a quadree is no fun though, so I decided to implement some very simple physics and use the quadtree for collision detection.

During development I also learned about CMake and how to configure a project for platform-independent building using a make file.


Installation

Prerequisites

Windows with CMake

  • Clone this repo
  • Open CMake
  • Set the source path to the location of the repo
  • Set the build path

paths

  • Click configure
  • Select your IDE from generator list

generator

  • Click Finish

  • Click Configure again to update red values

configure

  • Click Generate
  • After generation, build the project through your IDE

Commands

Command Action
Q Toggle quadrants drawing
Click & Drag Add particle with velocity of mouse drag

About

A very simple particle physics simulator.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors