Replies: 3 comments
-
Hi @FrameMuse, I'd need to look at how detour handles agent steering a bit more closely before I can answer this completely. Agent velocity is influenced by a target velocity and an obstacle avoidance velocity. You can debug these with:
If you're not able to tune obstacle avoidance parameters to get the behaviour you want, you may need to write some of your own logic for this. For example, you could pick a target or apply velocity for agents avoiding another agent, considering the other agents current path and position. Regarding static agents, creating an obstacle with the size of the agent is a good approach. It should also possible to set agent parameters so that they won't move. e.g. set their max acceleration and speed to 0. Please share how you get on with this 🙂 curious to hear what you come up with |
Beta Was this translation helpful? Give feedback.
-
This is what my experiments results are:
So I will try to apply custom behaviour by checking agents in a radius, if someone is on the My "dream" is to make it very similar to what Company Of Heroes 1 or Supreme Commander 2 have. |
Beta Was this translation helpful? Give feedback.
-
Thanks for sharing! I believe using requestMoveVelocity overrides the "move request" set by requestMoveTarget yep. You would need to keep track of the previously set target yourself. Keen to hear how you get on creating the custom behaviour. |
Beta Was this translation helpful? Give feedback.
-
Description
I would like to see a crowd to divide when someone goes through it.
Visualization
Imagine you have multiple agents forming two groups
And then someone decided to go to the point that lies through these groups.
The behaviour I would like to see is these groups of agents would step off a bit to let an agent to go through
And then close up again.
Research
I already investigate and played with
collisionQueryRange
,obstacleAvoidanceType
,separationWeight
,updateFlags
, but couldn't achieve the desired behaviour.What would you suggest to do in such situation? I would also like to do this with multiple agents at the same time and having some of the agents to be fixed (but probably this simply destroying the agent and creating an obstacle). Though I would love to hear your opinions, thanks ^-^
Beta Was this translation helpful? Give feedback.
All reactions