Git Product home page Git Product logo

stowyphysicsengine's Introduction

GPR4400-PhysicsEngine

This project is a 2D physics engine written in C++.

The wiki is hosted on Read The Docs and the API Documentation (Doxygen) on GitHub Pages.

It has :

  • Circle -> Circle collisions
  • Circle -> AABB collisions
  • AABB -> AABB collisions
  • A failed attempt at SAT
  • A failed attempt at GJK
  • Broad phase collision detection with a grid

Getting started

  1. Get a C++20 compiler
  2. Build with CMake :
cmake -S . -B .\build\
cmake --build .\build\

When building in Debug mode, you need to rename freetyped.dll to freetype.dll in the folder where Demo.exe is located. I don't know why this is necessary, but I guess it's a problem with my CMake setup with SFML.

Dependencies

The physics engine doesn't have any dependencies, and can be built alone as a library.

The demo scene has a dependency on SFML but it is retrieved using CMake's FetchContent so you don't have to use something like vcpkg.

Folder structure

There are two main folders in this project :

  • StowyPhysicsEngine
  • Demo

StowyPhysicsEngine is the physics engine in itself. It is setup as a CMake library.

Demo is the SFML project to visualise the physics engine.

They each have their own CMakeList.txt but there is also a main one that includes both to be able to build everything at once.

stowyphysicsengine's People

Contributors

st0wy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.