Charles Prévot
unread,Aug 25, 2011, 9:02:29 AM8/25/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to recastna...@googlegroups.com
Hi,
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