Jump to content

Crowd - time based attributes from SOP


DaveMcD

Recommended Posts

I've got some crowd sticking to a deforming base mesh in H16 (think swinging base platform) and I'm using 'terrain projection' and 'stick to deforming geometry' to have crowd stuck on the surface.

The base mesh has an attribute of the point speed and what I'd like to do is have certain crowd triggered into ragdoll after a certain speed threshold is hit (the points seem to have no velocity of their own when stuck to the surface) but a trails node and a length calc in the source SOP can pass this as an attribute. The problem I have is that although I can pass my speed attribute through into the crowd sim it doesn't update with the animated values only the first frame value.

Any ideas how to get this attribute to update every frame? 

Cheers,

Dave

 

Link to comment
Share on other sites

Drop down a PopWrangle after the Merge States node and place code in there to "poll" or review the attribute in question. Then add a new Crowd State and Crowd Transition node set to examine the attribute and migrate state when a condition is met.

Edited by Atom
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...