GithubHelp home page GithubHelp logo

javicervera / bounce Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kazade/bounce

0.0 1.0 0.0 5.1 MB

Bounce is a 3D physics engine for games.

License: zlib License

Batchfile 0.01% C++ 47.35% C 51.71% Lua 0.64% Makefile 0.30%

bounce's Introduction

Bounce

Welcome! Bounce is a 3D physics engine for games.

Feel free to ask questions, give feedback and suggestions using the issue tracker.

License

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

Building

Bounce uses premake for generating project files in a platform agnostic manner. premake is available at https://premake.github.io/.

  • Put premake into bounce/.

Visual Studio 2017

  • Ensure you have installed the Visual Studio 2015 libraries.
  • Say { premake5 vs2017 } on a command line.
  • Open build/vs2017/bounce.sln.
  • Set testbed as the startup project.
  • In the testbed debugging properties, set the Working Directory to ..\..\examples\testbed.
  • Press F5 to run.

Linux

  • On a clean Ubuntu 16.04 install these packages first:

  • mesa-common-dev

  • libgl1-mesa-dev

  • libglu1-mesa-dev

x32

  • Say { premake5 gmake } on a terminal.
  • From build/gmake say { make config="debug_x32" }.
  • Set the testbed directory as the working directory.
  • Open testbed from /bin/x32/testbed/.

x64

  • Say { premake5 gmake } on a terminal.
  • From build/gmake say { make config="debug_x64" }.
  • Set the testbed directory as the working directory.
  • Open testbed from /bin/x64/testbed/.

Mac

I don't run Mac currently and therefore can't test the build system in this platform.

Documentation

Doxygen

User manual is a work in progress. Meanwhile, code comments and examples are the best way to learn how to use Bounce. For examples, you can use the project testbed. 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.

Contributing

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

Dependencies

Below are the external dependencies for testbed. If you don't care about testbed, then you don't need these dependencies.

Features

Common

  • Efficient data structures with no use of STL
  • Stack and small block allocators
  • Built-in math library
  • Tunable settings used across the entire library

Quickhull

  • Robust 3D convex hull creation and simplification

Collision

  • Dynamic tree broadphase
  • Static tree "midphase"
  • SAT
  • GJK
  • Spheres, capsules, convex hulls, triangle meshes
  • Optimized pair management

Dynamics

  • Rigid bodies
  • Contact, friction, restitution
  • Mouse, spring, sphere, cone, revolute joint types
  • Quaternion constraints
  • Joint motors, limits
  • Constraint graphs
  • Simulation islands and sleep management
  • Linear time solver
  • Stable shape stacking
  • One-shot contact manifolds
  • Contact clustering, reduction, and persistence
  • Contact callbacks: begin, pre-solve, post-solve
  • Ray-casting and volume queries

Rope

  • Rope
  • Linear time solver

Cloth

  • Cloth
  • Vertex contact, friction
  • Strech, shear, spring, mouse force types
  • Linear time solver
  • Unconditional simulation stability
  • Ray-casting

Soft Body

  • Soft body
  • Vertex contact, friction
  • Elasticity, plasticity
  • Linear time solver
  • Unconditional simulation stability
  • Ray-casting

Testbed

  • OpenGL with GLFW and GLAD
  • UI by imgui
  • Mouse picking
  • premake build system

Documentation

  • Doxygen API documentation

bounce's People

Contributors

hinrikg avatar irlanrobson avatar kazade avatar

Watchers

 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.