PhysX
rapier
PhysX | rapier | |
---|---|---|
18 | 39 | |
2,296 | 3,574 | |
2.0% | 4.0% | |
4.7 | 8.4 | |
25 days ago | 6 days ago | |
C++ | Rust | |
BSD 3-clause "New" or "Revised" License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
PhysX
-
Blaze: A High Performance C++ Math library
For typical game physics engines... not that much. Math libraries like Eigen or Blaze use lots of template metaprogramming techniques under the hood that can help when you're doing large batched matrix multiplications (since it can remove temporary allocations at compile-time and can also fuse operations efficiently, as well as applying various SIMD optimizations), but it doesn't really help when you need lots of small operations (with mat3 / mat4 / vec3 / quat / etc.). Typical game physics engines tend to use iterative algorithms for their solvers (Gauss-Seidel, PBD, etc...) instead of batched "matrix"-oriented ones, so you'll get less benefits out of Eigen / Blaze compared to what you typically see in deep learning / scientific computing workloads.
The codebases I've seen in many game physics engines seem to all roll their own math libraries for these stuff, or even just use SIMD (SSE / AVX) intrinsics directly. Examples: PhysX (https://github.com/NVIDIA-Omniverse/PhysX), Box2D (https://github.com/erincatto/box2d), Bullet (https://github.com/bulletphysics/bullet3)...
-
Rust Game Physics Engines: PhysX, Rapier, XPBD & Others
NVIDIA PhysX GitHub repo: NVIDIA-Omniverse/PhysX
-
Recommended Physics Engine?
I don’t know of any books but here is the official documentation which includes an API reference. You can also find a lot of sample code snippets and examples on their GitHub.
-
C# Game engine - suggestions
On the other hand, PhysX is available under the MIT License and is both heavily used in games and also well documented with tons of sample code.
-
AMD Finally Opens Up Its Radeon Raytracing Analyzer "RRA" Source Code
The CPU implementation of PhysX is too, no reason you couldn't port that to run on AMD GPUs: https://github.com/NVIDIA-Omniverse/PhysX
-
Nvidia PhysX 5.0 is now open source
The LICENSE.md file on the repo doesn't mention BSD-3-Clause at all, it's just a copywrite notice that reads more like CC-BY than a software license. That's why I said it was weird.
Very! I just picked a random file: https://github.com/NVIDIA-Omniverse/PhysX/blob/release/104.0/physx/source/physx/src/NpArticulationJointReducedCoordinate.cpp
- GitHub - NVIDIA-Omniverse/PhysX: NVIDIA PhysX SDK - 5.0
rapier
-
Xkcd 2916: Machine
Ok, so this uses https://rapier.rs/ which is very cool
Rapier, alongside https://nalgebra.org/ (which it uses underneath) has seriously good documentation and some advanced features like cross-platform determinism (something made hard by the way floating point differs between platforms)
-
Rust Game Physics Engines: PhysX, Rapier, XPBD & Others
Code examples: see examples2d, examples3d-f64 and examples3d directories
- Rapier: Fast 2D and 3D physics engines written in Rust
-
Bevy XPBD: A physics engine for the Bevy game engine
What are the pros and cons compared to something like Rapier? When should one use Bevy XPBD instead of Rapier, or vice versa?
-
What's everyone working on this week (22/2023)?
Still using Rust in a browser-based multiplayer party game I'm working on! I'm using Actix Web for the backend and rapier2d to handle my game's physics. I'm looking to make some more connections amongst the developer / gaming community through my game down the line.
-
Constructing a piston/muscle/gas strut in bevy_rapier3d?
I have noticed that Rapier 0.17 contains a RopeJoint struct, which constrains maximum distance between two dynamic bodies. It doesn't seem to have found its way into bevy_rapier3d yet so I haven't understood whether it supports (half of) my use case, and looking at the code (https://github.com/dimforge/rapier/blob/master/src/dynamics/joint/rope_joint.rs) I really cannot see how it is actually implemented and how I could extend it to also set a minimum distance, but this may be a place to start.
-
Next part of my platformer in bevy series
I was also frustrated with the kcc, so I opened a PR that fixes most of my issues: https://github.com/dimforge/rapier/pull/446
-
What libraries does Idris need to increase adoption?
Likewise, see the js bindings of Rapier.
-
Good resources for structuring a 2d physics engine in Rust?
Maybe check out how Rapier does it. Rapier is likely the most advanced physics engine in Rust. (Though Embark Studios is doing some crazy stuff with ML physics.)
-
A Rust client library for interacting with Microsoft Airsim https://github.com/Sollimann/airsim-client
rapier
What are some alternatives?
RayTracingDenoiser - NVIDIA Ray Tracing Denoiser
box2d-wasm - Box2D physics engine compiled to WebAssembly. Supports TypeScript and ES modules.
physx-rs - 🎳 Rust binding for NVIDIA PhysX 🦀
bevy - A refreshingly simple data-driven game engine built in Rust
PhysX - NVIDIA PhysX SDK
parry - 2D and 3D collision-detection library for Rust.
JoltPhysics - A multi core friendly rigid body physics and collision detection library, written in C++, suitable for games and VR applications.
nakama - Distributed server for social and realtime games and apps.
AI4Animation - Bringing Characters to Life with Computer Brains in Unity
PixiJS - The HTML5 Creation Engine: Create beautiful digital content with the fastest, most flexible 2D WebGL renderer.
box2d-lite - A small 2D physics engine
gdnative - Rust bindings for Godot 3