Struct bevy_boids::BoidDescriptor
source · pub struct BoidDescriptor {
pub thrust: f32,
pub lift: f32,
pub gravity: f32,
pub bank: f32,
pub separation: f32,
pub alignment: f32,
pub cohesion: f32,
pub bank_rate: f32,
pub rise_rate: f32,
pub maximum_vision: f32,
}
Fields§
§thrust: f32
§lift: f32
§gravity: f32
§bank: f32
§separation: f32
§alignment: f32
§cohesion: f32
§bank_rate: f32
§rise_rate: f32
§maximum_vision: f32
Trait Implementations§
source§impl Default for BoidDescriptor
impl Default for BoidDescriptor
impl Resource for BoidDescriptorwhere Self: Send + Sync + 'static,
Auto Trait Implementations§
impl RefUnwindSafe for BoidDescriptor
impl Send for BoidDescriptor
impl Sync for BoidDescriptor
impl Unpin for BoidDescriptor
impl UnwindSafe for BoidDescriptor
Blanket Implementations§
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere T: Default,
§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates
Self
using data from the given [World]