pub fn move_agent<S, A, Store, Props, R, Sch>(
model: &mut StandardModel<S, A, Store, Props, R, Sch>,
id: AgentId,
new_position: A::Position,
) -> Result<(), InteractionError<S::Error>>where
A: PositionedAgent,
S: SpaceInteraction<A>,
Store: AgentStore<A>,
R: RngCore,
Sch: Scheduler<StandardModel<S, A, Store, Props, R, Sch>>,Expand description
Move an agent to a new position in the space.
Returns InteractionError::AgentNotFound if no agent with this ID was found,
or InteractionError::Space if the space rejects the new position.