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


The starting position of the animal

The speed of the animal

The average rate at which the animal changes (radians / second)


impl AnimalConfig

Create a new animal config with using the provided parameters

Trait Implementations

impl Clone for AnimalConfig

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for AnimalConfig