body.rs 230 B

12345678910111213141516
  1. use bevy::prelude::*;
  2. #[derive(Component)]
  3. pub struct Velocity {
  4. pub v: Vec3,
  5. }
  6. #[derive(Component)]
  7. pub struct Rotation {
  8. pub r: f32, // radiants per second
  9. }
  10. #[derive(Component)]
  11. pub struct Thrust {
  12. pub t: f32,
  13. }