Add an angular velocity component
This commit is contained in:
@@ -8,6 +8,9 @@ use bevy::prelude::*;
|
|||||||
#[derive(Component)]
|
#[derive(Component)]
|
||||||
pub(crate) struct Velocity(pub(crate) bevy::math::Vec2);
|
pub(crate) struct Velocity(pub(crate) bevy::math::Vec2);
|
||||||
|
|
||||||
|
#[derive(Component)]
|
||||||
|
pub(crate) struct AngularVelocity(pub(crate) f32);
|
||||||
|
|
||||||
#[derive(Component)]
|
#[derive(Component)]
|
||||||
pub(crate) struct Rotation(pub(crate) f32);
|
pub(crate) struct Rotation(pub(crate) f32);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user