User Tag List

Results 1 to 9 of 9

Thread: Planetary orbit

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Planetary orbit

    Hey

    I am trying to get a prototype of a basic planetary movement system. Something like this:

    Black cross: pull object
    Blue line planetary movement


    The system needs to be able to:
    A) Control the strength of the "pull object" (i.e mass).

    B1) Has to handle multiple pull objects
    B2) Has to handle multiple planets

    C) Planet initial speed should have affect on its curved movement.

    (D) would be cool if the planets would speed up closer to the pull object and slow down on its way out)

    I have no idea how to do this. I've managed to work out A, B2 and C using the direction calculator. But I have to completely rethink this problem if I want to be able to use multiple pull objects. I know there is some brainy math stuff beyond my comprehension here.

    Any help would be appreciated, thanks!

  2. #2
    No Products Registered

    Join Date
    Jun 2009
    Location
    Isle Of Wight
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Planetary orbit

    :|
    Well you will need to know some pretty advanced physics. I would give a value of gravity for each one, this determins the fall rate of the object going towards the cross.

    Then I would simply have a range around the cross that tells it has entered the gravity well. But dont forget that gravity acts over an infinant distance.

    Im only doing A Level physics at the moment so i cant help too much, sorry.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Planetary orbit

    It doesn't have to be a perfect system. I do want gravity over infinite distances.

    I've manged to make a pretty decent system using only the directional calculator, and advanced direction object to calculate distances. It is perfect for my use, but it is not able to handle multiple gravity objects.

    Have a look (it's pretty fun to play with)

  4. #4
    No Products Registered

    Join Date
    Jun 2006
    Posts
    625
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Planetary orbit

    I'm pretty sure there are some examples around, maybe even an extension.

    But if you want something more precise and easier (once you have learned it) go for box2D or Phyzix extensions.

    The strengh of the force is proportionnal to Mass1xMass2/distance²

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Planetary orbit

    I haven't heard about box2D. I can't find it in the fusionUpdater. Where do I get it?

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Aug 2006
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Planetary orbit

    Box2D is beta at the moment. You can find links to download and info in this forum thread -

    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=155410


  7. #7
    No Products Registered

    Join Date
    Jun 2009
    Location
    Isle Of Wight
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Planetary orbit

    Thats a kick ass example. I was able to make a galaxy with that, thanks

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Planetary orbit

    Where you able to add more than one point of gravity?

  9. #9
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Burfelt's Avatar
    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    526
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: Planetary orbit

    While I have no idea about the math required for somethng like this, I do remember Andos from the forum did an example with gravity and planet mass.

    http://click.andersriggelsen.dk/readcomment.php?id=28&type=1

Similar Threads

  1. Orbit
    By heliuse in forum File Archive
    Replies: 5
    Last Post: 10th October 2007, 05:57 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
  •