Crate bevy_verlet

Source
Expand description

Simple Verlet points and sticks implementation for bevy.

If you are looking for cloth physics, please check bevy_silk instead

§Bevy versions

bevy_verletbevy
0.1.x0.5.x
0.2.x0.6.x
0.3.x0.7.x
0.4.x0.8.x
0.5.x0.9.x
0.6.x0.11.x
0.7.x0.12.x
0.8.x0.13.x
0.9.x0.14.x

§Features

You can simply add a VerletPoint component on any entity with a Transform and the verlet physics will apply.

Connect points using VerletStick to constrain movement (see examples).

Lock some points by adding the VerletLocked component on a VerletPoint entity.

Customize friction and gravity with the VerletConfig resource.

Works in 2D and 3D.

§Cargo features

  1. debug

This feature will add a system drawing debug lines for every stick using bevy gizmos

Modules§

prelude
Prelude

Structs§

VerletConfig
Verlet physics configuration
VerletLocked
Marker component preventing application of VerletPoint physics.
VerletPlugin
Plugin for Verlet physics
VerletPoint
Main verlet physics component. Any entity with this component will have physics applied to it
VerletStick
Constraint component between two VerletPoint.
VerletStickMaxTension
Component adding a maximum tension to a VerletStick.