fjadra

Crates.iofjadra
lib.rsfjadra
version0.2.1
sourcesrc
created_at2024-11-19 14:58:33.208756
updated_at2024-12-11 11:38:19.788612
descriptionLibrary for simulating physical forces on particles
homepage
repository
max_upload_size
id1453411
size134,536
Jochen Görtler (grtlr)

documentation

README

Fjädra 🪽

A library for simulating physical forces on particles, which was heavily inspired by d3-force. Its main use case is to layout graphs (i.e. node-link diagrams)—if you are looking for a pure physics engine, you might want to check out the excellent Rapier and Parry from Dimforge.

[!WARNING] This library is currently under development so the API is still likely to change.


Development is sponsored by Rerun, a startup building
an SDK for visualizing streams of multimodal data.


Design Goals

  • Produce outputs that are comparable to d3-force.
  • Lightweight with only minimal dependencies to allow wasm-bindgen and no_std support.
  • Idiomatic Rust API that still follows the d3 conventions where possible.
  • Performance that allows user interactions.

Forces

We currently support the following forces:

  • Collision on circles (Collide)
  • Centering (Center)
  • Springs (Link)
  • Charge and repulsion (ManyBody)
  • Gravity (PositionX and PositionY)
Commit count: 0

cargo fmt