InteractWithOthers
This strategy slows down nodes depending on how many "interacting" nodes are found in the surroundings. It is an attempt at modeling crowding slow-downs.
Parameters
<P>
position type
<T>
concentration type
Functions
Link copied to clipboard
open fun cloneIfNeeded(@Nonnull destination: Node<T>, @Nonnull reaction: NodeReaction<T>): SpeedSelectionStrategy<T, P>
Returns a clone for destination and reaction when the strategy is stateful.
Link copied to clipboard
Computes the movement length toward target.