foxtrot 0.1.0

A 3D reference project and tech demo for the Bevy Engine.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Player pickup handling.

use avian_pickup::prop::HeldProp;
use bevy::prelude::*;

mod collision;
mod input;
mod sound;
mod ui;

pub(super) fn plugin(app: &mut App) {
    app.add_plugins((collision::plugin, input::plugin, sound::plugin, ui::plugin));
}

pub(crate) fn is_holding_prop(q_prop: Query<&HeldProp>) -> bool {
    !q_prop.is_empty()
}