[][src]Trait myelin_engine::world_interactor::Interactable

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

Trait used by WorldInteractor. Implementors of this trait provide the actual code used for the performed actions

Required methods

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

Returns read-only descriptions for all objects either completely contained or intersecting with the given 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 Interactable for SimulationImpl[src]

Loading content...