uselotus_proc_macros::Component;/// Struct to represent the gravity in our world.
////// It starts with value equal to 9.8 (standard gravity of Earth).
////// Gravity will only be applied to entities with the 'RigidBody' and 'Velocity' components.
#[derive(Clone, Component)]pubstructGravity{pubvalue:f32}implGravity{/// Create a custom Gravity struct.
pubfnnew(value:f32)->Self{returnSelf{
value
};}}implDefault forGravity{fndefault()->Self{returnSelf{
value:9.8};}}