User Tag List

Results 1 to 2 of 2

Thread: Directional Positioning Math Problem

  1. #1
    Clicker Fusion 2.5

    Join Date
    Sep 2006
    Posts
    281
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Directional Positioning Math Problem

    Say if you want something positioned at a distance away from an object according to its direction, and at an origin different from 0. You'd do:

    Object 1:

    Set position to 0,-64 of Object 2 (located)

    This way, whatever direction Object 2 is facing, Object 1 will be attached 64 pixels above it in accordance to its direction. In this case, it's assumed the direction is 0, or facing right/east. Thus, if Object 2 is facing left/west, then Object 1 will be positioned 64 pixels below it. The position rotates.

    What I need to figure out is how to do that with an expression, finding the X and Y coordinates of what this relative position should be, and then moving secondary objects towards it with only arrays (static movement).

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleFirefly 3D Module

    Join Date
    Jul 2006
    Location
    Norway
    Posts
    351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I have made an example that might help

    Hi

    I'm not quite sure what you are asking for but I made an example of how you can position an object a certain distance away from another depending on the objects direction.

    See the attachment.

    I hope this example will help you

    Change the (*50) number at the end of X pos and Y pos of "Active 2" to change the distance.
    Attached files Attached files

Similar Threads

  1. problem math calculation
    By daniele in forum Fusion 2.5
    Replies: 3
    Last Post: 12th February 2014, 10:56 PM
  2. Positioning Windows control object positioning based on resolution?
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 21st August 2013, 03:32 PM
  3. Graphing a Line Problem (Math)
    By Kid_Roleplay in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 19th September 2012, 06:02 AM
  4. Cos and Sin math problem (custom 8 direction)
    By Shawn in forum Multimedia Fusion 2 - Technical Support
    Replies: 19
    Last Post: 2nd April 2009, 12:55 PM
  5. Quick math problem? Me being stupid i think!
    By Gibbon in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 20th June 2008, 12:55 PM

Tags for this Thread

Posting Permissions

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