1 2 3 4 5 6 7 8 9 10 11 12
use bevy::{ ecs::resource::Resource, math::Vec3, prelude::{Deref, DerefMut}, }; /// Represents the global gravity #[derive(Resource, Deref, DerefMut, PartialEq, Default, Clone)] pub struct Gravity { #[deref] pub(crate) gravity: Vec3, }