#bevy #math #gamedev #target

bevy_ballistic

Simple Bevy math functions to calculate projectile launch angles to hit a specific target

4 releases (2 breaking)

Uses new Rust 2024

0.2.0 Apr 6, 2025
0.1.1 Mar 31, 2025
0.1.0 Mar 31, 2025
0.0.0 Mar 31, 2025

#1348 in Game dev

Download history 310/week @ 2025-03-31 51/week @ 2025-04-07 5/week @ 2025-04-14

366 downloads per month

MIT license

1MB
355 lines

bevy_ballistic

crates.io docs.rs discord

demo

Simple launch velocity calculation for game projectiles to hit a specified target based on given gravity. Only depending on bevy_math for vector math. Based on this article by Forrest Smith

How to run example

cargo r --example bevy

Our Other Crates

Bevy version support

bevy crate
0.15 0.1,main

License

All code in this repository is dual-licensed under either:

at your option. This means you can select the license you prefer.

Your contributions

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~13MB
~297K SLoC