Posts: 43
Threads: 10
Joined: Sep 2015
Reputation:
21
Would be nice for path finding & detecting objects near a point away from the robot.
search(cat[, pos][, radius]);
And maybe:
object items[] = searchall(cat[, pos], radius);
I actually already did this myself.
Posts: 828
Threads: 26
Joined: Oct 2012
Reputation:
113
Adding the radius parameter makes no sense to me, it would be better to add all radar() parameters.
searchall() is a great idea too
Posts: 43
Threads: 10
Joined: Sep 2015
Reputation:
21
03-17-2016, 12:42 AM
(This post was last modified: 03-17-2016, 12:42 AM by melex750.)
I like the idea of using all radar parameters.
But using angle and focus might be confusing.
Maybe if the search function has an orientation of it's own,
direction("search position") could be relative 0 angle for search.
So it could be used and calculated in terms of right angles.
Radius was just max parameter by a different name.
Edit: Or just leave out angle and focus, replaced by position. search(cat, pos, min, max, sens, filter);