May I please pick your brain?
I'd like to create a crowd trigger that would activate when an agent reach its goal.
I even read in the doc : At each step in the simulation, Houdini looks at each agent and checks a series of trigger nodes (for example "distance to target > 2").
Unfortunately, I can't found such an option in the trigger type list : /
here is what I'd like:
my agents are walking to a target.
the target is a grid with ordered point numbers.
I set it up so that each agent seek the point matching it's agent number (agent0 goes to point0, agent1 to point1 ...)
at the moment when an agent reach it's point(target) it's stay there, turning on the spot with the walk animation.
So I would like to create a trigger that detect when an agent is on it's corresponding point on the grid, to switch it to the stand state.
thanks in advance, I'm sure it's very simple, yet I can't seem to figure it out on my own :/
*edit*
I should mention that the trigger type "object distance" isn't doing the trick. As agent would stop as soon as they get near the grid, instead of stopping when near the matching point.
**edit**
If only I could write simple VEX, I could use an unsafe method -> when velocity =0 then activate trigger.
but I can't :
// setting i@trigger to 1 will enable // setting i@trigger to 0 will disable i@trigger = @v=0;
can someone correct this ? Even tho it's very unsafe (if an agent get stuck for some reason it might change the state, right?)