User Tag List

Results 1 to 10 of 10

Thread: distace between objects with extension?

  1. #1
    No Products Registered

    Join Date
    Jul 2006
    Posts
    239
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    distace between objects with extension?

    greets

    need to detect distance between objects by one single event (instead of 4), cant remember if there was an extension for that.


  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Location
    Merseyside, UK
    Posts
    398
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: distace between objects with extension?

    The Clickteam Movement Controller Extension, which comes with build 243 has this feature along with get angle.

  3. #3
    No Products Registered

    Join Date
    Jul 2006
    Posts
    239
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: distace between objects with extension?

    lol forgot also pitagora can be fetched by expressions

    thanks anyhow

  4. #4
    No Products Registered

    Join Date
    Jul 2006
    Location
    Texas
    Posts
    1,225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: distace between objects with extension?

    What do you mean 'instead of 4'???

  5. #5
    No Products Registered

    Join Date
    Jun 2006
    Location
    here
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: distace between objects with extension?

    Why not:

    Distance = sqrt( pow( X( "active1" ) - X( "active2" ), 2) + pow( Y( "active1" ) - Y( "active2" ), 2) )

    It's one event, just a mathematical one.

  6. #6
    No Products Registered

    Join Date
    Aug 2006
    Location
    Westcountry, UK
    Posts
    862
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: distace between objects with extension?

    the fateful equation makes its return...

  7. #7
    No Products Registered

    Join Date
    Jul 2006
    Posts
    239
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: distace between objects with extension?

    Quote Originally Posted by Bovril
    Why not:

    Distance = sqrt( pow( X( "active1" ) - X( "active2" ), 2) + pow( Y( "active1" ) - Y( "active2" ), 2) )

    It's one event, just a mathematical one.
    thats what I wanted to do, I'm uncapable to make the pow trough MMF expression tho.

  8. #8
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: distace between objects with extension?

    In MMF, pow is an operator :

    Distance = sqrt( (X("active1")-X("active2")) pow 2 + (Y("active1")- Y("active2")) pow 2 )

  9. #9
    No Products Registered

    Join Date
    Jul 2006
    Location
    Sweden, Lund
    Posts
    140
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: distace between objects with extension?

    I had some trouble figuring out how to use pow a while ago.
    Simpler put it's used like this:

    2 pow 3

    would yield 8.

  10. #10
    No Products Registered

    Join Date
    Aug 2006
    Location
    Westcountry, UK
    Posts
    862
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: distace between objects with extension?

    ...which is exactly what he did

Similar Threads

  1. Extension request: Moo Objects 4 Android Export Module
    By TheDigitalAlchemist in forum Android Export Module Version 2.0
    Replies: 9
    Last Post: 17th April 2013, 03:18 PM
  2. 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
  3. Selected objects extension
    By stuckboy in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 31st December 2008, 11:30 AM

Posting Permissions

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