Struct heron_core::Gravity [−][src]
pub struct Gravity(_);
Resource that defines world’s gravity.
Example
fn main() { App::build() // ... Add plugins .insert_resource(Gravity::from(Vec3::new(0.0, -9.81, 0.0))) // ... Add systems .run(); }
Implementations
Trait Implementations
impl StructuralPartialEq for Gravity
[src]
impl StructuralPartialEq for Gravity
[src]Auto Trait Implementations
impl RefUnwindSafe for Gravity
impl RefUnwindSafe for Gravity
impl UnwindSafe for Gravity
impl UnwindSafe for Gravity
Blanket Implementations
impl<T> Any for T where
T: Any,
impl<T> Any for T where
T: Any,
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
impl<T> FromWorld for T where
T: Default,
impl<T> FromWorld for T where
T: Default,
pub fn from_world(_world: &mut World) -> T
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> TypeData for T where
T: 'static + Send + Sync + Clone,
impl<T> TypeData for T where
T: 'static + Send + Sync + Clone,
pub fn clone_type_data(&self) -> Box<dyn TypeData + 'static, Global>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,