aboutsummaryrefslogtreecommitdiff
path: root/plugins/movement/src/velocity.rs
blob: c445e64ebf6acdd7526807c7ce012303ebf78913 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
use bevy::{
    ecs::component::Component,
    math::Vec3,
    prelude::{Deref, DerefMut},
};

/// Used to record the amount of movement an object is currently undergoing
#[derive(Component, Deref, DerefMut, PartialEq, Default, Clone)]
pub struct Velocity {
    #[deref]
    velocity: Vec3,
}