You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rather than creating wind in the direction specified by the line tool like usual, it instead determines wind direction by comparing the true position of the place you are making wind (not in the zoom window) and comparing that with the position of your mouse on the screen. This means if you zoom into the lower left corner of the screen (so the zoom window appears in the upper right) then if you use the line tool to make wind in the zoom window, it creates wind in the direction of upper-right unconditionally.
The text was updated successfully, but these errors were encountered:
Interesting bug. The easy fix is just to call c->PointTranslate for drawPoint2 inside OnTick. At that point, the bug is no longer present, and the cursor always lines up with what actually gets drawn.
Right now you can adjust wind tool strength by moving your cursor to positions outside of the sim / tpt window, though. So I made a second function c->PointTranslateNoClamp which only adjusts for zoom window, but not for coordinates outside of the sim. This is probably what I'll end up with but it's late and I want to test some additional edge cases first and maybe adjust the cursor drawing to match what actually gets drawn.
Rather than creating wind in the direction specified by the line tool like usual, it instead determines wind direction by comparing the true position of the place you are making wind (not in the zoom window) and comparing that with the position of your mouse on the screen. This means if you zoom into the lower left corner of the screen (so the zoom window appears in the upper right) then if you use the line tool to make wind in the zoom window, it creates wind in the direction of upper-right unconditionally.
The text was updated successfully, but these errors were encountered: