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