A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: AS3 Cable Physics: How do I do it?

  1. #1
    Senior Member
    Join Date
    Nov 2001
    Posts
    175

    AS3 Cable Physics: How do I do it?

    Does anyone know where I could find the source code or how I would go about creating cable physics like in the example below?

    http://lab.andre-michelle.com/cable-interface

    Thanks!

  2. #2
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    Check this thread for a rough start:

    http://board.flashkit.com/board/showthread.php?t=763923

    The difference for your example is where the control point is - instead of an s-shape between the two points, you want to find the midpoint and then move it down a ways for the 'droop' in the cable.

  3. #3
    Senior Member
    Join Date
    Apr 2000
    Location
    Minneapolis
    Posts
    2,127
    You will also find lots of cool stuff on bezier curves and other math here
    http://www.reflektions.com/miniml/te...cat.asp?cat=25
    Paul Ortchanian presented on this at flashforward 2007 and all his source code is free to download

    mark

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center