Unverified Commit de430cfc authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #8209 from DonLakeFlyer/FollowXYCalc

Fix Follow X/Y calc from distance/angle
parents 08f3f868 e53123fd
......@@ -112,10 +112,10 @@ SetupPage {
} else {
_followOffsetX.rawValue = Math.sin(angleRadians) * distance
_followOffsetY.rawValue = Math.cos(angleRadians) * distance
if (_followOffsetX.rawValue < 0.0001) {
if (Math.abs(_followOffsetX.rawValue) < 0.0001) {
_followOffsetX.rawValue = 0
}
if (_followOffsetY.rawValue < 0.0001) {
if (Math.abs(_followOffsetY.rawValue) < 0.0001) {
_followOffsetY.rawValue = 0
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment