forked from Brickworks/yahs
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e4d7121
commit 499710a
Showing
3 changed files
with
171 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use avian3d::prelude::*; | ||
use bevy::prelude::*; | ||
|
||
pub struct AeroPlugin; | ||
|
||
impl Plugin for AeroPlugin { | ||
fn build(&self, _app: &mut App) { | ||
// TODO: Add systems to update drag parameters. | ||
} | ||
} | ||
|
||
pub fn aero_drag_from_collider(collider: &Collider, velocity: LinearVelocity) -> (Vec3, f32, f32) { | ||
(collider.drag_normal, collider.drag_area, collider.drag_coeff) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
pub mod aero; | ||
pub mod atmosphere; | ||
pub mod balloon; | ||
pub mod forces; | ||
|