View Full Version : creating a 'rope' effect
06-27-2006, 06:37 PM
i would like to create a rope effect where the rope connects to two things(of course), has a fixed length, and can bend, like a real rope. also, if possible, is there a way for me to make a movie clip act this way o that i can make it LOOK like rope?
06-27-2006, 07:14 PM
the closest thing i have to that, is a 'stretchy rope (http://kelseymott.ca/as-dot-org/elastic_line/)'.
its a good start though. same concept, different physics behind it.
the concept being, you need to use the drawing API to draw your line between your 2 fixed points (meaning you won't be able to make a movieclip that looks like rope and 'bend' it) you would then use the curveTo method to continuously redraw your arc so that it animates.
you use a movieclip (which you can hide later, i left it visible to illustrate whats happening) to act as your 'weight'.
i suck at all things math and physics so you'll need to get help from someone else on that part of it ;)
vBulletin® v3.8.5, Copyright ©2000-2014, Jelsoft Enterprises Ltd.