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
{{ message }}
Repository navigation
Wrong function conversion from Euler to Quaternion #1629
This function was purposely left out of Quaternion because the math for this would be duplicated. I would recommend converting from basis as a wrapper.
If I'm understanding correctly, you're saying that godot-cpp has this Quaternion::Quaternion(const Vector3 &p_euler) constructor, which Godot itself purposefully doesn't have?
We want to have compatibility with Godot, so assuming I'm understanding correctly, I think it makes sense to remove that construct from godot-cpp.
I don't know if the Quaternion class in godot-cpp has any other differences from the one in Godot, but if so, it would be good to rectify that as well.
Activity
dsnopek commentedon Oct 28, 2024
If I'm understanding correctly, you're saying that godot-cpp has this
Quaternion::Quaternion(const Vector3 &p_euler)constructor, which Godot itself purposefully doesn't have?We want to have compatibility with Godot, so assuming I'm understanding correctly, I think it makes sense to remove that construct from godot-cpp.
I don't know if the
Quaternionclass in godot-cpp has any other differences from the one in Godot, but if so, it would be good to rectify that as well.fire commentedon Oct 28, 2024
I can verify that this constructor does not exist in the latest Quaternion class.
https://docs.godotengine.org/en/latest/classes/class_quaternion.html
fire commentedon Oct 28, 2024
I agree.
dsnopek commentedon Oct 28, 2024
I just posted PR #1630 which should fix this