Grasshopper

algorithmic modeling for Rhino

So I am new to Kangaroo and trying to understand the uForce component.  If I have a cylinder mesh and anchor one edge, then apply a uForce to all the other mesh points Kangaroo runs fine:

But if I apply the uForce to just the end points Kangaroo fails.  Why is that?

Views: 2193

Replies to This Discussion

I actually solved what I was looking for/doing wrong.  I haven't found the answer to this question but figure out what ultimately was after, why I couldn't get the uForce component to work with the spring Component.  After messing around it seems the I had to flatten the list coming into the Force Objects input.  

Hi Dennis, you are right to flatten the force objects input.

The problem before was also related to the initialization of particles. Kangaroo always works with a list of particles, each having mass,position,and velocity. The forces then act between various pairs or combinations of these particles.

To avoid users having to always explicitly input a list of particles, I've made it so that whenever you input a force such as a spring, the particles at the ends automatically get created. If a particle doesn't have any forces acting on it, it doesn't play any role in the simulation so doesn't get initialized, but this also means you cannot attach geometry to it, such as the mesh you show.

RSS

About

Translate

Search

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service