User Tag List

Results 1 to 7 of 7

Thread: Circular Movement

  1. #1
    Keese
    Join Date
    Aug 2005
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    831
    Level
    10
    vBActivity - Bars
    Lv. Percent
    8.62%

    Circular Movement

    Can anyone explain to me how to make a FFC move in circles around a point?(Mathematically too?) All I know is that it has something to do with the modulus and for structure.

  2. #2
    Is this the end?
    ZC Developer
    Saffith's Avatar
    Join Date
    Jan 2001
    Age
    41
    Posts
    3,389
    Mentioned
    178 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,433
    Level
    24
    vBActivity - Bars
    Lv. Percent
    70.1%

    Re: Circular Movement

    Not too hard:
    Code:
    for(int i = 0; true; i = (i + 1) % 360)
    {
       this->X = centerX + radius * Cos(i);
       this->Y = centerY + radius * Sin(i);
       Waitframe();
    }

  3. #3
    Developer
    ZC Developer

    Join Date
    Aug 2006
    Location
    Australia
    Age
    37
    Posts
    2,777
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    6,851
    Level
    25
    vBActivity - Bars
    Lv. Percent
    37.74%

    Re: Circular Movement

    Fun Fact: it is possible to make an FFC move in a circle using only four Changers! I leave this as an exercise to the reader.

  4. #4
    Wizrobe C-Dawg's Avatar
    Join Date
    Jan 2002
    Posts
    4,205
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    6,612
    Level
    24
    vBActivity - Bars
    Lv. Percent
    99.93%

    Re: Circular Movement

    Clever use of accelleration, I imagine. Changers are set at the points of intersection between a square and an inscribed circle, and the changers mess with the velocity and accelleration of the FFC.

  5. #5
    Administrator DarkDragon's Avatar
    Join Date
    Oct 2001
    Posts
    6,228
    Mentioned
    70 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    11,028
    Level
    31
    vBActivity - Bars
    Lv. Percent
    8.53%

    Re: Circular Movement

    Quote Originally Posted by _L_ View Post
    Fun Fact: it is possible to make an FFC move in a circle using only four Changers! I leave this as an exercise to the reader.
    Unlikely. In a diamond maybe, but not a circle.

  6. #6
    Lynel Revfan9's Avatar
    Join Date
    Jun 2005
    Location
    In front of a screen. I never leave.
    Age
    31
    Posts
    1,160
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    3,390
    Level
    18
    vBActivity - Bars
    Lv. Percent
    71.1%

    Re: Circular Movement

    I've done it before, although it's very, very difficult and requires a lot of mathematical calculations.

  7. #7
    Administrator DarkDragon's Avatar
    Join Date
    Oct 2001
    Posts
    6,228
    Mentioned
    70 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    11,028
    Level
    31
    vBActivity - Bars
    Lv. Percent
    8.53%

    Re: Circular Movement

    I don't think so, unless something like torsion has been added as an FFC attribute. An object travelling in a circle is constantly accelerating in the direction of the vector from the object to the circle's center, and this direction changes continuously, so I don't see how such movement is possible with a finite number of attribute changes.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social