Grasshopper

algorithmic modeling for Rhino

How to maintain order of point list after Kangaroo solver?

Hey guys,

I ran into a problem which I don't know how to solve.

I'm inputting a list of points as particles on which various forces act, and I need them to be in the same order as the original point list, as each particle has additional, unique properties which need to be updated after the kangaroo solver.

I use a merge component before feeding it into the solver and it works fine up to a point. When I add data stream 6 (an additional attraction force, see image) the order gets completely messed up (the two points on the second image have the same index, and they should be at the same location). The same happens if I replace the attraction force with a spring force.

*EDIT*

It has nothing to do with the order. it seems its that particular set of connections that messes up the order...

i have no idea why it only works up to the fifth force input and I can't think of a good way of accessing particle properties from the kangaroo solver short of building my own physics engine (which I want to avoid).

If anyone has any idea how to solve this (or even just why its happening), input would be greatly appreciated!

thx,
T

Views: 442

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service