Houdini Crowd Multiple Transitions for One Trigger

   2042   1   0
User Avatar
Member
2 posts
Joined: Aug. 2016
Offline
Is it possible to have multiple transitions for a single trigger? For example, if after 5 seconds of being in a run state, transition to either a ragdoll state OR a walking state? I tried using the logic nodes, but it seems to only work for multiple triggers, not transitions. Thanks
User Avatar
Member
2658 posts
Joined: June 2008
Offline
You can combine multiple crowdtrigger values into a single trigger value by using the crowdtriggerlogic node. It allows bitwise combination from trigger sources. Kind of like a trigger merge.

To construct arbitrary triggering of crowdtransition nodes you can place the crowdtrigger into VEX Custom Expression node. Then you can fetch any attribute already present on the agent point. Store custom values on points then fetch them using the trigger to activate crowdtransitions.

if (@my_custom_value > 0.5 ) {
i@trigger = 1;
} else {
i@trigger = 0;
}

This is one way to transition into an arrival clip once an agent reaches a destination.
if (length(v@P-v@my_goal) < 0.1 ) {
i@trigger = 1;
} else {
i@trigger = 0;
}
Edited by Enivob - July 11, 2017 17:27:46
Using Houdini Indie 20.5
Windows 11 64GB Ryzen 16 core.
nVidia 3060RTX 12BG RAM.
  • Quick Links