Using DetourCrowd with "manual" agents

Skip to first unread message

Charles Prévot

Aug 25, 2011, 9:02:29 AM8/25/11
What is the best approach to integrate manually controlled agents within a crowd ?
By manually I mean for example controlled by keyboard, but they still need to be avoided by other agents.
I see different options:
* Use requestMoveTarget to a near target, but in that case if we have another agent in front of us we will avoid him, giving the user an impression of inaccurate control.
* Managing the agent by hand, but as getAgent() return a const pointer I get the impression it is not the good way to go. I managed to modify the agent using getActiveAgents, I can then place him to a position calculated with moveAlongSurface (that in fact teleports him a bit further). I could also try to give him a speed.

* Treating him as a moving obstacle. But that does not really fit my needs (user can "take control" of agents, and then release them, so it would be a lot of conversions between agent and obstacle)

I have read in another mail that you planned a requestMoveVelocity() is this still the case ?
To sum up I would be glad to have your insights on this problem.

As a side note, there is a small bug in the Doxyfile ignoring some files under linux, the 'svn diff' bellow corrects it (also tested on windows)

Index: Doxyfile
--- Doxyfile    (revision 304)
+++ Doxyfile    (working copy)
@@ -617,8 +617,8 @@
                          DetourCrowd \
                          DetourTileCache \
                          Recast \
-                         Docs\Conceptual \
-                         Docs\Extern
+                         Docs/Conceptual \
+                         Docs/Extern
 # This tag can be used to specify the character encoding of the source files
 # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is

Mikko Mononen

Aug 25, 2011, 9:10:00 AM8/25/11

Issue 163 (
is there to remind me to fix this. The idea is to have a way to set a
velocity which controls the agent, instead of setting a target.
Unfortunately I don't have an ETA when this will be done. But I'm
currently (slowly) working on DetourCrowd related issues.

Steve is taking care of the documentation, can you please add an issue
at about the doxygen


Charles Prévot

Aug 25, 2011, 12:57:00 PM8/25/11
Ok, thanks for your answer. So I guess I should not modify the agent directly using getActiveAgents() (maybe it should return a const pointer too, like getAgent() ?)

Issue 179 created for the doxygen problem.

2011/8/25 Mikko Mononen <>
Reply all
Reply to author
0 new messages