hello.
In the CheckTransform node I'm trying to find out the Rotation of an object.

Positive angles (eg 0 degrees, 45 degrees, 90 degrees) have been successfully detected. A Success transition occurs.
But negative angles (eg -45 degrees, -90 degrees, -180 degrees) failed to detect.
A Failed transition always occurs.

Is there a way to detect negative angles?

image
  • edited August 2022
    Angles reported from the combatant might not be negative, so it could also be:
    315 instead of -45
    270 instead of -90
    180 instead of -180

    Additionally, since those are float numbers and might not be 100% accurate, I'd recommend to use the Appoximately check type instead of Is Equal when checking for equality instead of a range, greater than, etc.
    Post edited by gamingislove on
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Thank you for your precise answer.
    solved.
    I made a mistake because it was displayed as a minus in the Transform component of Unity.
    Thank you very much.
Sign In or Register to comment.