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

Backport improved look_at docs #57475

Merged
merged 1 commit into from
Feb 2, 2022
Merged

Conversation

snailrhymer
Copy link
Contributor

Take extra constraint info and function description from Node3D.look_at to improve Spatial.look_at docs.

The implementations of Spatial.look_at and Node3D.look_at are marginally different, but all the claims appear to still be valid.

Resolves #57457.

Take extra constraint info and function description from Node3D.look_at to improve Spatial.look_at docs.
Add an explicit error for up == 0
@snailrhymer
Copy link
Contributor Author

Also added 4.0's error message for up == 0.

Is it worth copying over the default up as (0,1,0)?

Copy link
Member

@aaronfranke aaronfranke left a comment

Choose a reason for hiding this comment

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

See #50682 for reference. We could also backport the Transform documentation (Transform3D in master).

The methods changed in that PR have the same behavior aside from more performance and better checks. They might have tiny floating point differences so it's safest to not backport them but backporting the docs for them is fine because the behavior is identical.

Is it worth copying over the default up as (0,1,0)?

I'm not sure if this breaks ABI compatibility, but it should be fine for API compatibility, I think...? See #45575 for reference.

@akien-mga akien-mga merged commit 78f2308 into godotengine:3.x Feb 2, 2022
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 3.4.3.

@snailrhymer snailrhymer deleted the look-at-update branch May 24, 2022 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants