All Projects → mattleibow → Jitterphysics

mattleibow / Jitterphysics

Licence: mit
A cross-platform, realtime physics engine for all .NET apps.

Programming Languages

csharp
926 projects

Projects that are alternatives of or similar to Jitterphysics

Physics3d
A 3D physics engine
Stars: ✭ 101 (-63.54%)
Mutual labels:  engine, physics
Sofa
Real-time multi-physics simulation with an emphasis on medical simulation.
Stars: ✭ 435 (+57.04%)
Mutual labels:  engine, physics
D3D12Renderer
Custom renderer and physics engine written from scratch in C++/Direct3D 12.
Stars: ✭ 17 (-93.86%)
Mutual labels:  engine, physics
Nebula Trifid
Nebula Trifid
Stars: ✭ 62 (-77.62%)
Mutual labels:  engine, physics
Rootex
An advanced C++ 3D game engine powering an in-production game yet to be announced
Stars: ✭ 161 (-41.88%)
Mutual labels:  engine, physics
jitterphysics
A cross-platform, realtime physics engine for all .NET apps.
Stars: ✭ 327 (+18.05%)
Mutual labels:  engine, physics
elasty
A research-oriented elastic body simulator
Stars: ✭ 173 (-37.55%)
Mutual labels:  engine, physics
Geolocatorplugin
Geolocation plugin for Xamarin and Windows
Stars: ✭ 257 (-7.22%)
Mutual labels:  xamarin
Itensor
A C++ library for efficient tensor network calculations
Stars: ✭ 269 (-2.89%)
Mutual labels:  physics
Windfield
Physics module for LÖVE
Stars: ✭ 254 (-8.3%)
Mutual labels:  physics
PokemonBattleEngine
A C# library that can emulate Pokémon battles.
Stars: ✭ 92 (-66.79%)
Mutual labels:  engine
Tinyengine
Tiny OpenGL Wrapper / 3D Engine in C++
Stars: ✭ 251 (-9.39%)
Mutual labels:  engine
Ruleengine
最好使用的规则引擎之一,可以直接使用SQL语句定义规则,简化了编码的负荷,也可以使用XML, drl文件配置规则,还支持drools文件导入。One of the best rule engines, is easy to use SQL statements to define rules, simplify the workload of coding, it also can use XML, DRL file to configure rules, and support import drools file directly.
Stars: ✭ 271 (-2.17%)
Mutual labels:  engine
Tork
Arcade vehicle physics for Unity
Stars: ✭ 256 (-7.58%)
Mutual labels:  physics
Aiforms.settingsview
SettingsView for Xamarin.Forms
Stars: ✭ 274 (-1.08%)
Mutual labels:  xamarin
fundamental
Software to look for interrelationships between constants and find formulas for number sequences
Stars: ✭ 14 (-94.95%)
Mutual labels:  physics
Mvvmcross Samples
Tutorials and samples for MvvmCross: The .NET MVVM framework for cross-platform solutions.
Stars: ✭ 277 (+0%)
Mutual labels:  xamarin
Templateui
A set of Xamarin.Forms templated controls.
Stars: ✭ 273 (-1.44%)
Mutual labels:  xamarin
Fusillade
An opinionated HTTP library for Mobile Development
Stars: ✭ 269 (-2.89%)
Mutual labels:  xamarin
Drools
rules engine
Stars: ✭ 266 (-3.97%)
Mutual labels:  engine

Jitter Physics

JitterPhysics Build JitterPhysics on NuGet

Jitter Physics is a fast and lightweight 3D physics engine written in C#.

Jitter Physics Cloth Speculative Contacts Jitter Physics
Jitter Physics Cloth Speculative Contacts Jitter Physics

Platforms & Frameworks

  • Every platform which supports .NET, Mono or Xamarin
  • Works with the Mono framework on Linux/Mac without any recompilation
  • Also supports the Xbox360 and Windows Phone (up to v0.1.7)
  • No dependencies. Every 3D engine/framework is supported: OpenTK, SlimDX, SharpDX, XNA, IrrlichtEngine, Urho3D

Overall Design

  • Written in pure C# with a clean and object orientated API
  • Optimized for low to no garbage collections and maximum speed
  • Supported Shapes: TriangleMesh, Terrain, Compound, MinkowskiSum, Box, Sphere, Cylinder, Cone, Capsule, ConvexHull
  • Take advantage of multi-core CPUs by using the internal multithreading of the engine

Jitter Physics (2D)

The "Jitter-2D" branch is still in development an is not complete. At this time, it is probably better to make use of Farseer Physics.

Quick Start

Initialize the Physics System

Create a world class and initialize it with a CollisionSystem:

CollisionSystem collision = new CollisionSystemSAP();
World world = new World(collision);

Add Objects to the World

Create a shape of your choice and pass it to a body:

Shape shape = new BoxShape(1.0f, 2.0f, 3.0f);
RigidBody body = new RigidBody(shape);

It's valid to use the same shape for different bodies. Set the position and orientation of the body by using it's properties. The next step is to add the Body to the world:

world.AddBody(body);

Run the Simulation

Now you can call the Step method to integrate the world one timestep further. This should be done in you main game loop:

while (gameRunning)
{
    world.Step(1.0f / 100.0f, true);
    
    // do other stuff, like drawing
}

The first parameter is the timestep. This value should be as small as possible to get a stable simulation. The second parameter is for whether using internal multithreading or not. That's it the body is now simulated and affected by default gravity specified in World.Gravity. After each timestep the Position of the body should be different.

Credits

This library was originally written by Thorben Linneweber. Original source code can be found at https://code.google.com/archive/p/jitterphysics.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].