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

Straightforward fix for on_character_rotate error #25

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

Mangonels
Copy link
Collaborator

@Mangonels Mangonels commented Jan 20, 2025

I added a cast that converts float to double when obtaining current character rotation, for the character rotation calculation.

This is a very simple fix, if anything more premeditated is to be done, this PR can be interpreted as an issue, for the project currently gives an error with this for everyone pulling it for the fist time, I thought I'd add this easy fix. There may be better solutions, I just didn't investigate further.

Someone suggested the use of real_t (godot macro for either float or double depending on a certain extension compile option), but I'm not convinced that A. That would be a proper solution, B. If it is a proper solution, it would potentially make sense in other areas of the project, even for general use when developing godot-cpp applications. (I don't know enough about real_t use cases to make this decision right now).

@Mangonels Mangonels requested a review from vorlac January 20, 2025 19:12
@vorlac vorlac merged commit cc3d925 into main Jan 21, 2025
2 checks passed
@vorlac vorlac deleted the math-lerp-function-fix branch January 21, 2025 00:16
@vorlac
Copy link
Owner

vorlac commented Jan 21, 2025

Looks good, thanks for the fix!

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