Grasshopper

algorithmic modeling for Rhino

This is my first Kangaroo definition and I'm pretty happy with it! Everything works as expected, except for one thing: the ClampLength sort of doesn't work.

I've set the ClampLength to the piston arm so that it would stop 25mm short of the piston sheath. It works most of the time but if I move my mouse quickly, I get penetration. 

This penetration occurred even when I set up a ClampLength example on 2 simple cylinders. It would accept the 25mm, but then allow the object to go 25mm in the negative, making the objects collide.

Is there anything I can do to fix this?

Thanks,

A

Views: 645

Attachments:

Replies to This Discussion

My main aim is to create an example which shows the full extent of movement of this rig. I want to create some sort of limit detection so the model will not move beyond its limits.

If I can do this I can Grab the model and show its full range of movement. Or better still I'd like to create some sort of slider which showed the maximum range of movement of each arm (they should all be the same).

Any suggestions would be welcomed!

Thanks,

A

Hi Andrew,

Nice simulation! Sorry it has taken me a while to reply.

To avoid this issue you can set the Clamplength between the anchor at the base and end of the piston (see attached file). This means the lower limit becomes 320mm instead of 25mm, so much less likely it can pop through to the negative.

I'll have a think though about whether there is a better goal that could make this more intuitive to set up, such as a dedicated slider goal, where the length limits are related to the direction to avoid this +/- issue.

Attachments:

Hi Daniel,

No problem at all. Thanks for getting back to me! 

I will modify the script like you suggested, but I wonder, is there a way to stop the simulation 'stretching' from it's Max extension while grabbing? Currently the top 'pulls away from the ram anchor if I drag too far from it's limit.

Is this just the nature of 'grabbing', and I should use GH sliders if I want a more controlled move? Or is there a solution to making the model stick to it's limits? It would be great to be able to move the model freely while keeing it's limits.

Thanks for a great app!

A

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service