VIPRA Documentation
|
Selects the nearest pedestrian with any of the given types. More...
#include <target_nearest.hpp>
Public Member Functions | |
TargetNearest (Ptype type, bool allPeds=false, std::optional< TargetModifier > modifier=std::nullopt) | |
auto | operator() (Simpack pack, Self self) const -> Target |
Returns the nearest pedestrian that has any of the target types. | |
Public Attributes | |
Ptype | type |
bool | allPeds |
std::optional< TargetModifier > | modifier |
Selects the nearest pedestrian with any of the given types.
Returns the nearest pedestrian that has any of the target types.
pack | : simulation pack |
self | : pedestrain calling the function |