Skip to content

N16: Add Rapier and Salva #400

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions content/posts/newsletter-016/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,63 @@ in 0.11.0.

[glam]: https://github.com/bitshifter/glam-rs

### [Rapier]

[![Rapier logo](rapier-logo.svg)][Rapier]

[Rapier] is a set of 2D and 3D physics engines for games, animation and
robotics written in Rust.

[This month][rapier-november] the version 0.4.0 has been released with
exciting new features:

- the ability to read contact and proximity information from the narrow-phase.
- the ability to lock some translations and/or rotations for a rigid-body
without using joints.

The following demo shows examples of translation locking (on the blue cuboid)
and rotation locking (full locking on the capsule, partial locking on the
cuboid):

![Rapier features](rapier-demo.gif)

A cross-platform determinism bug appearing on MacOS with the new Apple M1
ARM processor has also been fixed.

The [bevy_rapier] plugin for the Bevy game engine has been updated to support
all the aforementioned features. In addition, it supports:

- the automatic removal of rigid-bodies, colliders, and joints when the entity
they are attached to are removed from the Bevy ECS.
- the ability to attach multiple colliders to a single rigid-body using Bevy
Hierarchy.

[Rapier]: https://rapier.rs
[rapier-november]: https://www.dimforge.com/blog/2020/12/01/this-month-in-dimforge/
[bevy_rapier]: https://www.rapier.rs/docs/user_guides/rust_bevy_plugin/getting_started

### [Salva]

[![Salva logo](salva-logo.svg)][Salva]

[Salva] is a set of 2D and 3D particle-based fluids simulation engines for
games and animation written in Rust.

Starting [this month][salva-november] Salva 0.5.0 no longer supports
[nphysics] for simulating rigid-bodies. Instead, it implements two-ways
coupling with [Rapier] (see the
[demo](https://twitter.com/dimforge/status/1329467380158898183)).

In addition to the Rapier integration, it is now possible to query Salva
to retrieve all the fluid particles located inside an AABB. This can be
useful for, e.g., spawning new particles ensuring there isn't anything
there already.

[Salva]: https://salva.rs
[salva-november]: https://www.dimforge.com/blog/2020/12/01/this-month-in-dimforge/
[salva-demo]: https://twitter.com/dimforge/status/1329467380158898183
[nphysics]: https://nphysics.org

### [rib]

![rib](rib.gif)
Expand Down
Binary file added content/posts/newsletter-016/rapier-demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading