A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: spiral motion trigonometry?

  1. #1
    Bob (the singing sock)
    Join Date
    Aug 2000
    Location
    Århus, Denmark
    Posts
    472

    spiral motion trigonometry?

    I want to make an object "ball" move from whereever it's at to new variable X and Y posistions. Furthermore I want it move along a spiral path.

    I guess these would be the variables involved:
    • newX (new X position)
      newY (new Y position)
      counter (how many steps)
      curveFactor (how curved should the motion be)


    Can anybody help me out with some code?
    podenphant

  2. #2
    Senior Moderator
    Join Date
    Apr 2000
    Location
    Sheffield, UK
    Posts
    3,881
    This link isnt quite what you want, but it may help you out with the spiral math:

    http://www.flashguru.co.uk/flash5/spiral.fla

  3. #3
    Bob (the singing sock)
    Join Date
    Aug 2000
    Location
    Århus, Denmark
    Posts
    472
    Hi FG

    I had been shoping around and did find some good spiral examples.
    It's the trig that troubles me ... how to make an object move from A to B following a Curve/spiral.

    Thanx anyways
    podenphant

    (why did hurry so much to unlearn trig dammit )

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