Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix transform of mouse position with rotated capture area #1

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

AnthyG
Copy link
Contributor

@AnthyG AnthyG commented Oct 30, 2023

Was kinda wondering why the third dimension for the transform was left out?

I tried using this with a rotated capture area and it did not work as expected. Adding in the z axis fixed this.

Just beware that I did not actually test the cs-Code, as I translated it to gdscript for myself ^^

Not sure about the mouse"Outside"-Part, as it only seems to be triggered when I move the mouse very fast.

@MASSHUU12
Copy link
Owner

Hey, thanks for the PR and sorry you had to make one due to such a stupid oversight on my part.

The change is obviously for the better, and I'll throw it in right away.

I'm still new to gamedev and SubViewport is a bit confusing for me, so the quality of the code probably leaves a lot to be desired.
If I find a moment to delve more into the Godot documentation, I'll try to improve the whole plugin.

@MASSHUU12 MASSHUU12 merged commit 74b1dc6 into MASSHUU12:main Oct 31, 2023
@AnthyG AnthyG deleted the patch-1 branch October 31, 2023 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants