CedricGuillemet/LibGizmo — Issue #2: after rotation, mouse detection will be incorrect in move/scale gizmo
Author: mustcode
Created: 2012-02-09 16:21:03+00:00
State: open

Hi,

First of all, thanks for creating this lib. Love it, extremely useful. I hope you'll keep improving this lib :)

After trying out your lib, I've found a few bugs, but this one is the most important one. You can reproduce this bug easily by:
1. run the executable demo included with the lib
2. press 2 to switch to rotation gizmo
3. rotate the object, (just 90 degree around Y axis should be enough)
4. press 1 to switch back to move gizmo
5. move the cursor over all the gizmo's arrows
6. notice that the gizmo will no longer correctly detect collision between the cursor and the gizmo.

I might be wrong, but it looks like the collision detection is done as if the gizmo is set to LOCATE_LOCAL even when the gizmo is set to LOCATE_VIEW or LOCATE_WORLD