User Tag List

Results 1 to 2 of 2

Thread: Cosine behaves strange when reading object values

  1. #1
    Clicker Fusion 2.5 (Steam)Android Export Module (Steam)

    Join Date
    Mar 2018
    0 Post(s)
    0 Thread(s)

    Exclamation Cosine behaves strange when reading object values

    Currently, my code looks like this.

    For Each Object C Run loop "AngleCheck"
    > Set Value1 to Angle between ObjectA and Object B
    > Set Value2 Cos(Value1)

    Value1, currently, always equals 270 degrees, this value remains consistent and never changes.

    However, for some reason. Cos outputs -5.3263 when reading Value1, Value 1 is always 270.

    When replacing Cos(Value1) with Cos(270). It yeilds "0" as it should.

    For some reason, cos outputs the incorrect result when reading an objects values. However, behaves normally when simply putting the value in manually.

  2. #2
    Clicker Fusion 2.5Fusion 2.5+ DLC

    Join Date
    Jun 2006
    1 Post(s)
    0 Thread(s)
    Also, in the code you described - you run the check for each C, finding the angle between A and B (is that really so? - I mean, neither A or B ale selected by the event, so it will take the same ones every time)?

    Anyway, it works for me just fine when reading the value from another source. I tried getting the angle between two objects and then calculating Cos, works as it should (I did try with 270).

    If you share part of your MFA, we can take a look.

Similar Threads

  1. Active Object behaves differently in frames
    By TheHandwovenBox in forum Fusion 2.5
    Replies: 2
    Last Post: 24th April 2019, 02:49 PM
  2. reading ALL object values or stings
    By alexexhowl in forum Fusion 2.5
    Replies: 6
    Last Post: 30th August 2018, 12:45 AM
  3. List object behaves different
    By AWK in forum Mac Export Module & Fusion MAC Editor
    Replies: 3
    Last Post: 25th January 2018, 03:35 PM
  4. Replies: 1
    Last Post: 3rd March 2017, 01:32 PM
  5. Surface object behaves differently for screensaver
    By K1kk0z90 in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 30th January 2011, 08:37 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