Struct simulation::animal::AnimalConfig
[−]
[src]
pub struct AnimalConfig {
pub position: [f32; 2],
pub speed: f32,
pub walk_variance: f32,
}Configuration options for an animal in a simulation
Fields
position: [f32; 2]
The starting position of the animal
speed: f32
The speed of the animal
walk_variance: f32
The average rate at which the animal changes (radians / second)
Methods
impl AnimalConfig[src]
fn new(position: [f32; 2], speed: f32, walk_variance: f32) -> AnimalConfig
Create a new animal config with using the provided parameters
Trait Implementations
impl Clone for AnimalConfig[src]
fn clone(&self) -> AnimalConfig
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more