Jump to content

Ignore gravity force for particles when emitter mesh is not moving.


art3mis

Recommended Posts

Hi

Have a simple DOP network for emitting particles from a mesh source.

Right now when I add a gravity force the particles emit even when the mesh emitter is not moving.

How can I modify this, perhaps with a VEXpression, so that gravity only affects the particles when the emitter is moving?

gravity_force.png

Link to comment
Share on other sites

If you just want to prevent particles from emitting when the source isn't moving, you can create a point attribute on the source mesh in SOPs to use as an "emission attribute" on the POP Source DOP. Try using a Trail SOP to compute the velocity of the mesh, then create an emission attribute based on the magnitude of the velocity vector:

f@emission = length(v@v);

Then use emission as your emission attribute.

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