Code Monkey home page Code Monkey logo

bevy_xpbd's Introduction

Bevy XPBD

Bevy XPBD is a physics engine based on Extended Position Based Dynamics (XPBD) for the Bevy game engine.

This is an experimental work-in-progress that I am working on because I'm interested in learning about physics engines. You probably shouldn't use this for anything serious.

Currently this physics engine supports Bevy 0.9.1, and I will try to keep up with major releases.

Note: No crate is available on Cargo yet. I will publish this as a crate when I have fixed the biggest issues, reached respectable performance and added enough documentation.

Current features

  • 2D and 3D support
  • Dynamic and static rigid bodies
  • Position and rotation integration and solving
  • Linear and angular velocity integration and solving
  • Collision detection via parry
  • Basic joints
    • Revolute joint (or hinge joint), optional angle limits
    • Spherical joint, optional swing and twist angle limits
    • Prismatic joint, one free translational axis with optional limits
    • Fixed joint
  • Joint damping
  • Gravity
  • External forces
  • Restitution
  • Friction
  • Substepping

Future features

  • Linear and angular velocity damping
  • Locking translational and rotational axes without joints
  • Collision groups
  • Publicly accessable contact data
  • Performance optimization (sleeping, multithreading...)
  • Maybe basic soft bodies
  • Maybe (unlikely) fluid simulation

Other future work

  • Documentation
  • More examples
  • Publish crate

Inspirations

License

Bevy XPBD is free and open source. All code in this repository is dual-licensed under either:

bevy_xpbd's People

Contributors

jondolf 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.