Jump to content
Search Community

Add tension to the line

Unmilon test
Moderator Tag

Recommended Posts

Hey @Unmilon

 

Sounds a little complicated. I think I would start out by having the object follow a curved path. Basically the path of the tension, but not visible. Then on every update, I would redraw the rope to the center of the object with a quadratic bezier curve.

 

You can see how to calculate the 3 bezier points in this demo.

 

See the Pen bpXpYv by osublake (@osublake) on CodePen

 

 

 

 

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...