Jump to content

Group dop objects by velocity?


Akabane

Recommended Posts

Hey gang, I'm studying a little DOPs lately and I've been arguing how to group dopobjs by some value like velocity.

What I actually need is a drag force only applied to the object which are going too fast than a certain value.

I thought I could do that with dopfield expression to go and fetch data, but couldn't find any "velocity" stuff anywhere T___T

Any help?

Thanks!

(DOP is really a completely new way of thinking...is there some comprehensive explaination on how the dataflow and data manipulation in DOPs works somewhere?)

Link to comment
Share on other sites

Velocity is is stored in the Position/Options subdata under the "vel" field.

To group by velocity you could do something like this:

vlength(
    vector3(
        dopfield("..", $OBJID, "Position", "Options", 0, "velx"), 
        dopfield("..", $OBJID, "Position", "Options", 0, "vely"),
        dopfield("..", $OBJID, "Position", "Options", 0, "velz")
    )
) > somenumber

Edited by graham
Link to comment
Share on other sites

  • 10 months later...

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