Git Product home page Git Product logo

jitterphysics2's Introduction

JitterTests

Jitter Physics 2

Jitter Physics 2, the evolution of Jitter Physics, is an impulse-based dynamics engine with a semi-implicit Euler integrator. It is a fast, simple, and dependency-free engine written in C# with a clear and user-friendly API.

screenshot screenshot

screenshot screenshot

Getting Started

Jitter is cross-platform. The src directory contains four projects:

Project Description
Jitter2 The main library housing Jitter2's functionalities.
JitterDemo Features demo scenes rendered with OpenGL, tested on Linux and Windows.
JitterBenchmark The setup for conducting benchmarks using BenchmarkDotNet.
JitterTests Unit tests utilizing NUnit.

To run the demo scenes:

  • Install .NET 7.0
  • git clone https://github.com/notgiven688/jitterphysics2.git
  • cd ./jitterphysics2/src/JitterDemo && dotnet run -c Release

JitterDemo uses GLFW for accessing OpenGL and managing windows, and cimgui for GUI rendering. The project contains these native binaries in a precompiled form. On Linux you may have to install GLFW, e.g. on Ubuntu sudo apt-get install libglfw3-dev.

Features

  • Speculative contacts (avoiding the bullet-through-paper problem).
  • A variety of constraints and motors (AngularMotor, BallSocket, ConeLimit, DistanceLimit, FixedAngle, HingeAngle, LinearMotor, PointOnLine, PointOnPlane, TwistAngle) with support for softness.
  • A sophisticated deactivation scheme with minimal cost for inactive rigid bodies (scenes with 100k inactive bodies are easily achievable).
  • Edge collision filter for internal edges of triangle meshes.
  • Substepping for improved constraint and contact stability.
  • Generic convex-convex collision detection using EPA-aided MPR.
  • "One-shot" contact manifolds using auxiliary contacts for flat surface collisions.
  • Efficient compound shapes.
  • Easy integration of custom shapes. Integrated: Box, Capsule, Cone, Convex Hull, Point Cloud, Sphere, Triangle, Transformed.

Documentation

Find the documentation here.

ToDo

  • Develop and distribute NuGet packages and releases.
  • Stabilize the engine and demo.
  • Expand the documentation to cover more topics and functionalities.

Contribute ๐Ÿ‘‹

Contributions of all forms are welcome! Feel free to fork the project and create a pull request.

jitterphysics2's People

Contributors

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