patrickoh / bounce

Bounce is a 3D physics engine for games.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bounce

Bounce is a 3D physics engine for games.

Features

Common

  • Efficient data structures with no use of STL
  • Fast memory allocators
  • Built-in math library
  • Tunable settings used across the entire library
  • Debug draw utility and profiler

Collision

  • Continuous collision detection
  • Dynamic tree broadphase
  • SAT
  • GJK
  • Spheres, capsules, triangles, convex hulls, triangle meshes
  • Optimized pair management
  • One-shot contact manifolds

Dynamics

  • Rigid bodies
  • Contact, friction, restitution
  • Sphere, cone, revolute, and more joint types
  • Joint motors, limits
  • Constraint graphs
  • Simulation islands and sleep management
  • Linear time solver
  • Stable shape stacking
  • Contact clustering, reduction, and persistence
  • Contact callbacks: begin, pre-solve, post-solve
  • Ray-casting, shape-casting, and volume queries

Testbed

  • OpenGL with GLFW and GLAD
  • UI by imgui
  • Mouse picking
  • Orbit camera
  • CMake build system

Documentation

Note: Use the Getting Started guide and the Testbed for learning how to use Bounce. Testbed is a collection of visual tests and examples that can support the development of the library. As you would imagine, this application is not part of the library.

License

Bounce is released under the zlib license. Please recognize this software in the product documentation if possible.

Dependencies

Testbed

These are the external dependencies for the Testbed example project. If you don't care about the Testbed you don't need these dependencies.

Building

  • Install CMake
  • Ensure CMake is in the user 'PATH'

Visual Studio

  • You can run 'build.bat' from the command prompt
  • Building results are in the build sub-folder
  • Open bounce.sln

Any system

  • Run 'build.sh' from a bash shell
  • Building results are in the build sub-folder

Contributing

You can ask anything relative to this project using the Discussions section. Please do not use the issue tracker for asking questions. The issue tracker is not a place for this.

Please do not open pull requests with bugfixes or new features that require core library changes. Open an issue first for discussion.

About

Bounce is a 3D physics engine for games.

License:zlib License


Languages

Language:C++ 77.4%Language:C 21.4%Language:CMake 1.2%Language:Shell 0.0%Language:Batchfile 0.0%