User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 19 of 19

Thread: Orbiting Objects

  1. #11
    No Products Registered

    Join Date
    Jul 2006
    Location
    Versailles, MO, USA
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Orbiting Objects

    Thank ya sir.

  2. #12
    No Products Registered

    Join Date
    Feb 2007
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Orbiting Objects

    Sorry to dredge up an old thread, but is it possible to get the orbiting movement with Nifflas's example to work but starting at different points in the circle?

    I don't want all the orbiting objects to start from the same position.


    Thanks,

    Tom / Doc4

  3. #13
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Orbiting Objects

    Yes, just set the "rotation" alterable value to a random number when you create the object.

  4. #14
    No Products Registered

    Join Date
    Feb 2007
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Orbiting Objects

    Well OBVIOUSLY that's the easy answer, Dynasoft. You'd have to be an idiot not to know that.

    ** smugly walks away until out of sight where he writes the answer down with excitement **

  5. #15
    No Products Registered

    Join Date
    Feb 2007
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Orbiting Objects

    I have a ship fly towards a planet and, within a distance of 50, start to orbit. How can I set the ship's rotation start point based on where it is in reference to to planet?

    I tried using Get Direction from the ADO, but it doesn't work as intended.

    I want the ship to get within 50 and start orbit from that same spot.

    Thanks,

    Tom / Doc4

  6. #16
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Orbiting Objects

    You need to get the angle from the planet to the craft. I think.

    Does MMF have atan2 yet?

  7. #17
    No Products Registered

    Join Date
    Feb 2007
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Orbiting Objects

    I've done ship to planet and planet to ship. It keeps putting the ship at unexpected locations.

    Unfortunately my math skills do not extend beyond A+1=2. I had to copy and paste the Sin/Cos code from this thread to get things working to begin with.

    Any suggestions?

    Here are some screen shots if they are of any use.


    http://img412.imageshack.us/my.php?image=radiushelpmh5.png

  8. #18
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Orbiting Objects

    The formula isn't quite right, it should be the following to match MMF's angles:
    [Always]
    Set X Position of "Orbiter" to X( "Center of rotation" )+Cos(Rotation( "Orbiter" ))*Distance( "Orbiter" )
    Set Y Position of "Orbiter" to Y( "Center of rotation" )-Sin(Rotation( "Orbiter" ))*Distance( "Orbiter" )

    And initial rotation should be: (advanced direction object) longdir(planet x, planet y, ship x, ship y) with number of directions set to 360.

  9. #19
    No Products Registered

    Join Date
    Feb 2007
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Orbiting Objects

    Works perfectly. Angles all line up.

    The ship's captain would like to thank you for fixing the abrupt time/space leaping when he tried to orbit. He no longer needs a ship's chiropractor on staff.


    Tom / Doc4

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Hidden objects (it thinks objects inside the screen are outside?)
    By SoftWarewolf in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 16th December 2012, 11:15 PM
  2. Player controlled active object orbiting around fixed point?
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 10th June 2012, 04:21 AM
  3. Compairing 'Objects AltValueA' to 'Objects AltValueB' dont work
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 8th May 2012, 12:27 AM
  4. I suck at math: Need help with "reverse orbiting"
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 9th April 2011, 12:41 PM
  5. Spinning/Orbiting Actives for Corlen
    By LB in forum File Archive
    Replies: 6
    Last Post: 15th September 2010, 11:56 PM

Posting Permissions

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