A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Problems with custom bezier curves/gestural movement

Threaded View

  1. #5
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    923
    this expression may be used for your curved path formula coordinates at any moment of time. the degree has nothing to do with angle, it is polynomial degree, or length of pos and val arrays. desiredPos could be current time or frame count, retVal could be one of mouse coordinates; pos and val are corresponding things for mouse "gesture" data. in case of pos.length == val.length == 2 you obviously have a line passing through two endpoints, 3 gives you quadratic curve, 4 - cubic curve, etc.

    edit: see an example here
    Last edited by realMakc; 07-01-2009 at 02:20 AM. Reason: link to example
    who is this? a word of friendly advice: FFS stop using AS2

Tags for this Thread

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