User Tag List

Results 1 to 4 of 4

Thread: Angle problem :/

  1. #1
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Question Angle problem :/

    I have trouble to figure out how to solve this. I think its not that hard but I cant seem to get it to work right. I have made an example of the problem

    I am trying to get the character to always have its angle set to a "balancing board" that can rotate in 360 degrees. It works good as long as the board has not rotated to far. If you rotate it over 180 degrees and then have the character stand on it, the character will stand on its head :/. Int he example you can control the character with arrows (jump shift) and rotate the board with the Q and E keys.

    (Example edited after I got an example from Jaffob, it worked with "normal" object. But because I am using box2d the angle dont seem to work as normal. Just check the counter always set to the objects angle. It goes negative and past 360 so the events dont work.. :/ )
    Attached files Attached files

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I bet the solution lies in finding the coordiantes of the corners of the board.

  3. #3
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    A problem seems to be that this object in the real app is a box2d object, so the angle is not set to 0-360 for some reason.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not too familiar with Box2d, but ive been thinking some more about your situation and from a logical point of view if you are able to determine the coordinates of the corners of the board somehow, im possitive you are able to determine wich side of the board your character is standing on ( simply by compairing Characters position to Corners position ), wich in turn will solve your Angle problem.

    Sorry im not able to be of more help.

Similar Threads

  1. Angle = Angle +0.3
    By Tuna in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 8th November 2013, 01:32 AM
  2. Angle bug
    By ColdFire in forum SWF/Flash Export Module Version 2.0
    Replies: 0
    Last Post: 12th August 2011, 01:26 AM
  3. moving legs by angle problem
    By JonathanC in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 11th January 2009, 02:04 PM
  4. Angle From Object Problem
    By Atom in forum File Archive
    Replies: 10
    Last Post: 18th October 2008, 10:34 AM
  5. Problem with an angle, answer is probs obvious =/
    By Raylax in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 14th June 2008, 01:06 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
  •