Skip to content
/ phaba Public

2D physics engine. Just my hobby project I do when I have inspiration or too much free time.

License

Notifications You must be signed in to change notification settings

yehorror/phaba

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phaba - 2D physics engine

My hobby project I am writing in my spare time. The idea is to perform all computations (bodies moving, collisions detection and resolving) on a GPU via compute shaders. For sure it will put some limitation on its possible functionality - e.g. we can't call collisions callbacks from compute shader immediately, but at least it should be (in theory) faster to compute everything on GPU instead of CPU.

Build

TODO: provide more clear instruction on how to build (including environment, etc) If you want to, you can try to open it with Visual Studio 2022 as CMake project. Projects has some dependencies you may find in conanfile.txt. To install them, use 'conan install' with desired configuration (debug/release). You can do it in a directory out/build/x64-configuration/, VS should catch them up after that. Then you can open build and debug it within Visual Studio.

Ideas for the future

  • Collision callbacks
  • Event callbacks with client`s compute shader code (e.g. to manipulate on bodies somehow when they collide)
  • Add support for Vulkan API (it is just easier to start with OpenGL)
  • Linux/macOS support (though it is CMake+Conan project, it is currently tested only on Windows)

About

2D physics engine. Just my hobby project I do when I have inspiration or too much free time.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published