I'm sure I'm missing this and it's somewhere but I'm having trouble finding how to set an object's angle (e.g. in the transform) .
I can add to the current angle, I can rotate an object toward a point in space,but I can't figure out how to say "Set angle to X"
Any help finding this? I'm sure it's there somewhere.
I'll look into it and add it in the next update.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Apparently 1.707547e-05 does not count as 'approximately' 0 :D
Though, 90.00002 counts as 'approximately' 90 interestingly enough :)
I wonder if it has to do with wrapping angles. When I input 360 instead of 0 in the inspector during runtime it converts it to 3.733867e-05 which also wont' be recognized as 0 by Check Angle.
You can try Range Inclusive or Range Exclusive to check for a wider angle.
Local position/rotation check in the Check Transform step will be coming in the next update.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
On the other hand, unlike the Check Angle block, the Check Transform block seems to work.
Oh and one more rotation thing. When I use Change rotation block, the rotation seems to be off by a small amount that adds up over time. So let's say I do Change Rotation by +90, then Change rotation by -90. First it will rotate to 90.00001 , then after i rotate back -90 it rotates to a bit more than 0, then if I do it again it will rotate to 90.00002, etc, and it keeps building up. I'm rotating with linear interpolation if that matters. I need the rotation to be gradual. How can I make it be exact?
Might have something to do with the last rotation of the 1st step happening in the same frame as the 1st rotation of the 2nd step - I'll investigate.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Of note, 275deg does not currently equal -85 deg when doing the comparisons. Not sure if it's worth adding appropriate angle wrapping but i thought I'd note it anyway.
Also, it would also be nice if the Set Angle setting could operate in both the local and global space :)
But with all that said, I can now open and close doors to my heart's content without error slowly accumulating :) Thanks!