From 2b1a0f386ee485aed336f9174e3b06861b720636 Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Sat, 9 Aug 2025 15:13:47 -0500 Subject: [PATCH] Add an angular velocity component --- src/physics.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/physics.rs b/src/physics.rs index a2c70b6..c495330 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -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);