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

The starting position of the animal

The speed of the animal

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

Methods

impl AnimalConfig
[src]

Create a new animal config with using the provided parameters

Trait Implementations

impl Clone for AnimalConfig
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for AnimalConfig
[src]