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

Incorrect description of Transform3D empty constructor in the documentation #10138

Closed
mikhailvaliev opened this issue Oct 24, 2024 · 2 comments · Fixed by godotengine/godot#98499

Comments

@mikhailvaliev
Copy link

It says here in the Constructor descriptions

https://docs.godotengine.org/en/stable/classes/class_transform3d.html#class-transform3d-constructor-transform3d

That constructor new Transform3D() Constructs a Transform3D identical to the IDENTITY

This is wrong, the output transform matrix contains all zeroes.

@tetrapod00
Copy link
Contributor

Are you using C#? In C#, it is initialized to zeros instead of IDENTITY. See the Transform3D section of C# API differences to GDScript. It's also noted in description of the Transform3D class itself that there are "notable differences".

This might be worth noting in the constructor description itself, but I think we currently avoid that for some reason.

@mikhailvaliev
Copy link
Author

Yes I am using C#. Thank you for clarification and useful links.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants