User Tag List

Results 1 to 7 of 7

Thread: Differences in roc.rcAngle between MMF2 and Fusion

  1. #1
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleXNA Export Module
    ProdigyX's Avatar
    Join Date
    Jan 2011
    Posts
    1,197
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Differences in roc.rcAngle between MMF2 and Fusion

    Hey everyone,

    I was wondering if there is a known difference in the usage/implementation of roc.rcAngle from LPRO pointers between MMF2 and Clickteam Fusion. I have an extension which modifies roc.rcAngle. The object consequently rotates in MMF2 while the object does not rotate in Fusion.

    In MMF2, adding "1" to this value increases the object's angle by 1.
    In Fusion, adding "1" to this value increases the object's angle by 1.4013e-045.

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

    Join Date
    Sep 2006
    Location
    Norway
    Posts
    445
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It is a float in Fusion and a int in MMF2.

    I suppose it could also be that it is changed to radians, but that is a wild guess.
    Jean Villy Edberg

  3. #3
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    In MMF2.0, the angle is an integer in non-HWA and a float in HWA. In CTF2.5 there is no such thing as non-HWA.
    Working as fast as I can on Fusion 3

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleXNA Export Module
    ProdigyX's Avatar
    Join Date
    Jan 2011
    Posts
    1,197
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Original
    I already had the angle as float unless it was specifically non-HWA in MMF2. Furthermore, the roc.rcAngle isn't matching up with angle expression from the actual object. Lastly, I just tried explicitly using roc.rcAngle as all floats, and nothing changed. Anymore ideas as for the culprit?


    Update
    In MMF2, roc.rcAngle returns the object's current angle.
    In Fusion, roc.rcAngle returns a number significantly different from the object's actual angle, regardless whether it's casted as an int or float. It's also not returning in radians.

  5. #5
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Could you tell me some info about where and how rcAngle is defined? It should be in Inc/Cncf.h near line 3517 and should have a type of ANGLETYPE, which is usually float. For example:
    https://github.com/LB--/windows-edif...c/Cncf.h#L3517
    Working as fast as I can on Fusion 3

  6. #6
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleXNA Export Module
    ProdigyX's Avatar
    Join Date
    Jan 2011
    Posts
    1,197
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    It's exactly that. I reverted back to ANGLETYPE for simplicity and discovered that returning just rcAngle has discrepancies between the two applications.

  7. #7
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    If you create a minimal test extension and example MFA, I'll look into it tomorrow.

Similar Threads

  1. Fusion and MMF2 Runtime Memory Differences
    By Mikegames in forum Fusion 2.5
    Replies: 19
    Last Post: 1st September 2015, 07:26 AM
  2. Replies: 3
    Last Post: 6th January 2015, 03:26 AM
  3. Fusion 2.5 : differences entre fastloops et for each ?
    By BenjaminG in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 5th January 2014, 09:05 PM
  4. Differences between MMF2 and MMF 1.5
    By andy in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 11th July 2007, 04:19 PM
  5. Differences between MMF2 and MMF1.5 (???)
    By Alberto in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 6th September 2006, 08:41 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
  •