| Crates.io | bevy_fabrik |
| lib.rs | bevy_fabrik |
| version | 0.2.0 |
| created_at | 2024-10-23 01:10:56.03202+00 |
| updated_at | 2025-01-28 10:01:38.588315+00 |
| description | IK solver for Bevy using FABRIK algorithm |
| homepage | |
| repository | https://github.com/Kilbukas/bevy_fabrik |
| max_upload_size | |
| id | 1419517 |
| size | 3,290,674 |
An implementation of FABRIK inverse kinematics algorithm for Bevy game engine.

Disclaimer: multi-chain support is not implemented yet.
Add InverseKinematicsPlugin to your App:
app.add_plugins(InverseKinematicsPlugin);
Add IkChain component to the last entity (tail) of a chain of entities you want to control:
commands.entity(chain_tail).insert(IkChain::new(joint_count));
Note that IkChain will calculate bone lengths based on the distance between entities in the chain when inserted, so make sure the entities and their transforms are set up correctly before inserting it.
Finally, update IkChain's target field as needed to solve the chain towards it. For a more complete example, see examples/basic.rs.
To add joint constraints, insert TwistConstraint and/or SwingConstraint components to the entities within the chain, and they will be applied during chain solving.
| Bevy | bevy_fabrik |
|---|---|
| 0.15 | 0.2 |
| 0.14 | 0.1 |
Dual-licensed under either:
at your option.