use crate::ecs::cloth::components::Cloth;
use nalgebra_glm::Vec3;
use std::collections::HashMap;
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Wind {
pub direction: Vec3,
pub strength: f32,
pub gust_strength: f32,
pub gust_frequency: f32,
pub turbulence: f32,
}
impl Default for Wind {
fn default() -> Self {
Self {
direction: Vec3::new(0.42, 0.0, 0.91),
strength: 3.0,
gust_strength: 2.0,
gust_frequency: 0.5,
turbulence: 1.5,
}
}
}
#[derive(Default)]
pub struct ClothMeshSync {
pub snapshots: HashMap<freecs::Entity, Cloth>,
}