Jump to content

[CROWD] Randomizing wrist orientation


axelsp

Recommended Posts

Hello everybody!

I've got one agent for a crowd simulation. He's holding a sword on his R_hand. When using Agentedit node, Im able to adjust transformations of that controller, which is great, but it affects all agents in the same way. =(

What would be the approach to randomize the wrist rotation to get some variation over to the crowd sim ?

Thanks!

 

Link to comment
Share on other sites

One suggestion might be is to run a point wrangle after your crowd_source targeting the packed agents.

Then use agentrigfind() to look for the wrist part of the rig. This would return an ID that you could use with the agentlocaltransform() function. From here you would now have a transform matrix that you can randomize, then just write it back to your agents using setagentlocaltransform()

Conceptually I believe that would be the workflow :lol:

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...