Jump to content
Developer Wiki and Function Reference Links ×

Gravity node


Recommended Posts

On 11/14/2019 at 11:00 AM, GRZEGORZ said:

Hi, all.

I had been inspired by the "Create and Rotate a line in polar coordinates" topic, and came up with a idea of creating node that mimics gravity. And that's the result, as a simple Marionette Object.

How it works:

1. Input point as "Gravity center".

2. Input list of points to modify.

3. Gravity value. Defines "strength" of gravity force. 0 = nothing happens, 1 = point will be moved to the  gravity center. Positive values moves points away from gravity center, negative towards it.

4. Radius value. Defines the area where points will be modified. Points outside this area will remain unmodified. Works as a remap of min and max values of radius and transforms it into 0-1 factor, that multiply gravity value. Gives an effect of different gravity strength depends on distance from gravity center. The further the point is, the less gravity will affect it.

 

Hope you will enjoy it.

GravityNode.jpg

GravityNode.vwx 758 kB · 3 downloads

I like this idea and wonder if it could be made to generate catenary curves?

Link to comment

I needed a catenary in vwx to describe a cable hanging between two posts. I drew a poly line cubic spline - top>midpoint>top. Then I found an online catenary generator, input the parameters for same span and sag, saved the resulting pdf image and ported that into vwx. The spline fit on the image. Same process confirmed spline fit to image if post tops not same height.

 

Math correct? Not sure. But close enough for my use. 

 

-B

  • Like 1
Link to comment
9 hours ago, Benson Shaw said:

I needed a catenary in vwx to describe a cable hanging between two posts. I drew a poly line cubic spline - top>midpoint>top. Then I found an online catenary generator, input the parameters for same span and sag, saved the resulting pdf image and ported that into vwx. The spline fit on the image. Same process confirmed spline fit to image if post tops not same height.

 

Math correct? Not sure. But close enough for my use. 

 

-B

@Benson ShawThat'll work for me. Much appreciated.

Link to comment

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

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