[][src]Trait myelin_engine::world_interactor::WorldInteractor

pub trait WorldInteractor: Debug {
    fn find_objects_in_area(&self, area: Aabb) -> Snapshot;
fn elapsed_time_in_update(&self) -> Duration; }

Provides information to an ObjectBehavior about the world it is placed in.

Required methods

fn find_objects_in_area(&self, area: Aabb) -> Snapshot

Scans for objects in the area defined by an Aabb.

Returns all objects either completely contained or intersecting with the area.

fn elapsed_time_in_update(&self) -> Duration

Returns the amount of time that passed since the last call to the step function of Simulation

Loading content...

Implementors

impl<'a> WorldInteractor for WorldInteractorImpl<'a>[src]

Loading content...