User Tag List

Results 1 to 6 of 6

Thread: The magnet behavior is confusing me - adding energy to objects?

  1. #1
    Clicker Fusion 2.5 (Steam)

    Join Date
    Jan 2015
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    The magnet behavior is confusing me - adding energy to objects?

    I can't quite figure out how the magnet object works.

    I'm trying to create an app where an object pushed with the proper amount of force will orbit another object at the center of the screen (such is the ultimate goal). So for my experimentation and learning phase I've put a magnet object in the middle of the frame, extending to the frame edges. Then I've got a ball, simply placed with 'Physics - Static' motion near the edge of the screen, velocity 0. When I click run, as expected, the ball falls towards the center of magnetic force, through the middle and out the other side, decelerating as it goes. This is what I expect.

    What I don't understand is that with each fall the ball _gains_ speed over the previous 'fall', until its acceleration overcomes the force of the magnet, and it floats off the frame.

    Shouldn't this be neutral? Or is there something I might be missing?

  2. #2
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    kirkmet's Avatar
    Join Date
    May 2014
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This confuses me, too, can anyone help?

  3. #3
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)
    Maybe post up a little example MFA and people can play around and see if there is a bug.
    Then put it up in the bug tracker for a more indepth look by the programmers.

  4. #4
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    kirkmet's Avatar
    Join Date
    May 2014
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    magnet gaining energy.mfa

    The active object literally gains more and more speed and eventually leaves the magnet area, which is against the laws of physics and ultimately makes the magnet object almost useless.

  5. #5
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)
    Ya that is kinda weird.

    Can you put up a report in the bug tracker (Link way up at top of forum)
    That will get it on the list to be looked at.

  6. #6
    Clicker Fusion 2.5Android Export Module

    Join Date
    Dec 2013
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Any artificial physics uses iterative calculations - work out force at this time interval, acceleration, velocity, increment position, work out force at next time interval, etc.

    However - when very close to a magnet (or single-point force) the force and therefore acceleration can be huge. Say you're an inch away from the magnet accelerating towards it. Obviously in real life, moments later, you'd be an inch away on the other side and thus accelerated in the other direction by an equal amount resulting in overall equilibrium. However if we calculate this on a computer, by our next time interval we could be a mile away because the force is so strong at this point. As a result the object doesn't get an equal and opposite acceleration, and yes, gains energy. That at least is my best guess for what's happening here.

    Solution would be to either set up the orbit so the object never gets too close, or work out the forces artificially using vectors and distance and put a cap on the maximum force (which you can do if you control the equation). I do this, and my objects aren't flying out into infinity.

Similar Threads

  1. Inconsistent Behavior when scaling objects
    By killer1one in forum Android Export Module 2.5
    Replies: 2
    Last Post: 30th September 2014, 03:38 PM
  2. Counter Objects as Energy bars?
    By Crls in forum SWF/Flash Export Module Version 2.0
    Replies: 6
    Last Post: 16th January 2013, 08:21 AM
  3. Confusing Window Message Bug
    By Dines in forum Extension Development
    Replies: 3
    Last Post: 9th February 2012, 08:41 AM
  4. INI++ Getting Value is confusing? HELP!!!
    By MikeB in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 11th June 2009, 12:15 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
  •