db0 / godot-card-game-framework

A framework which comes with prepared scenes and classes to kickstart your card game, as well as a powerful scripting engine to use to provide full rules enforcement.
http://dbzer0.com/projects/godot-card-game-framework/
GNU Affero General Public License v3.0
907 stars 96 forks source link

When card is rotated, hover buttons and token drawer start glitching while mouse is hovering over them #37

Closed db0 closed 3 years ago

db0 commented 3 years ago

This is of course due to godotengine/godot#16854, as their rect_global_position doesn't seem to take into account rotation. The solution would be to figure out how to apply the parent's rotation to their rect_global_position to receive the correct value to check against the mouse cursor. No clue how to calculate this however.