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

Implement more arithmetic nodes #60

Merged
merged 3 commits into from
Sep 22, 2024
Merged

Conversation

aecsocket
Copy link
Contributor

Adds:

  • DecomposeVec3
  • LerpVec3
  • SlerpQuat
  • FromEuler
  • IntoEuler
  • MulQuat
  • InvertQuat

One issue that's present is FromEuler and IntoEuler store a glam::EulerRot to store which euler rotation mode to use for conversions. This is treated as an opaque value by bevy_reflect, so egui can't give you a dropdown box to select which variant you want. Tracking PR: bevyengine/bevy#15349.

The default rot mode is YXZ, which is what most people will want.

fn data_input_spec(&self, _: SpecContext) -> PinMap<DataSpec> {
[
(Self::INPUT_A.into(), DataSpec::Vec3),
(Self::INPUT_B.into(), DataSpec::Vec3),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing the input factor here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Copy link
Owner

@mbrea-c mbrea-c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for picking this up (and putting up with the boilerplate)!
Left a comment on the only issue I found, after that it's good to merge

@mbrea-c mbrea-c dismissed their stale review September 22, 2024 11:01

Review resolved

@mbrea-c mbrea-c merged commit adb0735 into mbrea-c:master Sep 22, 2024
3 checks passed
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