User Tag List

Results 1 to 7 of 7

Thread: Working out distance between objects

  1. #1
    No Products Registered

    Join Date
    Dec 2011
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Working out distance between objects

    So how would I find the distance between two objects for a start off.

    And then I would like to learn how to find the closest object instance.

    Thanks for your time!

  2. #2
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Distance Formula:
    SQR((X(“Obj1”)-X(“Obj2”))*(X(“Obj1”)-X(“Obj2”))+(Y(“Obj1”)-
    Y(“Obj2”))*(Y(“Obj1”)-Y(“Obj2”)))

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  3. #3
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,964
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    e.g. Pythagoras.
    a²+b²=c².

  4. #4
    No Products Registered

    Join Date
    Dec 2011
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks nivram, really appreciated your help.

  5. #5
    No Products Registered

    Join Date
    Dec 2011
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How do I use this, what code?

  6. #6
    No Products Registered

    Join Date
    Dec 2011
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've worked out how to use this, it's okay now thanks.

  7. #7
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Glad you figured it out and good luck on your project.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

Similar Threads

  1. Keep distance between two+ objects
    By iOSC in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 30th September 2013, 01:55 PM
  2. Distance between two objects
    By Panchos in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 15th November 2012, 07:47 PM
  3. Y distance between objects?
    By PandaExplosion in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 16th April 2010, 02:56 AM
  4. Distance between objects
    By im2famous4u in forum Multimedia Fusion 2 - Technical Support
    Replies: 31
    Last Post: 18th March 2008, 10:58 PM
  5. distance and selector not working properly?
    By Ben in forum File Archive
    Replies: 7
    Last Post: 6th July 2006, 04:06 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
  •