rapier
comlink
Our great sponsors
rapier | comlink | |
---|---|---|
39 | 22 | |
3,545 | 10,801 | |
5.6% | 1.3% | |
8.4 | 0.0 | |
4 days ago | 18 days ago | |
Rust | TypeScript | |
Apache License 2.0 | 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.
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
comlink
-
RemoteUI
Feels like taking a general Comlink-like system & making it more component oriented. Good ideas. https://github.com/GoogleChromeLabs/comlink
-
Your favorites?
React UI Framework: https://ant.design/ Reactive: https://www.learnrxjs.io/ Workers: https://github.com/GoogleChromeLabs/comlink Graphics: https://www.pixijs.com/
-
Concurrent.js, a multithreaded module loader - Run in a worker, use in the main thread
Reminds me of Comlink
-
Creating PDF Files Without Slowing Down Your App
Now that we have a way to create PDF files, we can create a web worker to run the renderPDF function in a separate thread. Hereβs an example of a web worker that uses comlink to expose the renderPDF function as an asynchronous function:
-
How to use Service Workers with React and Vite
To streamline the process of configuring the Service Worker and simplify communication between the app and the Service Worker, we will be using the comlink library.
- Svelte + Web Workers (Looking for insight)
-
Deno 1.25
While there's no realistic way to provide a security boundary between JavaScript modules, Workers are a possibility [1].
The code with the more restricted set of permissions must run in the Worker. That code then communicates with the rest of your app through postMessage / SharedArrayBuffer, perhaps using ComLink [2].
[1] https://deno.land/[email protected]/runtime/workers#specifying-...
[2] https://github.com/GoogleChromeLabs/comlink
- [AskJS] What are some real world applications of JS Proxy objects?
-
Optimizing Your Web App for Maximum Runtime Performance and Premature Optimization π¦
The worker API is very simple, you would post a message to the worker. The worker would have the code to process and reply back with the results to the listeners. To make it even easier Google has created the comlink library.
- Web Crypto API
What are some alternatives?
box2d-wasm - Box2D physics engine compiled to WebAssembly. Supports TypeScript and ES modules.
partytown - Relocate resource intensive third-party scripts off of the main thread and into a web worker. π
bevy - A refreshingly simple data-driven game engine built in Rust
vite - Next generation frontend tooling. It's fast!
parry - 2D and 3D collision-detection library for Rust.
workbox - π¦ Workbox: JavaScript libraries for Progressive Web Apps
nakama - Distributed server for social and realtime games and apps.
threads.js - 𧡠Make web workers & worker threads as simple as a function call.
PixiJS - The HTML5 Creation Engine: Create beautiful digital content with the fastest, most flexible 2D WebGL renderer.
wasm-pack - π¦β¨ your favorite rust -> wasm workflow tool!
gdnative - Rust bindings for Godot 3
Next.js - The React Framework