I am working on a crowd sim and I have two state, a walk and an idle. What I want to do is have my agents walk for a while then go idle then start walking again.(repeat randomly)
The defaut Crowd Trigger that is generated from the Simulate shelf tool does not seem to have any effect except at the start of the sim. My agents start off idle then begin to walk.
If I change the type to Animated Parameter, and keyframe a few value changes from 0 to 1 then 0 to 1, once again I can achieve only a single transition.
What is the key to transitioning between multiple states at multiple times?
Crowd Trigger Current State Duration
2621 4 1- Enivob
- Member
- 2561 posts
- Joined: June 2008
- Offline
- cwhite
- Staff
- 733 posts
- Joined: Oct. 2012
- Offline
You need to add a separate transition that takes agents from the walk state back to the idle state. Otherwise, once the agents take the first transition (from idle to walk) there is no transition that can cause them to leave the walk state. The two transitions can be driven by the same trigger or a different trigger.
- Enivob
- Member
- 2561 posts
- Joined: June 2008
- Offline
Thanks cwhite, that worked!
I did have to add another trigger that way I could make the walk longer than the idle, otherwise both states share the same time duration. When you add a new trigger you also have to give it a unique Trigger Name as well.
Do you know how to make agents move faster along the Z-Axis? I have increased In Place Gait and the z-force in the PopSteer node but the effect is minimal. For instance I increase the force from 100 to 1000 but my agents don't move 10x faster.
I did have to add another trigger that way I could make the walk longer than the idle, otherwise both states share the same time duration. When you add a new trigger you also have to give it a unique Trigger Name as well.
Do you know how to make agents move faster along the Z-Axis? I have increased In Place Gait and the z-force in the PopSteer node but the effect is minimal. For instance I increase the force from 100 to 1000 but my agents don't move 10x faster.
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
- cwhite
- Staff
- 733 posts
- Joined: Oct. 2012
- Offline
- Enivob
- Member
- 2561 posts
- Joined: June 2008
- Offline
-
- Quick Links