Crates.io | bevy-rapier-baseball-flight |
lib.rs | bevy-rapier-baseball-flight |
version | 0.0.1-alpha.5 |
source | src |
created_at | 2024-10-03 06:47:19.634377 |
updated_at | 2024-11-03 11:51:20.947909 |
description | Baseball flight simulation with Bevy and Rapier |
homepage | |
repository | https://github.com/slothman3878/bevy-rapier-baseball-flight |
max_upload_size | |
id | 1394937 |
size | 129,458 |
A Bevy plugin for simulating baseball flight powered by Rapier physics based on the umba baseball flight calculator: https://github.com/AndRoo88/Baseball-Flight-Calculator;
Simulates the four forces that affect the trajectory of a baseball in flight: Gravity, Drag, Magnus Effect, and Seam Shifted Wake (SSW).
Add BaseballFlightBundle
to whatever baseball entity. Entity must have the ExternalForce
, Transform
, LinearVelocity
, and AngularVelocity
components.
Send ActivateAerodynamicsEvent
to start simulation.
Send DisableAerodynamicsEvent
to stop simulation.
Note that the simulations are performed using imperial units instead and also its own coordinate system and NOT bevy's.