Jump to content

Force/Acceleration Contributions


ikarus

Recommended Posts

I'm looking to find the contribution of an interact node, not sure how to go about this though.

I thought to make an attribute based on acceleration before the node then subtract them in my voppop but it seems making an attrib = accel inside a popnet yields values of 0. Am i missing something here?

thanks

pop_squish.hip

Link to comment
Share on other sites

Hi, Raymond,

The accel attribute stands for the overall acceleration of the pop system at the given time, so if you want to gain the contribution of interact node, you have to subtract the other force contributions. In your case is accel - (0.0,-9.8,0.0).

Cheers :P

Link to comment
Share on other sites

well what if there are forces acting on the particles that aren't directly derivable from parameters. Say there are two interact nodes and you want to find the contribution of the second one. The force from the first interact isnt uniform so i need to derive it somehow.

Edited by ikarus
Link to comment
Share on other sites

your method is fine, just fetch accel before interact POP then after subtract that from new accel to get contribution

accel before interact now returns 0 because nothing is setting the accel before, if you unbypass the force1 you can see it returns some value

here is modified file

pop_squish_fix.hip

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